On Tue, Jan 14, 2020 at 12:05 PM Vieri Di Paola <vieridipa...@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-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to