А РХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev ][Date Next ][Thread Prev ][Thread Next ][Date Index ][Thread Index ]
Re: basic авторизация - как пра вильно?
To : nginx-ru@xxxxxxxxx
Subject : Re: basic авторизация - как пра вильно?
From : Kruglov Eugenie <ekruglov@xxxxxxxxx >
Date: Tue, 14 Dec 2010 14:04:57 +0300
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=wBkWZCQNNTbO07+pDPkADeMxK7h9I2NieS2uJEtfjJ0=; b=SmxcEQ5IKlULITFJ7jzNA+gCd4+RXNT375Y9Z0obvnezf48qX+tZ6kU/aibyBBv55J nh2l24dPew0cjvxveZkQttWzYA7arlxYFHKExSCOhMDzC/kbxCvEyxvQJji2jNviOdGV VNLzm4ZvbXny1AL4TIMoIu/jMpg4mNCXSUgGM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=UR7VvE1SIET4EIVlAHBBf3T0/kV4I70T2yZ24M24lNdppqeTa/YhmcI9OuOq63eLll 6Qt3TXyy2Nse8yXp9J5YYnEWTPRB8ift1vQFWI2KYtgbXVIO9Jij2gl8YdCV+A8QYeef SsdnL8u/UZa+MEDxy26UjNF/mRM566d2Mb8VM=
In-reply-to: <f523734b2ff3778e00687bc5e5927eab.NginxMailingListRussian@xxxxxxxxxxxxxxx >
References: <f523734b2ff3778e00687bc5e5927eab.NginxMailingListRussian@xxxxxxxxxxxxxxx >
Вложите второй локейшн в первый. location /protected
{
auth_basic "...";
auth_basic_user_file htpasswd;
... location ~ \.php$
{
fastcgi_pass 127.0.0.1:9000 ;
...
}
} -- Faithfully yours, Eugenie ICQ #701217 GTalk ekruglov@xxxxxxxxx
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru