Apache 2.0.55 with Rewrite Rule

Rodrigo Faria Tavares rodrigofariatavares at bol.com.br
Mon Jan 9 10:27:42 UTC 2006


Hello,

I recompilled Apache 2.0.55 with PHP 4.3.11 using these options :

 ./configure    --prefix=/usr/local/apache2    --enable-so    --enable-auth-digest 
 --enable-rewrite    --enable-setenvif    --enable-mime    --enable-deflate
 --enable-ssl    --with-ssl=/usr/local    --enable-headers

In my httpd.conf there is lines with rewrite rule :

<VirtualHost www.dominio.com.br>
 ServerName www.dominio.com.br
 RewriteEngine On
 RewriteLog "/tmp/rewrite_log"
 RewriteLogLevel 0
 RewriteRule ^/local/ - [L]
 RewriteRule ^/(.*) http://10.0.0.199:80/$1 [P]
 </VirtualHost>

When I try to access the site dominio.com.br  with a browser como in the 
screen :

Forbidden
You don't have permission to access / on this server.

In log come these message :

Mon Jan 09 08:21:11 2006] [error] [client 201.19.122.211] attempt to make 
remote request from mod_rewrite without proxy enabled: 
proxy:http://10.0.0.199:80/

Why it´s happen ?   Because I recompilled apache with --enable-rewrite.

Ps : I can´t to installed the rpm apache FC4 because the version PHP5.

How I can to resolve this problem in Apache 2.0.55 ?

Best regards,

Rodrigo Faria Tavares
e-mail : rodrigofariat at yahoo.com.br
Analista de Suporte Linux 



	

	
		
_______________________________________________________ 
Yahoo! doce lar. Faça do Yahoo! sua homepage. 
http://br.yahoo.com/homepageset.html 




More information about the Redhat-install-list mailing list