Monday 1 April 2013

Apache virtual hosts and proxypass

...what I wanted was to setup a new VirtualHost entry on Apache to handle the new domain but also make use of the ProxyPass and ProxyReversePass directives to have Apache transparently pass-through traffic from the VirtualHost domain to Tomcat running in the background on some non-conflicting port, like port 80.
thebuzzmedia.com
<VirtualHost *:80>
    ServerAdmin john@doe.com
    ServerName <my domain>.com
    ServerAlias www.<my domain>.com
    ProxyPass / http://localhost:8080/<web-app context root>/
    ProxyPassReverse / http://localhost:8080/<web-app context root>/
    ErrorLog logs/<my domain>.com-error_log
    CustomLog logs/<my domain>.com-access_log combined
</VirtualHost>


Following these instructions for the  ReadyNas  I was able to
map from a dynamic domain name from http://www.noip.com/ through ReadyNas1 to a BaseX instance on velvet


<VirtualHost *:80>
    SSLEngine  off 
    ServerName test-apb.zapto.org
  ProxyPass / http://192.168.1.8:8984/
  ProxyPassReverse / http://192.168.1.8:8984/
</VirtualHost> 
 

Related

retain original request url on mod proxy redirect 

No comments:

Post a Comment