Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save craigpalermo/4ef6ac2a8cf36e288099bd6601c948ae to your computer and use it in GitHub Desktop.
Save craigpalermo/4ef6ac2a8cf36e288099bd6601c948ae to your computer and use it in GitHub Desktop.
Apache - redirect traffic from subdomain to port on localhost
<VirtualHost *:80>
ServerAdmin me@mydomain.com
ServerName dev.mydomain.com
ProxyPreserveHost On
# setup the proxy
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyPass / http://localhost:8888/
ProxyPassReverse / http://localhost:8888/
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment