Re: How to prevent mod_proxy from rewriting redirects into absolute URLs?

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

 



`fgrep -ir usecanonicalname /etc/apache2/` turns up nothing.  (FWIW
I'm using the apache2 from Ubuntu 12.04)

On Sun, Nov 18, 2012 at 5:04 PM, Igor Cicimov <icicimov@xxxxxxxxx> wrote:
>
>
>
> On Mon, Nov 19, 2012 at 11:03 AM, Nick Kew <nick@xxxxxxxxxxxx> wrote:
>>
>> On Sun, 18 Nov 2012 14:48:35 -0800
>> Yang Zhang <yanghatespam@xxxxxxxxx> wrote:
>>
>> > I have: nginx (port 80) reverse-proxying to apache2 (port 88)
>> > reverse-proxying to a web app (port 5001).
>> >
>> > However, when the web app responds with a redirect like `Location:
>> > /foo`,
>>
>> That is not valid HTTP.  A Location header must be an absolute URI.
>>
>>  apache2 rewrites this into `Location:
>> > http://host.com:88/sub/foo`, even though port 88 is publicly
>> > inaccessible.
>>
>> So where does :88 come from?  Looks like a misconfiguration
>> somewhere outside the section you quoted.
>
>
> Maybe from UseCanonicalName ??
>>
>>
>>
>> --
>> Nick Kew
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>>
>



-- 
Yang Zhang
http://yz.mit.edu/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-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