Welcome! Log In Create A New Profile

Advanced

Re: Bad address

Maxim Dounin
October 27, 2010 04:30PM
Hello!

On Sun, Oct 24, 2010 at 02:47:44AM +0400, first@dizain.org wrote:

> Доброй ночи,
> Обновил до 0.8.53, в журнале получил следующее:
>
> 2010/10/24 01:12:34 [alert] 27808#0: *50819 writev() failed (14: Bad
> address), client: x.x.x.x, server: sub.domain.ru, request: "GET
> /data/28.csv HTTP/1.1", host: "sub.domain.ru"
>
> Конфиг:
> …
> location ~* ^/data/([0-9]+)\.csv$ {
> error_page 404 =200 http://sub.domain.ru/stat_data.php?id=$1;

А что вы пытались добиться, меняя код у редиректа на 200? Т.е.
понятно что это ошибка в nginx'е, появившаяся в связи с

*) Feature: now the "error_page" directive allows to change a status
code in a redirect.

в 0.8.53 (до 0.8.53 попытки изменения статуса в случае редиректов
просто игнорировались), и понятно что это надо править. Но столь
же понятно что смысла подобная конструкция не имеет, и замена её
на

error_page 404 http://sub.domain.ru/stat_data.php?id=$1;

(без "=200") приведёт к бесследному исчезновению проблемы.

Maxim Dounin

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

Bad address

Anonymous User October 23, 2010 06:48PM

Re: Bad address Attachments

Vyacheslav Danilin October 27, 2010 03:58PM

Re: Bad address

Maxim Dounin October 27, 2010 04:30PM

Re: Bad address

Vyacheslav Danilin October 28, 2010 04:14AM

Re: Bad address

Maxim Dounin November 02, 2010 12:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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