Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: basic авторизация не работ ает php
Где-то вот так:
location /admin/
{
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.htpasswd/passwd;
location ~* ^.+.(php)$ {
fastcgi_pass unix:/usr/local/php/sock/fcgi.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
/home/mysite$fastcgi_script_name;
include fastcgi_params;
}
}
Только пути подправьте под себя!
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,219645,219693#msg-219693
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|