nginx location wildcard match for proxy_pass

Viewed 11

I like to proxy_pass traffic to another website based on request path.

For example, if request is example.com/site1 then proxy_pass it to site1.anothersite.com. example.com/site2 will be proxy_pass to site2.anothersite.com and so on.

How do I config the location block for this, thanks

0 Answers
Related