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

Can I use upstreaming based on a URI regex?

$
0
0
Hello,

I have an issue with our nginx conf.

How can I upstream to different machine clusters based on a URI.

I have tried the following within the server block,

if ($uri ~ ^/.*oo=oo*/) {upstream //bla}
if ($uri ~ ^/.*/) {upstream //blabla} (all the rest)

what am i doing wrong?

Can I use if for upstreaming?

Thanks,

Meir

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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