Rewrite problem

st1905 nginx-forum at nginx.us
Thu Sep 16 21:27:07 MSD 2010


Ok, solved this, just in case anyone needs the solution, here it is.

[code]
location /admin { 
    auth_basic "Restricted"; 
    auth_basic_user_file /path/to/.htpasswd; 
    location ~ \.php$ { 
      include fastcgi.conf; 
      fastcgi_pass my-backend; 
    } 
  } 

[/code]

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




More information about the nginx mailing list