httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Massimiliano Panichi <m.pani...@infogroup.it>
Subject Re: [users@httpd] Problem using mod_rewrite and mod_proxy
Date Tue, 27 Jul 2004 13:26:06 GMT
On Tue, 2004-07-27 at 15:00, Joshua Slive wrote:
> On Tue, 27 Jul 2004 09:24:12 +0200, Massimiliano Panichi
> <m.panichi@infogroup.it> wrote:
> > On Mon, 2004-07-26 at 18:06, Joshua Slive wrote:
> > > On Mon, 26 Jul 2004 17:48:55 +0200, Massimiliano Panichi
> > > <m.panichi@infogroup.it> wrote:
> > > > Hi,
> > > >
> > > > I would like to configure my reverse proxy in order to
> > > > display different pages for some ip addresses. This is my configuration
> > >
> > > >     RewriteCond /transparent.gif -U
> > > >     RewriteRule /transparent.gif  /lavori/transparent.gif [P,L]
> > > >
> > > >     RewriteCond %{REMOTE_ADDR}      ^192\.168\.52\.131$  [OR]
> > > >     RewriteCond %{REMOTE_ADDR}      ^192\.168\.52\.25$  [OR]
> > > >     RewriteCond %{REMOTE_ADDR}      ^192\.168\.52\.36$
> > > >     RewriteRule ^.*  /lavori/Lav_in_corso_eProc_prod.htm  [P,L]
> > > >
> > > >     ProxyPass           /       http://www.sun.com/
> > > >     ProxyPassReverse    /       http://www.sun.com/
> > > >
> > > > But it works only when I delete ProxyPass and ProxyPassReverse lines ?
> > >
> > > This configuration seems a little bizarre, since you are proxying to
> > > content on the same server.  Why not just deliver the content
> > > directly?
> > >
> > 
> > It is yust an example. We use reverse proxy to deliver content
> > of our application servers (so think www.sun.com like an internal
> > application server). But during web site modification we would
> > like to see the site (in order to test the changes)
> > and in the same time present an on-work page to our customers.
> 
> That doesn't really explain your configuration.  To be more specific:
> I see no reason to have the "P" flag in RewriteRules that end up on
> the local server.
> 
> Joshua.


Infact the [P] is not useful. We use reverse proxy to deliver content
of our application servers (so think www.sun.com like an internal
application server). But during web site modification we would
like to see the site (in order to test the changes) 
and in the same time present an on-work page to our customers.


> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message