Last active
June 12, 2018 07:52
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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