httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Terry Carmen <te...@cnysupport.com>
Subject [users@httpd] Mixed VirtualDocumentRoot and VirtualHost directives
Date Mon, 22 Oct 2012 00:50:44 GMT
I have a very stable server that's been happily running a number of 
name-based virtual hosts with nothing more than:

UseCanonicalName Off
VirtualDocumentRoot /var/www/html/%0

This responds correctly to www.example.com, example.com, example.net and 
anything else defined in the VirtualDocumentRoot directories.

However now I'm running YaCY (P2P web search) which listens on port 8090 
and does not exist as a location in the filesystem, and I'd like Apache 
to proxy all requests for search.example.com to 127.0.0.1:8090.

I've tried adding the code below, however this breaks the 
VirtualDocumentRoot and the server no longer serves the other virtualhosts.


<VirtualHost *:80>
         ServerName search.example.com
         ServerAdmin webmaster@example.com

         ProxyRequests Off

         <Proxy *>
                 Order deny,allow
                 Allow from all
         </Proxy>

         ProxyPass / http://127.0.0.1:8090/
         ProxyPassReverse / http:/127.0.0.1:8090/
</VirtualHost>


Anybody have any suggestions?

Thanks!

Terry







---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message