Last active
June 14, 2016 16:27
-
-
Save bskim45/9cbc82fe0fd80310d516b2692f5bb527 to your computer and use it in GitHub Desktop.
Apache2 Reverse Proxy (http)
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 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