Skip to content

Instantly share code, notes, and snippets.

@fais3000
Last active June 12, 2018 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fais3000/bc4b38e127b87a01879526e685ae55fe to your computer and use it in GitHub Desktop.
Save fais3000/bc4b38e127b87a01879526e685ae55fe to your computer and use it in GitHub Desktop.
Apache2 Vhost settings for setting up server to serve PHP and Nodejs apps together
<Virtualhost>
ServerName craftypixels.com
ProxyPreserveHost on
ProxyPass /blog !
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
alias /blog /var/www/craftypixels/blog
DocumentRoot /var/www/craftypixels/blog/
Options -Indexes
</Virtualhost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment