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

Mikel Arteta lists at ruby-forum.com
Sun Aug 17 19:55:34 MSD 2008


Bonjour,

I'm trying to run the admin postfixadmin, I use nginx 0.6.32.

With this:

location ^~  /postfixadmin/admin {
    auth_basic            "Restricted";
    auth_basic_user_file  /usr/local/nginx/conf/htpasswd;
    location ~ \.php$ {
    fastcgi_pass   unix:/dev/shm/php2.socket;}
}

After retracted the login / pass, I have this:

The page you are looking for is temporarily unavailable.
Please try again later.

2008/08/17 17:47:04 [error] 32735#0: *144 recv() failed (104: Connection 
reset by peer) while reading response header from upstream, client: 
8.6.11.14, server: 212.3.20.6, request: "GET 
/postfixadmin/admin/index.php HTTP/1.1", upstream: 
"fastcgi://unix:/dev/shm/php2.socket:", host: "vigi.net"

2008/08/17 17:47:04 [error] 32735#0: *144 recv() failed (104: Connection 
reset by peer) while reading response header from upstream, client: 
8.6.11.14, server: 212.3.20.6, request: "GET 
/postfixadmin/admin/index.php HTTP/1.1", upstream: 
"fastcgi://unix:/dev/shm/php2.socket:", host: "vigi.net"


With that:


location ~  /postfixadmin/admin/.*\.php$ {
    auth_basic            "Restricted";
    auth_basic_user_file  /usr/local/nginx/conf/htpasswd;
    fastcgi_pass   unix:/dev/shm/php2.socket;}

Even result.


Other test:

location ~  /postfixadmin/admin/.*\.php$ {
    auth_basic            "Restricted";
    auth_basic_user_file  /usr/local/nginx/conf/htpasswd;
    location ~ \.php$ {
    fastcgi_pass   unix:/dev/shm/php2.socket;}}

Résultat => http://img205.imageshack.us/img205/963/adminky5.png

Avec:

location  ^~  /postfixadmin/admin {
    auth_basic            "Restricted";
    auth_basic_user_file  /usr/local/nginx/conf/htpasswd;
    location ~ \.php$ {
    fastcgi_pass   unix:/dev/shm/php2.socket;}}

2008/08/17 17:59:18 [error] 553#0: *63 recv() failed (104: Connection 
reset by peer) while reading response header from upstream, client: 
82.7.11.104, server: 22.4.22.6, request: "GET 
/postfixadmin/admin/index.php HTTP/1.1", upstream: 
"fastcgi://unix:/dev/shm/php2.socket:", host: "vigi.net"

2008/08/17 17:59:19 [error] 553#0: *63 recv() failed (104: Connection 
reset by peer) while reading response header from upstream, client: 
8.67.11.104, server: 22.4.22.6, request: "GET 
/postfixadmin/admin/index.php HTTP/1.1", upstream: 
"fastcgi://unix:/dev/shm/php2.socket:", host: "vigi.net"

I do not understand :|
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list