Last active
August 29, 2015 14:11
-
-
Save khanhtran3005/399c264453fd77e2e7c6 to your computer and use it in GitHub Desktop.
Run NodeJS with Apache server
This file contains 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 *:80> | |
ServerName www.youserver.com | |
ProxyPass / http://localhost:1337/ | |
ProxyPassReverse / http://localhost:1337/ | |
SetEnvIf Request_URI "\.gif$|\.jpg$|\.png$|\.js$|\.css$|\.ico$" is_static | |
ErrorLog /home/vnrs_test/game/error.log | |
CustomLog /home/vnrs_test/game/access.log common env=!is_static | |
</VirtualHost> | |
See mod_proxy documentation for more details. http://httpd.apache.org/docs/2.2/mod/mod_proxy.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment