httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Cicimov <icici...@gmail.com>
Subject Re: [users@httpd] mod_proxy+mod_rewrite: hiding redirection
Date Wed, 28 Oct 2009 04:22:01 GMT
What if you remove the <Proxy *> handle? As it is written now I don't see
any particular need for it?

On Wed, Oct 28, 2009 at 3:09 PM, Marcos Mendez <marcosrmendez@gmail.com>wrote:

> On Tue, Oct 27, 2009 at 8:47 PM, Igor Cicimov <icicimov@gmail.com> wrote:
> > Try playing with the P,R,L flags in the rewrite rule and see what happens
> :)
> > e.g.
> >
> > RewriteRule $(.+) http://123.123.123.123/myscript?url=%{REQUEST_URI}<http://123.123.123.123/myscript?url=%%7BREQUEST_URI%7D>[P,R,L]
> > or
> > RewriteRule $(.+) http://123.123.123.123/myscript?url=%{REQUEST_URI}<http://123.123.123.123/myscript?url=%%7BREQUEST_URI%7D>[R,L]
> > or
> > RewriteRule $(.+) http://123.123.123.123/myscript?url=%{REQUEST_URI}<http://123.123.123.123/myscript?url=%%7BREQUEST_URI%7D>[P,L]
> >
> > Cheers,
> >
> > Igor
> >
> > On Wed, Oct 28, 2009 at 8:55 AM, Marcos Mendez <marcosrmendez@gmail.com>
> > wrote:
> >>
> >> I'm using mod_proxy/mod_rewrite to redirect requests to a specific
> >> script which handles them. For example:
> >>
> >> <Proxy *>
> >> RewriteEngine on
> >> RewriteCond %{HTTP_HOST} !^123.123.123.123 [NC]
> >> RewriteRule $(.+) http://123.123.123.123/myscript?url=%{REQUEST_URI}<http://123.123.123.123/myscript?url=%%7BREQUEST_URI%7D>
> >> </Proxy>
> >>
> >> This is working great. The question is, can I hide that redirection
> >> (http://123.123.123.123/myscript?url=thewebsite.com) and keep the
> >> requested url in the address bar somehow?
> >>
> >> Regards,
> >>
> >> Marcos
> >>
> >> ---------------------------------------------------------------------
> >> 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
> >>
> >
> >
>
> Tried all of them. Looks the same from the browser. Maybe I'm missing
> something?
>
> ---------------------------------------------------------------------
> 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