Last active
August 21, 2016 04:58
-
-
Save RoesWibowo/365c0c19702b1a81c5ef77936a2f46f8 to your computer and use it in GitHub Desktop.
Example apache2 virtual host using proxypass
This file contains hidden or 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
# a2enmod proxy | |
# a2enmod proxy_http | |
# a2enmod proxy_ajp | |
# a2enmod rewrite | |
# a2enmod deflate | |
# a2enmod headers | |
# a2enmod proxy_balancer | |
# a2enmod proxy_connect | |
# a2enmod proxy_html | |
<VirtualHost *:80> | |
ProxyPreserveHost On | |
ProxyPassMatch ^/core ! | |
ProxyPass / http://127.0.0.1:3000/ | |
ProxyPassReverse / http://127.0.0.1:3000/ | |
ServerName someapp.dev | |
Alias /core /var/www/html/someapp | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment