Re: Nginx и .htpasswd

kosgtx nginx-forum at nginx.us
Wed Feb 6 17:08:00 UTC 2013


Убираю это:
location ^~ /simpla/ {
auth_basic "Administrator Login";
auth_basic_user_file $document_root/simpla/.htpasswd;

try_files $uri $uri/ /index.php;

index index.php;

location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include /etc/nginx/fastcgi_params;
fastcgi_intercept_errors on;
fastcgi_pass unix:/var/lib/php5-fpm/web11.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
}
}

Пробовал оставить просто так:

location ^~ /simpla/ {
auth_basic "Administrator Login";
auth_basic_user_file $document_root/simpla/.htpasswd;
try_files $uri $uri/ /index.php;
index index.php;
}

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,235962,235965#msg-235965



Подробная информация о списке рассылки nginx-ru