return 204 не работает

Igor Sysoev is at rambler-co.ru
Tue Dec 12 19:01:39 MSK 2006


On Tue, 12 Dec 2006, [Windows-1251] Монашёв Михаил wrote:

> Имеется конфиг:
>
>        server {
>                listen  xx.xx.xx.xx:80;
>                server_name site.com *.site.com;
>
>                include  bots;
>
>                rewrite ^/feeds/rss20\.cgi\?(.*)$ http://$host/feeds/rss20.cgi?$1 permanent;
>                rewrite ^/feeds/atom03\.cgi\?(.*)$ http://$host/feeds/atom03.cgi?$1 permanent;
>
>                location /i/ {
>                        root         /xxx;
>                        expires      1d;
>                        log_not_found  off;
>                        error_page 404  /zero;
>                }
>
>                location = /zero { return 204; }
>
>                location / {
>                        proxy_pass  http://127.0.xxx.xxx:80/;
>                }
>        }
>
> При запросе к http://site.com/i/wrong/url.html выдаётся 404 код, хотя
> до перехода на nginx-0.5.0 возвращался 204.

Можно прислать отладочный лог ?


Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list