Welcome! Log In Create A New Profile

Advanced

Re: httpauth bug or my config mistake?

November 17, 2010 01:42AM
On Wed, Nov 17, 2010 at 1:30 PM, maar3amt <nginx-forum@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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

httpauth bug or my config mistake?

maar3amt November 17, 2010 01:30AM

Re: httpauth bug or my config mistake?

edogawaconan November 17, 2010 01:42AM

Re: httpauth bug or my config mistake?

Jim Ohlstein November 17, 2010 01:58AM

Re: httpauth bug or my config mistake?

maar3amt November 17, 2010 04:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 241
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready