Quantcast
Channel: Nginx Forum - Nginx Mailing List - Russian
Viewing all articles
Browse latest Browse all 3102

Ошибка. Цикл при обращении к именованой локации "rewrite or internal redirection cycle while redirect to named location" (2 replies)

$
0
0
OS: FreeBSD 9
Nginx: 1.4.4
Конфигурация сервера:

server {
listen 80;
root /www/domain;
access_log /var/log/access.log;
error_log /var/log/error.log;
index index.php;

server_name my.domain.ru;

location / {
try_files $uri @front;
}

location @front {
client_body_in_file_only clean;
client_body_buffer_size 128K;
client_max_body_size 120M;
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param SCRIPT_NAME /index.php;
}
}

Почему то происходит зацикливание. На другой машине (под убунту и нгинкс 1.4.1) этот конфиг работает нормально. Не пойму в чем ошибка?

Viewing all articles
Browse latest Browse all 3102

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>