Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Can I use upstreaming based on a URI regex?

$
0
0
Thanks,

The upstream works when out of the "if", but even with an "if" that looks like this

if ($uri ~ ^/.*) { upstream //booboo} it doesnt work. this regex should catch everything, just like putting outside of the "if", upstream //booboo, right?

The nginx gives 404 error.

Can you help?

Thanks

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>