skip to Main Content

How to use Nginx Regex in the location

I hate regex.. But in some cases I have to use regular expressions. How can I get the content in bold below? https://proxyhost/bucketname/test/uid location ~* /regex/ { proxy_pass https://$1.s3.amazonaws.com/; } I need use this regex to extract the bucket name…

VIEW QUESTION
Back To Top
Search