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

Forward proxy and authentication issue

$
0
0
Hi,

I have configured nginx as a forward proxy with basic http authentication. When I'm trying to visit some website via nginx proxy, which has included links to other sites nginx asks me for a login and password every new domain is visited.
I would like to configure nginx for one time authentication until user does not close web browser. My configuration looks like this:

server {
listen 8080;

location / {
auth_basic "Restricted";
auth_basic_user_file password;
resolver 8.8.8.8;
proxy_pass http://$http_host$uri$is_args$args;
}

}

Thank You for help and hints.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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