Advertisement
fduran

Apache Redirect Subdomain to port

Jun 6th, 2012
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1. # www.fduran.com
  2. # redirect from apache port (:8080 for ex for tomcat etc) to subdomain
  3.  
  4. # in apache config:
  5. <VirtualHost *:80>
  6.     ServerName subdomain.example.com
  7.     ProxyPass / http://127.0.0.1:8080/
  8.     ProxyPassReverse / http://127.0.0.1:8080/
  9. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement