не работает error_page 503 /503.html;

Igor Sysoev is at rambler-co.ru
Tue Mar 10 21:52:56 MSK 2009


On Tue, Mar 10, 2009 at 09:43:31PM +0300, Igor Sysoev wrote:

> On Tue, Mar 10, 2009 at 05:58:46PM +0200, Андрей Василишин wrote:
> 
> > 
> > >Сделайте отладочный лог одного запроса:
> > >
> > >./configure --with-debug ...
> > >
> > >nginx.conf:
> > >
> > >events {
> > >     debug_connection  адрес;
> > >}
> > >
> > >и пришлите мне
> > 
> > У меня генту, собрал с
> > [ebuild   R   ] www-servers/nginx-0.7.39  USE="debug pcre perl status 
> > sub zlib -addition -fastcgi -flv -imap -random-index -ssl -webdav" 0 kB
> > 
> > Сделал иакую консипукцию:
> > 
> > error_log  /var/log/nginx/error.log debug;
> 
> Здесь debug нужно убрать.
> 
> > pid        /var/log/nginx/nginx.pid;
> > events {
> >    worker_connections  8192;
> >    debug_connection 10.7.2.107;
> > }
> > 
> > но почему-то в error.log сыпятся все запросы, не только с моего айпи.
> 
> В логе нет отладочной информации вообще. Возможно, проблемы с сборкой.

Я ошибся, отладочная информация есть, нужно сделать

grep ' \* 42058571 ' /var/log/nginx/error.log

