httpauth bug or my config mistake?
Edho P Arief
edhoprima at gmail.com
Wed Nov 17 09:37:07 MSK 2010
On Wed, Nov 17, 2010 at 1:30 PM, maar3amt <nginx-forum at nginx.us> wrote:
> Hi
>
> i try set up http auth in one of my domain sub-folder but httpauth not
> work properly.
>
> mys conf.
>
>
> location /adm/ {
> auth_basic Restrito;
> auth_basic_user_file /var/www/tv/adm/.htpasswd;
> }
>
>
> Ii type http://mydomain.com/adm/ ask for credentials prompt but if type
> http://mydomain.com/adm/index.php not show any credentials prompt and
> protected page are printed.
>
> Thak's for any help
>
add
location /adm/.*\.php$ {
auth_basic Restrito;
auth_basic_user_file /var/www/tv/adm/.htpasswd;
<php config goes here>
}
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
More information about the nginx
mailing list