satisfy problem
lhmwzy
lhmwzy at gmail.com
Fri Apr 8 08:53:56 MSD 2011
my conf is:
server {
listen 80;
server_name 10.66.23.112;
#charset koi8-r;
more_set_headers "Server:lhmwzy web server";
access_log off;
root /usr/www/112/www;
index index.php index.html index.htm;
location ^~ /phpmyadmin/
{
satisfy any;
#allow 10.68.136.241;
allow 10.68.9.210;
deny all;
auth_basic "passwd";
auth_basic_user_file ksadminpasswd;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:10080;
include fastcgi;
fastcgi_index index.php;
}
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:10080;
include fastcgi;
fastcgi_index index.php;
}
error_page 401 403 /error/401.html;
error_page 404 /error/404.html;
error_page 500 502 503 504 = /error/50x.html;
}
When access phpmyadmin from 10.68.136.241, nginx can not show the
/error/401.html,but the default 401 error_page.
More information about the nginx
mailing list