Re: RewriteRule with [P] Flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 14, 2010 at 8:11 AM, Mark Watts <m.watts@xxxxxxxxxxxxxxxx> wrote:
> On Wed, 2010-04-14 at 08:03 -0400, Eric Covener wrote:
>> On Wed, Apr 14, 2010 at 6:32 AM,  <achristiansen@xxxxxxxxxxxx> wrote:
>> > On Wed, 14 Apr 2010 05:44:26 -0400, Eric Covener <covener@xxxxxxxxx> wrote:
>> >>> RewriteRule ^(.*)$ http://localhost:9090/index.jsp [P]
>> >>
>> >>> The browser ends up with a not working URL:
>> >>> http://localhost:9090/setup/login.jsp
>> >>
>> >> http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse
>> >
>> > I did not mention in this case it is about a full managed
>> > Linux box. Access to the Apache config is not permitted.
>> > One hat to use a .htaccess file.
>> >
>> > Is there something similar to ProxyPassReverse which works
>> > in the .htaccess?
>>
>> Maybe 'Header edit Location ...' but I'm not sure if Header directives
>> in your htaccess will still be applicable after all the proxying work
>> is done (it wouldn't with ProxyPass, but it might since you had
>> mod_rewrite in htaccess)
>>
>>
>
> Eric - what makes [P] valid in an htaccess, but not
> ProxyPass/ProxyPassReverse ?
>

I'm just going by the manual.  They weren't implemented to be used in
that context, since a normal proxy request is never mapped to the
filesystem.

Proxy works over several hooks, and suppresses ever mapping anything
to disk.  In the case of rewrite in per-directory context, rewrite
kicks off the "latter" processing but bootstraps it a different way
(long after the resource has already been mapped to disk)


-- 
Eric Covener
covener@xxxxxxxxx

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux