Баг с location в nginx-devel-0.7.42 ?

Konstantin Belov belov1985 at gmail.com
Tue Mar 17 17:58:41 MSK 2009


Igor Sysoev wrote:
> On Tue, Mar 17, 2009 at 03:49:52PM +0200, Konstantin Belov wrote:
>
>   
>> Добрый день!
>>
>> Сегодня решил обновить nginx до последней версии (был установлен 0.7.33)
>>
>> После обновления возникли проблемы с отдачей картинок, а если быть 
>> точнее, то почему-то к названию
>> картинки в конце добавляется / и запрос передается fastcgi серверу.
>>     
>
> Судя по тому, что слэш передаётся клиентом:
> "GET /img/blog_bottom.jpg/ HTTP/1.0", дело в создании этих ссылок,
> то есть, слэши добавляет код
> http://news.ereality.ru/index.php?do=fotoalbum&subaction=myfoto
>   

telnet 80.93.57.177 80
Trying 80.93.57.177...
Connected to gr3.p8.ru.
Escape character is '^]'.
GET /img/topbox_01.gif HTTP/1.0
host: news.ereality.ru

HTTP/1.1 200 OK
Server: nginx/0.6.35
Date: Tue, 17 Mar 2009 14:54:37 GMT
Content-Type: image/gif
Content-Length: 67
Last-Modified: Mon, 18 Aug 2008 16:44:25 GMT
Connection: close
Expires: Thu, 16 Apr 2009 14:54:37 GMT
Cache-Control: max-age=2592000
Accept-Ranges: bytes

GIF89????????????????!?H???";
Connection closed by foreign host.






telnet 80.93.57.177 80
Trying 80.93.57.177...
Connected to gr3.p8.ru.
Escape character is '^]'.
GET /img/topbox_01.gif HTTP/1.0
host: news.ereality.ru

HTTP/1.1 301 Moved Permanently
Server: nginx/0.7.42
Date: Tue, 17 Mar 2009 14:56:16 GMT
Content-Type: text/html
Content-Length: 185
Location: http://news.ereality.ru/img/topbox_01.gif/
Connection: close
Expires: Thu, 16 Apr 2009 14:56:16 GMT
Cache-Control: max-age=2592000

<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/0.7.42</center>
</body>
</html>
Connection closed by foreign host.



/usr/local/sbin/nginx742 -V
nginx version: nginx/0.7.42
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt=-I 
/usr/local/include --with-ld-opt=-L /usr/local/lib 
--conf-path=/usr/local/etc/nginx/nginx.conf 
--sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid 
--error-log-path=/var/log/nginx-error.log --user=www --group=www 
--http-client-body-temp-path=/var/tmp/nginx/client_body_temp 
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp 
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp 
--http-log-path=/var/log/nginx-access.log --with-http_ssl_module 
--with-http_stub_status_module --with-http_sub_module 
--add-module=/usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.8 
--add-module=/usr/ports/www/nginx-devel/work/ngx_http_upstream_keepalive-0.1






More information about the nginx-ru mailing list