basic auth with rewrite issue

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


Hi Merlin,

Thanks for the input, but i tried your suggestion of 


server {
  listen 80;
  server_name app.dns.com;
  auth_basic "Restricted";
  auth_basic_user_file passfile;
  rewrite ^(.*)$ http://app.dns.com:7004$1 permanent;
}



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

Thanks
-zach

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,41891,43104#msg-43104




More information about the nginx mailing list