basic auth with rewrite issue

zlegein nginx-forum at
Tue Jan 19 20:21:04 MSK 2010

Hi Merlin,

Thanks for the input, but i tried your suggestion of 

server {
  listen 80;
  auth_basic "Restricted";
  auth_basic_user_file passfile;
  rewrite ^(.*)$$1 permanent;

But this still doesn't prompt a login. Were you suggesting that I also, drop the 'permanent'?


Posted at Nginx Forum:,41891,43104#msg-43104

More information about the nginx mailing list