Welcome! Log In Create A New Profile

Advanced

Re[2]: rewrite or internal redirection cycle

Михаил Монашёв
January 22, 2013 10:24AM
Здравствуйте, Валентин.

>> Увидел ошибку:
>>
>> 2013/01/18 22:30:21 [error] 10601#0: *43370718 rewrite or internal
>> redirection cycle while internally redirecting to "/zero", client:
>> 46.158.147.140, server: f.beon.ru, request: "GET /beon.ru HTTP/1.1", host:
>> "f.beon.ru", referrer: "http://colesnik-2011.ya.ru/"
>>
>> Судя по конфигу всё нормально. И фавиконка верно отдаётся:
>> http://f.beon.ru/beon.ru Не могу придумать как там что зацикливается. В
>> каких случаях возникает такая ошибка?

> Когда делается более 10 внутренних перенаправлений.

Никак не выходит воспроизвести эту ошибку, чтобы глянуть в дебаг-лог.
Вот часть конфига, в которой воспроизводится эта ошибка:

proxy_set_header Host $host;
proxy_next_upstream error timeout invalid_header http_404 http_500 http_502 http_503 http_504;
proxy_intercept_errors on;
recursive_error_pages on;

server {
listen 83.222.4.74:80;
server_name f.beon.ru;

valid_referers none blocked beon.ru *.beon.ru;
if ($invalid_referer) {
return 403;
}

error_page 301 302 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 422 423 424 425 426 449 500 501 502 503 504 505 506 507 509 510 = /zero;

location / {
return 204;
}

location = /zero {
return 204;
}

# aa.ru
location ~ "^/(?<phost>[a-z0-9-]{1,50}\.[a-z]{2,22})$" {
proxy_set_header Host $phost;
proxy_set_header Referer "http://$phost/";
proxy_pass http://$phost/favicon.ico;
}

}

Ошибка вроде пропадает, если написать recursive_error_pages off; Но
совсем не понятно, где и почему происходит зацикливание.

--
С уважением,
Михаил mailto:postmaster@softsearch.ru

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

rewrite or internal redirection cycle

Михаил Монашёв January 20, 2013 02:12PM

Re: rewrite or internal redirection cycle

Валентин Бартенев January 20, 2013 04:12PM

Re[2]: rewrite or internal redirection cycle

Михаил Монашёв January 22, 2013 10:24AM

Re: Re[2]: rewrite or internal redirection cycle

VovansystemS January 22, 2013 10:42AM

Re[4]: rewrite or internal redirection cycle

Михаил Монашёв January 22, 2013 10:52AM

Re: Re[4]: rewrite or internal redirection cycle

VovansystemS January 22, 2013 11:10AM

Re: rewrite or internal redirection cycle

Maxim Dounin January 22, 2013 10:52AM

Re[2]: rewrite or internal redirection cycle

Михаил Монашёв January 22, 2013 11:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 182
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready