Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Проблема satisfy any
- To: nginx-ru@xxxxxxxxx
- Subject: Проблема satisfy any
- From: "filimonic" <nginx-forum@xxxxxxxx>
- Date: Sat, 12 May 2012 10:01:30 -0400 (EDT)
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tigger.jlkhosting.com; s=x; h=From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To:Date; bh=NEXCgeLKQpk9cuqRHnqllCnBVzvfAgiYJp+3Px0iUkA=; b=QRhCGmZMlOFHXaBcRW1LECMFS31UZN6Sx0DhVYpB53wZVEJv5ExqrgmUd//iCxZMLlOXBZBbpvR76xi6dmW67tfFMxRiNt0bB3MgFB7EVHHCJk7SYQWe3AUJFD3iVxor;
Прошу помощи разобраться с satisfy any;
При запросе с разрешенного IP все равно
запрашивает пароль.
server {
server_name test.mydomain.ru
listen 80;
root /srv/www/www.mydomain.ru;
index index.php;
client_max_body_size 500m;
merge_slashes on;
server_tokens off;
charset utf-8;
satisfy any;
allow 10.1.2.0/24; #Office IP
allow 127.0.0.1; #Local host
auth_basic "Site administration section password.";
auth_basic_user_file /srv/www/www.mydomain.ru/int/.htpasswd;
error_page 500 =200 /error/oops500.html;
error_page 502 =200 /error/oops502.html;
error_page 404 @err404_redirect;
keepalive_requests 100;
keepalive_timeout 75;
fastcgi_intercept_errors on;
#======================
location @err404_redirect {
rewrite ^ / redirect;
}
location = / {
fastcgi_pass unix:/srv/php/php-fpm.socket;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
/srv/www/www.mydomain.ru$fastcgi_script_name;
include fastcgi_params;
}
}
~$ /usr/sbin/nginx -V
nginx version: nginx/1.0.15
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx
--conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-client-body-temp-path=/var/lib/nginx/body
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi
--http-log-path=/var/log/nginx/access.log
--http-proxy-temp-path=/var/lib/nginx/proxy
--http-scgi-temp-path=/var/lib/nginx/scgi
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi
--lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid
--with-debug --with-file-aio --with-http_addition_module
--with-http_dav_module --with-http_geoip_module
--with-http_gzip_static_module --with-http_image_filter_module
--with-http_realip_module --with-http_secure_link_module
--with-http_stub_status_module --with-http_ssl_module
--with-http_sub_module --with-http_xslt_module --with-ipv6
--with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl
--with-mail --with-mail_ssl_module
--add-module=/usr/src/nginx/source/nginx-1.0.15/debian/modules/nginx-auth-pam
--add-module=/usr/src/nginx/source/nginx-1.0.15/debian/modules/nginx-echo
--add-module=/usr/src/nginx/source/nginx-1.0.15/debian/modules/nginx-upstream-fair
--add-module=/usr/src/nginx/source/nginx-1.0.15/debian/modules/nginx-syslog
--add-module=/usr/src/nginx/source/nginx-1.0.15/debian/modules/nginx-cache-purge
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,226345,226345#msg-226345
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|