Skip to content

Instantly share code, notes, and snippets.

@RoesWibowo
Last active August 21, 2016 04:58
Show Gist options
  • Save RoesWibowo/365c0c19702b1a81c5ef77936a2f46f8 to your computer and use it in GitHub Desktop.
Save RoesWibowo/365c0c19702b1a81c5ef77936a2f46f8 to your computer and use it in GitHub Desktop.
Example apache2 virtual host using proxypass
# 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