Welcome! Log In Create A New Profile

Advanced

Re: nginx proxy_pass and proxy_cache

Francis Daly
November 11, 2021 04:04AM
On Thu, Nov 11, 2021 at 08:54:21AM +0000, Francis Daly wrote:
> On Wed, Nov 10, 2021 at 08:58:54PM +0200, Reinis Rozitis wrote:

Typo/thinko-fixes...

> You could possibly also take advantage of case#2, and do
>
> rewrite /something/(.*\.xml)$ /$1 break;

rewrite /something/(.*\.xml)$ /data/$1 break;

Along with "proxy_pass http://origin;".

> but that feels a bit too subtle to me.

That remains true.

> Note that the regex-matching attempts may not do what you want if you
> have %-encodings in the incoming requests -- test your use cases to see
> that things work for you.

That is: the case#3 regex-location does that in my testing; the case#2
rewrite does not. Initial request of /something/file%20name.xml.

> Or just use the map.

That also remains true ;-)

Cheers,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx proxy_pass and proxy_cache

Michiel Beijen November 10, 2021 10:30AM

RE: nginx proxy_pass and proxy_cache

Reinis Rozitis November 10, 2021 02:00PM

Re: nginx proxy_pass and proxy_cache

Francis Daly November 11, 2021 03:56AM

Re: nginx proxy_pass and proxy_cache

Francis Daly November 11, 2021 04:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 268
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready