httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sai Jai Ganesh Gurubaran" <>
Subject [users@httpd] mod_rewrite on 2.0.50
Date Tue, 03 Oct 2006 07:43:19 GMT
I am a newbie.
We have set up Apache 2.0.50 as a forward proxy.
Want to redirect a particular (external) page to our internal page.
i.e. for to

For this I tried mod_rewrite.
The following code in the httpd.conf

#Apache as a Proxy
ProxyRequests On

RewriteEngine On
RewriteLogLevel 9
RewriteLog rewrite.log
RewriteCond %{HTTP_HOST} ^ [NC]
RewriteCond %{REQUEST_URI} ^/suggestions.htm
RewriteRule ^(.+) http://myanotherserver/suggestion.htm [L,R]

The problem here is:
	1. if Proxy is not present then mod_rewrite rules are applied
(seen through the log). Since Proxy is not there we don't get the
content :(
	2. If proxy is on, rewrite rules are not applied but content is fetched

Am I missing out some thing? (it has to be)

I tried the same with 2.2.3 and it works smooth (with ProxyRequests On).
But we need to make this work on 2.0.50

Any help will be highly appreciated 


The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this 
message by anyone else is unauthorized. If you are not the 
intended recipient, any disclosure, copying, or distribution of the 
message, or any action or omission taken by you in reliance on 
it is prohibited and may be unlawful. Please immediately contact 
the sender if you have received this message in error. This email 
does not constitute any commitment from Cordys Holding BV or 
any of its subsidiaries except when expressly agreed in a written 
agreement between the intended recipient and 
Cordys Holding BV or its subsidiaries.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message