skip to Main Content

Nginx deny if location contains

How can I deny access to nginx if the path contains /local or /local-int to all networks except the local one? For example https://example.com/api/local/settings. I tried this, but when accessed locally, the request goes to /etc/nginx/html/api/local/settings,and not to the desired…

VIEW QUESTION
Back To Top
Search