Skip to content

Instantly share code, notes, and snippets.

@bskim45
Last active June 14, 2016 16:27
Show Gist options
  • Save bskim45/9cbc82fe0fd80310d516b2692f5bb527 to your computer and use it in GitHub Desktop.
Save bskim45/9cbc82fe0fd80310d516b2692f5bb527 to your computer and use it in GitHub Desktop.
Apache2 Reverse Proxy (http)
<VirtualHost *:80>
ServerName example.com
ServerAdmin hello@example.com
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location />
Require all granted
ProxyPass http://localhost:3000/
ProxyPassReverse http://localhost:3000/
</Location>
ErrorLog /var/www/example.com/logs/error.log
CustomLog /var/www/example.com/logs/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment