[Zope] Re: problem with apache virtualhost

Tres Seaver tseaver at zope.com
Wed Nov 10 11:16:45 EST 2004


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.ve/VirtualHostRoot/
>   ProxyPassReverse /
> http://150.0.0.5:9080/VirtualHostBase/http/reducnew.uc.edu.ve:80/reduc.uc.edu.ve/VirtualHostRoot/
>   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.ve/VirtualHostRoot/

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/VirtualHostRoot/$1 
[L,P]

(all on one line)

Tres.
-- 
===============================================================
Tres Seaver                                tseaver at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com


More information about the Zope mailing list