basic auth not prompting for id and pass

AMP Admin admin at ampprod.com
Tue Apr 21 03:27:53 MSD 2009


Anyone know why the following wouldn't prompt for an id and password?  It
just goes directly to my 401 (requires authorization) page.

[CODE]
location ~ /(directory1/|directory2/|directory3/).* {
	fastcgi_pass    127.0.0.1:9000;
	fastcgi_index   index.php;
	include         fastcgi_params;
	auth_basic            "Restricted";
	auth_basic_user_file  /etc/nginx/htpasswd;
} [/CODE]






More information about the nginx mailing list