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

How to customize AccessDenied page of MinIO? – Nginx

When the expiration date of MinIO links passes, It responds to an XML like this: <Error> <Code>AccessDenied</Code> <Message>Request has expired</Message> <Key>key-of-the-resource</Key> <BucketName>bucket-name</BucketName> <Resource>/path-to/teh-resource</Resource> <RequestId>16FC78B1C6185XC7</RequestId> <HostId>5d405266-91b9-XXXX-ae27-c48694f203d5</HostId> </Error> Is there any way to customize this page by some sort of configuration inside…

VIEW QUESTION
Back To Top
Search