auth_basic & location & php
Mikel Arteta
lists at ruby-forum.com
Fri Aug 15 19:55:13 MSD 2008
Bonjour,
I'm trying to limit access to the interface admin postfixadmin, managed
by "default" htaccess
So I tried this:
location ^~ /postfixadmin/admin/ {
auth_basic "Restricted";
auth_basic_user_file /usr/local/nginx/conf/htpasswd;
fastcgi_pass unix:/dev/shm/php2.socket;
include /usr/local/nginx/conf/fastcgi.conf;
fastcgi_param SCRIPT_FILENAME
/data/www/postfixadmin/admin$fastcgi_script_name;}
The authentication works well, but the code is not interpreted php, in a
browser I have this message: "The page you are looking for is
temporarily unavailable.
Please try again later. "
and the logs:
008/08/15 13:56:48 [error] 413#0: *162 recv() failed (104: Connection
reset by peer) while reading response header from upstream, client:
194.14.17, server: 21.43.20.1, request: "GET
/postfixadmin/admin/index.php HTTP/1.1", upstream:
"fastcgi://unix:/dev/shm/php2.socket:", host: "vigio.co.fr"
2008/08/15 13:56:49 [error] 413#0: *168 recv() failed (104: Connection
reset by peer) while reading response header from upstream, client:
194.14.17.1, server: 22.4.20.6, request: "GET
/postfixadmin/admin/index.php HTTP/1.1", upstream:
"fastcgi://unix:/dev/shm/php2.socket:", host: "vigio.co.fr"
With you a solution?
Guillaume.
--
Posted via http://www.ruby-forum.com/.
More information about the nginx
mailing list