Skip to content

Instantly share code, notes, and snippets.

@khanhtran3005
Last active August 29, 2015 14:11
Show Gist options
  • Save khanhtran3005/399c264453fd77e2e7c6 to your computer and use it in GitHub Desktop.
Save khanhtran3005/399c264453fd77e2e7c6 to your computer and use it in GitHub Desktop.
Run NodeJS with Apache server
<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