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

nginx location auth_basic

$
0
0
Hello, i have a config:

location / {
root /etc/nginx/euchet;
}

location /app/ {
proxy_pass http://172.16.184.2:8080;
proxy_redirect off;

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE_ADDR $remote_addr;
}

And i need make another location with auth_basic only for request: /app/f?p=3000
How i can do it?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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