> > В прикреплении лог  моих действий:
> > я  запускал скачку одного файла, и чуть позже второго (выдавалась ошибка 
> > "Firefox не может найти файл..."), потом первый останавливал и повторно 
> > запускал второй (он начинал качаться).
> > 
> > -- 
> > WBR, Andrey Vasilishin CDIG1-UANIC, CDIG1-RIPE
> > 
> 
> > > cat /var/log/nginx/error.log | g 10.7.2.107
> > 2009/03/10 17:18:55 [notice] 20471#0: *42058571 "^/0(.*)$" does not match "/", client: 10.7.2.107, server: filestore.com.ua, request: "POST /?d=0B4D7F633 HTTP/1.1", host: "filestore.com.ua", referrer: "http://filestore.com.ua/download.php?id=21798&type=2"
> > 2009/03/10 17:18:55 [notice] 20471#0: *42058571 a client request body is buffered to a temporary file /storage/tmp/0000000006, client: 10.7.2.107, server: filestore.com.ua, request: "POST /?d=0B4D7F633 HTTP/1.1", host: "filestore.com.ua", referrer: "http://filestore.com.ua/download.php?id=21798&type=2"
> > 2009/03/10 17:19:07 [error] 20469#0: *42061387 limiting connections by zone "one", client: 10.7.2.107, server: filestore.com.ua, request: "GET /getfile.php?id=21798&access_key=d4152f09afa73db1fc1c9d68e9bb22b3&t=49b686d3&o=FAC71E166CE5CB365B5DCD02C64D2EB2E7D3141670B4CF7850439F4CC14F2DC1AA9D450A099BD72A4546D11F&name=%D0%92%D0%BE%D0%BB%D1%8C%D1%82%20/%20Bolt%20(2008)%20CAMRip.allfilms.infostore.org.avi HTTP/1.1", upstream: "http://127.0.0.1:8080/getfile.php?id=21798&access_key=d4152f09afa73db1fc1c9d68e9bb22b3&t=49b686d3&o=FAC71E166CE5CB365B5DCD02C64D2EB2E7D3141670B4CF7850439F4CC14F2DC1AA9D450A099BD72A4546D11F&name=%D0%92%D0%BE%D0%BB%D1%8C%D1%82%20/%20Bolt%20(2008)%20CAMRip.allfilms.infostore.org.avi", host: "filestore.com.ua", referrer: "http://filestore.com.ua/?d=0B4D7F633"
> > 2009/03/10 17:19:07 [info] 20469#0: *42061387 client 10.7.2.107 closed keepalive connection (104: Connection reset by peer)
> > 2009/03/10 17:19:11 [error] 20469#0: *42062404 limiting connections by zone "one", client: 10.7.2.107, server: filestore.com.ua, request: "GET /getfile.php?id=21798&access_key=d4152f09afa73db1fc1c9d68e9bb22b3&t=49b686d3&o=FAC71E166CE5CB365B5DCD02C64D2EB2E7D3141670B4CF7850439F4CC14F2DC1AA9D450A099BD72A4546D11F&name=%D0%92%D0%BE%D0%BB%D1%8C%D1%82%20/%20Bolt%20(2008)%20CAMRip.allfilms.infostore.org.avi HTTP/1.1", upstream: "http://127.0.0.1:8080/getfile.php?id=21798&access_key=d4152f09afa73db1fc1c9d68e9bb22b3&t=49b686d3&o=FAC71E166CE5CB365B5DCD02C64D2EB2E7D3141670B4CF7850439F4CC14F2DC1AA9D450A099BD72A4546D11F&name=%D0%92%D0%BE%D0%BB%D1%8C%D1%82%20/%20Bolt%20(2008)%20CAMRip.allfilms.infostore.org.avi", host: "filestore.com.ua", referrer: "http://filestore.com.ua/?d=0B4D7F633"
> > 2009/03/10 17:19:13 [error] 20469#0: *42062404 limiting connections by zone "one", client: 10.7.2.107, server: filestore.com.ua, request: "GET /getfile.php?id=21798&access_key=d4152f09afa73db1fc1c9d68e9bb22b3&t=49b686d3&o=FAC71E166CE5CB365B5DCD02C64D2EB2E7D3141670B4CF7850439F4CC14F2DC1AA9D450A099BD72A4546D11F&name=%D0%92%D0%BE%D0%BB%D1%8C%D1%82%20/%20Bolt%20(2008)%20CAMRip.allfilms.infostore.org.avi HTTP/1.1", upstream: "http://127.0.0.1:8080/getfile.php?id=21798&access_key=d4152f09afa73db1fc1c9d68e9bb22b3&t=49b686d3&o=FAC71E166CE5CB365B5DCD02C64D2EB2E7D3141670B4CF7850439F4CC14F2DC1AA9D450A099BD72A4546D11F&name=%D0%92%D0%BE%D0%BB%D1%8C%D1%82%20/%20Bolt%20(2008)%20CAMRip.allfilms.infostore.org.avi", host: "filestore.com.ua", referrer: "http://filestore.com.ua/?d=0B4D7F633"
> > 2009/03/10 17:19:17 [info] 20471#0: *42058571 client closed prematurely connection (104: Connection reset by peer) while sending response to client, client: 10.7.2.107, server: filestore.com.ua, request: "GET /getfile.php?id=33565&access_key=93c1aa91801b40626e1d49a2ff90884a&t=49b68567&o=8FCAC7DF13F4708E01AE7F84743AE6A392DECDDF0FA672C050B77BCB2738E7D0DF909CC3768A6C921FB56399&name=Skazki_na_noch_[torrents.ru].avi HTTP/1.1", upstream: "http://127.0.0.1:8080/getfile.php?id=33565&access_key=93c1aa91801b40626e1d49a2ff90884a&t=49b68567&o=8FCAC7DF13F4708E01AE7F84743AE6A392DECDDF0FA672C050B77BCB2738E7D0DF909CC3768A6C921FB56399&name=Skazki_na_noch_[torrents.ru].avi", host: "filestore.com.ua", referrer: "http://filestore.com.ua/?d=B2BC54CF1"
> > 2009/03/10 17:19:20 [info] 20469#0: *42062404 client closed prematurely connection (104: Connection reset by peer) while sending response to client, client: 10.7.2.107, server: filestore.com.ua, request: "GET /getfile.php?id=21798&access_key=d4152f09afa73db1fc1c9d68e9bb22b3&t=49b686d3&o=FAC71E166CE5CB365B5DCD02C64D2EB2E7D3141670B4CF7850439F4CC14F2DC1AA9D450A099BD72A4546D11F&name=%D0%92%D0%BE%D0%BB%D1%8C%D1%82%20/%20Bolt%20(2008)%20CAMRip.allfilms.infostore.org.avi HTTP/1.1", upstream: "http://127.0.0.1:8080/getfile.php?id=21798&access_key=d4152f09afa73db1fc1c9d68e9bb22b3&t=49b686d3&o=FAC71E166CE5CB365B5DCD02C64D2EB2E7D3141670B4CF7850439F4CC14F2DC1AA9D450A099BD72A4546D11F&name=%D0%92%D0%BE%D0%BB%D1%8C%D1%82%20/%20Bolt%20(2008)%20CAMRip.allfilms.infostore.org.avi", host: "filestore.com.ua", referrer: "http://filestore.com.ua/?d=0B4D7F633"
> 
> 
> -- 
> Игорь Сысоев
> http://sysoev.ru

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





More information about the nginx-ru mailing list