Re: reverse proxy and path

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

 



On Tue, Jan 14, 2020 at 12:05 PM Vieri Di Paola <vieridipaola@xxxxxxxxx> wrote:

> The client browser tries to connect to
>
> https://my_apache_reverse_proxy/2/css/bootstrap.12pt.css
>
> instead of
>
> https://my_apache_reverse_proxy/rp/1/2/css/bootstrap.12pt.css (typo corrected)
> or
> https://my_apache_reverse_proxy/pr/1/2/css/bootstrap.12pt.css (with typo)
>
> So, the first regexp of RewriteRule ^/2/(.*)$ /pr/1/2/$1 is not matched.

I figured out that I had to be more explicit. The following works:

RewriteRule ^/2/(.*)$ https://my_reverse_proxy/rp/1/2/$1

So:
1) why do I need to specify an absolute URL?
2) is there a variable name I could use instead of my_reverse_proxy?

Vieri

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