ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Баг с location в nginx-devel-0. 7.42 ?


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: Баг с location в nginx-devel-0. 7.42 ?
  • From: Konstantin Belov <belov1985@xxxxxxxxx>
  • Date: Tue, 17 Mar 2009 16:58:41 +0200
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=xUzdw7W7s0HmsIMdDnSRipEmxT0k41Ls9wBFs5nUsRw=; b=fYlRpaHK21SwSmII9PoEEb/z02ZDfR6v/bDopcRp/HWwKK02q2WW4XgcZInDpu8X4F EWyN53mTRCcvLrmN/MojR5Q/DRj8IgQtzGlGDYvx7rlDDlMNRUrTwEgmVITxgND0ET7j szp6ScWL6L5aXPZTVGeIOjBILAapUE1rblSVk=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=YJELKQgcr+4vCiU0+Ybr88rol0A94s/+msPO7KtlbPEiS+AZ3K2F/Pis0se81x9Ae/ /CKqQuUErseGCiC5eE9r+9lHp/0S0hnvNQIccQ9gKsx+j0jM+e3I7EsT38y73O2bJuEW sZO1xXwR0WLuxck7cXMiQAKJl3KeUS0UgMH1A=
  • In-reply-to: <20090317141308.GD47134@xxxxxxxxxxxxx>
  • References: <49BFAA80.7060502@xxxxxxxxx> <20090317141308.GD47134@xxxxxxxxxxxxx>

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




 




Copyright © Lexa Software, 1996-2009.