Re[2]: Очень длинные урлы.

Михаил Монашёв postmaster на softsearch.ru
Чт Дек 29 07:16:50 UTC 2011


Здравствуйте, Igor.

>> Можно  как-то  ограничить  в  nginx-е  длину  url-ей , передаваемых на
>> бэкенд? А то апач выдаёт 403 на длинные урлы
>> [Wed Dec 28 22:47:07 2011] [error] [client 81.200.127.6]
>> (63)File name too long: access to
>> /interests/%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e\xc8\xd5
>> \xce\xd7\xc5\xcd\xdc
>> \xcc\xcd\xce\xc3\xce%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e/
>> failed
>> и  я не знаю как изменить его поведение, например, на выдачу редиректа
>> на  /interests/  или  на / . Ну или может в апаче 1.3 есть способ, как
>> управлять ответом на длинные урлы.

> location ~ ^/.{1024,} {
>     return  http://$host/;
> }

Спасибо.
А апач 1.3 имеет ограничение в 1024 символов в урле? Приведённый выше
урл короче 1024 символов.

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



Подробная информация о списке рассылки nginx-ru