Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
location в location
- To: nginx-ru@xxxxxxxxx
- Subject: location в location
- From: "Craken" <nginx-forum@xxxxxxxx>
- Date: Sun, 13 Jun 2010 01:42:09 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To:Date; bh=5R5nFvtN3FY8NA7mFzBhDQkWe1U/F3ZNDM6bX/jIoQQ=; b=ZrvcVIV6t3QF3bapDPMRrAlQic05zCYg3I4iF9vAFNBpIuGq8sNVtah9zZf/itwr7DoShG6FgW5Qq02vdGDAaV9jYWYBhVz738NQr/YDU527hWF2a45Z02PjojFfwEb2;
Есть вот такая вот часть конфига:
[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-й пароль не спрашивает
и пускает всех + не ведется логирование!
Не пойму что не правильно!
Всем заранее Спасибо!
Posted at Nginx Forum: http://forum.nginx.org/read.php?21,97664,97664#msg-97664
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|