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

Mikel Arteta lists at ruby-forum.com
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 
/data/www/postfixadmin/admin$fastcgi_script_name;}}


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

avec: location  ^~  /postfixadmin/admin {
=> http://img205.imageshack.us/img205/963/adminky5.png
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list