On Mon, Apr 19, 2004 at 08:19:08AM +0000, Santi Camps wrote:
Tim Zegir escribi?:
Hi All,
I have just set up a new apache server (Mandrake 10) and have configured it to use the following rewrite rule. -------------- <IfModule mod_rewrite.c> RewriteEngine On RewriteLog logs/domain.com-rewrite_log RewriteLogLevel 1 RewriteRule ^/(.*) http://zope.domain.com:8080/VirtualHostBase/http/%{SERVER_NAME}:80/domai n/VirtualHostRoot/$1 [L,P] </IfModule> ---------------- But when ever I go to domain.com I get a 403 error (You don't have permission to access / on this server).
Does anyone know whats wrong?
You need to load mod_proxy and enable it using "ProxyRequests On".
I'm certainly no Apache config expert, but that's not what the docs say. http://httpd.apache.org/docs/mod/mod_proxy.html "The forward proxy is activated using the ProxyRequests directive." ... "A reverse proxy is activated using the ProxyPass directive or the [P] flag to the RewriteRule directive. It is not necessary to turn ProxyRequests on in order to configure a reverse proxy." Sorry I don't know what the 403 problem is for Tim. If it were me, I'd look at the rewrite log and first be sure that the rewrite rule is doing what I expect. Maybe turn up the RewriteLogLevel a bit. -- Paul Winkler http://www.slinkp.com