basic auth not prompting for id and pass

AMP Admin admin at
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.

location ~ /(directory1/|directory2/|directory3/).* {
	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