ðòïåëôù 


  áòèé÷ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  óôáôøé 


  ðåòóïîáìøîïå 


  ðòïçòáííù 



ðéûéôå
ðéóøíá












     áòèé÷ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nginx É .htpasswd



õÂÉÒÁÀ ÜÔÏ:
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 mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.