Welcome! Log In Create A New Profile

Advanced

proxy and auth basic

admin
March 12, 2010 10:36PM
server {
listen 80;
server_name sub.domain.com;

charset utf-8;

access_log logs/sub.domain.com.log;
error_log logs/sub.domain.com.log;


location / {
auth_basic "Restricted";
auth_basic_user_file htpasswd;
proxy_pass http://localhost:4774;
}

Не функционирует авторизация - проксируемая страница передаётся
клиентам открыто. Возможно ли использовать basic auth и при этом
проксировать этот же location?

Спасибо.

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

proxy and auth basic

admin March 12, 2010 10:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 186
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