Another auth/location question - probably very simple to fix :)

Mikel Arteta lists at
Sun Aug 17 21:29:43 MSD 2008

Mikel Arteta wrote:
> This works with version 0.7.10, With the same configuration.
> Do you know why ?
Indeed not.

With this:

location    /postfixadmin/admin {
    auth_basic            "Restricted";
    auth_basic_user_file  /usr/local/nginx/conf/htpasswd;

 location ~ \.php$ {
    fastcgi_pass   localhost:9000;
    fastcgi_param  SCRIPT_FILENAME 

It works, but just for url "" if you 
put "/ postfixadmin/admin/list-admin.php", more word passes, which is 
normal with this configuration.

avec: location  ^~  /postfixadmin/admin {
Posted via

More information about the nginx mailing list