Skip to content

Instantly share code, notes, and snippets.

@khanhtran3005
Last active Aug 29, 2015
Embed
What would you like to do?
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