Re: Reverse proxy not working

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

 



On Tue, Jan 2, 2018 at 1:05 PM, Simon Walter <simon@xxxxxxxxxx> wrote:
> On 01/02/2018 06:06 PM, Luca Toscano wrote:
>>
>> Can you explain a bit more what do you mean with "I am getting local
>> links" ?
>
> I think Noor is expecting mod_proxy to modify the HTML. I might be
> wrong, but IIRC that is not what mod_proxy does.
>
[snip]
>
> Noor, I think you will need to form your URLs as they should appear to
> the final client.

The URLs created by the application (origin server) should be
relative, no preceeding scheme nor domain:port like
"http://localhost:8080";, but paths only (e.g. HTML links should look
like '<img src="/marmotta/foo.gif" ... />' instead of '<img
src="http://localhost:8080/marmotta/foo.gif"; ... />').

Another possibility, if you can't change the application, is to use
mod_proxy_html to rewrite the URLs, but it's less easy...


Regards,
Yann.

---------------------------------------------------------------------
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