Welcome! Log In Create A New Profile

Advanced

Проблема с auth basic

January 21, 2010 08:59AM
Здравствуйте

Сделал Auth Basic для 1 папки сайта в nginx, при обращении к index.php (в этой папки) получаю 6 запросов авторизации (по 1 на каждую ссылку в head этого index.php). В конфигу satisy on стоит. В чем может быть проблема?
Конфиг вот:

server {
listen 92.241.168.10;
server_name [url=http://www.site.org]www.site.org[/url] site.org;
access_log /var/log/nginx/scene_access.log;
error_log /var/log/nginx/scene_error.log info;
location / {
satisfy any;
root /var/www/scene-network;
index index.php index.html;
}
location ~* ^.+\.(php)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/scene-network$fastcgi_script_name;
include fastcgi_params;
}
location /closed/ {
index index.php index.html;
satisfy any;
root /var/www/site;
auth_basic "closed site";
auth_basic_user_file /var/www/site/closed/.htpasswd;
}

}

В index.php такое в head:
<script type="text/javascript" src="scripts/prototype.js"> </script>
<script type="text/javascript" src="scripts/window.js"> </script>
<script type="text/javascript" src="scripts/desktop.js"> </script>
<link href="themes/style.css" rel="stylesheet" type="text/css">
<link href="themes/default.css" rel="stylesheet" type="text/css">
<link href="themes/alphacube.css" rel="stylesheet" type="text/css">
Subject Author Posted

Проблема с auth basic

gigimon January 21, 2010 08:59AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 106
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