Created
December 12, 2012 21:52
-
-
Save fduran/4271967 to your computer and use it in GitHub Desktop.
Apache Redirect Subdomain to port
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
# www.fduran.com | |
# redirect from apache port (:8080 for ex for tomcat etc) to subdomain | |
# in apache config: | |
<VirtualHost *:80> | |
ServerName subdomain.example.com | |
ProxyPass / http://127.0.0.1:8080/ | |
ProxyPassReverse / http://127.0.0.1:8080/ | |
</VirtualHost> |
Works like a charm. Thank you.
thank you very much!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works very well.
Can I redirect only on certain domains, not redirecting all requests coming into 80 port?