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

Монашёв Михаил postmaster at softsearch.ru
Tue Dec 12 18:38:42 MSK 2006


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

Имеется конфиг:

        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.


-- 
С уважением,
Монашёв Михаил, SoftSearch.ru
Member of Independent Software Developers Forum (ISDEF)
mailto:postmaster at softsearch.ru
ICQ# 166233339
http://softsearch.ru/
Без бэкапа по жизни.






More information about the nginx-ru mailing list