Welcome! Log In Create A New Profile

Advanced

Forward proxy and authentication issue

Posted by giasek 
Forward proxy and authentication issue
September 10, 2015 01:51AM
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.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 74
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready