Welcome! Log In Create A New Profile

Advanced

strange behavior of basic HTTP auth

Posted by becha 
strange behavior of basic HTTP auth
August 16, 2012 02:52AM
With standard configuration settings:

location /dload {
auth_basic "protected download";
auth_basic_user_file /var/www/ap.hk.lo/.dload;
}


i can access files in directory /dload without authentification.
I get normal server response for GET /dload (header WWW-Authenticate Basic realm="protected download")
but i get 200 OK header for any request inside /dload directory.
Is it bug of nginx?
What configuration should i use?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 171
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