Skip to content

Instantly share code, notes, and snippets.

@souparno
Created March 13, 2017 16:27
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save souparno/c055255319947669fc2f0f328460732b to your computer and use it in GitHub Desktop.
apache configuration for node.js proxy
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName cuboid.io
ServerAlias www.cuboid.io
DocumentRoot /var/www/cuboidio
<Directory />
Options -Indexes +FollowSymLinks
AllowOverride None
Require all granted
</Directory>
ProxyPreserveHost On
ProxyVia Full
<Proxy *>
Require all granted
</Proxy>
ProxyPass / http://127.0.0.1:9090/
ProxyPassReverse / http://127.0.0.1:9090/
ErrorLog /var/log/apache2/cuboid.io-error.log
LogLevel error
CustomLog /var/log/apache2/cuboid.io-access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment