httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vieri Di Paola <vieridipa...@gmail.com>
Subject Re: [users@httpd] reverse proxy and path
Date Tue, 14 Jan 2020 12:56:13 GMT
On Tue, Jan 14, 2020 at 12:05 PM Vieri Di Paola <vieridipaola@gmail.com> 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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message