httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dror Braznitzki <>
Subject RE: mod_rewrite + mod_proxy questions
Date Mon, 18 Mar 2002 15:19:57 GMT
I've tried removing the P from the option list but it caused the server to
handle my request as
a request for a local file.
I may not clarified myself enough about my mod_rewrite configuration.
My servers serves both my company web site and hosted web sites that belongs
to some
of our costumers. My proxy servers can get request for our web pages with
our domain
or requests for costumers web pages with another domain.
I use mod_rewrite to differ between domains and redirect them to the
appropriate ProxyPass
directive that will refer them to the right place on the right server (the
proxy server serves 3 other servers
- one of them is a mod_perl server with out application).

And now for the technical stuff:
Some of my rewrite rules redirect to ProxyPass directives that I have in my
proxy configuration (on the same server)
, as it seems without the P option the proxy will not handle the sub request
issued from mod_rewrite.

Is there any other solution, or should I live with the 2 requests each time
and add more hardware to back it up ?



-----Original Message-----
From: Joshua Slive []
Sent: Monday, March 18, 2002 4:44 PM
To: Apache Mailing List (E-mail)
Subject: Re: mod_rewrite + mod_proxy questions

On Mon, 18 Mar 2002, Dror Braznitzki wrote:
>   RewriteRule ^(.*)    /blah$1  [P,L]
> Can I avoid this self request the proxy is doing ?

Yes.  Eliminate the P in your option list.  There is no need to go through
the proxy if you are ending up at the same server.  mod_rewrite can handle
that with a normal internal sub-request.


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

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

View raw message