Created
July 24, 2016 11:33
-
-
Save craigpalermo/4ef6ac2a8cf36e288099bd6601c948ae to your computer and use it in GitHub Desktop.
Apache - redirect traffic from subdomain to port on localhost
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> | |
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