Welcome! Log In Create A New Profile

Advanced

location в location

June 13, 2010 01:42AM
Есть вот такая вот часть конфига:

[code]
location ~ ^/admin/.*$ {

location ~ ^/dev/.*$ {

access_log /home/user/logs/nginx/DEV.access_log common;

fastcgi_pass unix:/usr/local/php-www/sock/fcgi.sock;
fastcgi_index index.php;

fastcgi_param SCRIPT_FILENAME /home/user/htdocs/admin$fastcgi_script_name;
fastcgi_param REMOTE_USER $remote_user;
include fastcgi_params;

#client_body_buffer_size 8192k;
#client_body_temp_path var/client_body_temp;
fastcgi_buffers 4 32k;
#fastcgi_header_buffer_size 32k;
fastcgi_busy_buffers_size 32k;
fastcgi_max_temp_file_size 0;
fastcgi_read_timeout 15m;

allow 11.22.33.44;
deny all;

auth_basic "Dev";
auth_basic_user_file /usr/local/nginx/passwd/.htpasswd2;

}


access_log /home/user/logs/nginx/ADMINKA.access_log common;

fastcgi_pass unix:/usr/local/php-www/sock/fcgi.sock;
fastcgi_index index.php;

fastcgi_param SCRIPT_FILENAME /home/user/htdocs$fastcgi_script_name;
fastcgi_param REMOTE_USER $remote_user;
include fastcgi_params;

#client_body_buffer_size 8192k;
#client_body_temp_path var/client_body_temp;
fastcgi_buffers 4 32k;
#fastcgi_header_buffer_size 32k;
fastcgi_busy_buffers_size 32k;
fastcgi_max_temp_file_size 0;
fastcgi_read_timeout 15m;


auth_basic "Hello";
auth_basic_user_file /usr/local/nginx/passwd/.htpasswd;

}
[/code]

Проблема в том, что при переходе в папку ./admin/dev, 2-й пароль не спрашивает и пускает всех + не ведется логирование!
Не пойму что не правильно!
Всем заранее Спасибо!
Subject Author Posted

location в location

Craken June 13, 2010 01:42AM

Re: location в location

Boris Dolgov June 13, 2010 06:14AM

Re: location в location

Craken June 13, 2010 06:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 81
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready