Hi * I setup a Zope with apache 2.0.48 on Mandrake 10.0 my virtualhost file on apache is <VirtualHost 10.0.0.5:80> ServerName reducnew.uc.edu.ve ProxyPass / http://10.0.0.5:9080/VirtualHostBase/http/reducnew.uc.edu.ve:80/reduc.uc.edu... ProxyPassReverse / http://150.0.0.5:9080/VirtualHostBase/http/reducnew.uc.edu.ve:80/reduc.uc.ed... ErrorLog /reduc/www/log/reducnew-error.log TransferLog /reduc/www/log/reducnew-access.log ProxyVia on RewriteEngine on RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* -[F] </VirtualHost> but I don't access my zope site in my log error have client denied by server configuration: proxy:http://10.0.0.5:9080/VirtualHostBase/http/reducnew.uc.edu.ve:80/reduc.uc.edu... Thank you in advance -- Alvaro Jesús Hernández Arteaga alhernan@uc.edu.ve RedUC - Universidad de Carabobo Valencia, Edo. Carabobo Venezuela
Alvaro Jesus Hernandez Arteaga wrote:
Hi *
I setup a Zope with apache 2.0.48 on Mandrake 10.0 my virtualhost file on apache is
<VirtualHost 10.0.0.5:80> ServerName reducnew.uc.edu.ve ProxyPass / http://10.0.0.5:9080/VirtualHostBase/http/reducnew.uc.edu.ve:80/reduc.uc.edu... ProxyPassReverse / http://150.0.0.5:9080/VirtualHostBase/http/reducnew.uc.edu.ve:80/reduc.uc.ed... ErrorLog /reduc/www/log/reducnew-error.log TransferLog /reduc/www/log/reducnew-access.log ProxyVia on RewriteEngine on RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* -[F] </VirtualHost>
but I don't access my zope site in my log error have
client denied by server configuration: proxy:http://10.0.0.5:9080/VirtualHostBase/http/reducnew.uc.edu.ve:80/reduc.uc.edu...
The "stock" solution to virtual hosting behind Apache is to avoid using ProxyPass / ProxyPassReverse directly, and put all the logic into the rewrite rule, e.g.: RewriteRule ^(.*)$ http://10.0.0.5:9080/VirtualHostBase/http/reducnew.uc.ve:80/reduc.uc.edu.ve/... [L,P] (all on one line) Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com
Hello. Tres Seaver wrote:
The "stock" solution to virtual hosting behind Apache is to avoid using ProxyPass / ProxyPassReverse directly, and put all the logic into the rewrite rule, e.g.:
RewriteRule ^(.*)$ http://10.0.0.5:9080/VirtualHostBase/http/reducnew.uc.ve:80/reduc.uc.edu.ve/... [L,P]
(all on one line)
This works fine if the whole contents of Zope is published via Rewrite, but I don't get the solution if I would like to publish the root directory and certain subdirectories of Zope via Rewrite and the other contents directly from Apache (static contents and php scripts like xoops.) How do I have to set up httpd.conf in this situation? e.g. I would like to serve from Zope via Rewrite: / (root) /zope ("zope" and its subdirectories) I would like to serve directly from Apache: /xoops ("xoops" and its subdirectories) Apache runs on port 80 and Zope runs on port 8080. Thanks. -- OGURA Toshiyuki a.k.a. OGURADIO <dj@oguradio.com> http://www.oguradio.com/
OGURA Toshiyuki wrote at 2004-11-13 13:34 +0900:
... This works fine if the whole contents of Zope is published via Rewrite, but I don't get the solution if I would like to publish the root directory and certain subdirectories of Zope via Rewrite and the other contents directly from Apache (static contents and php scripts like xoops.) How do I have to set up httpd.conf in this situation?
In this case, you have more than one rewrite rule. Reading the "mod_rewrite" documentation is probably a good starting point :-) -- Dieter
participants (4)
-
Alvaro Jesus Hernandez Arteaga -
Dieter Maurer -
OGURA Toshiyuki -
Tres Seaver