Re: путаница с содержимым логов

Костенко Евгений nobody.mail at gmail.com
Thu Oct 29 16:54:16 MSK 2009


29 октября 2009 г. 16:19 пользователь Igor Sysoev <is at rambler-co.ru>написал:

> On Thu, Oct 29, 2009 at 04:02:23PM +0300, Костенко Евгений wrote:
>
> http://sysoev.ru/nginx/docs/virtual_hosts.html
>
> Поставьте
>    listen 80;
> и всё.
>
>
Стало любопытно. Тот же сервер, на котором декларированы два vhost'а.

  server {
        listen       ip1:80;
        server_name  domain1.tld;
        root /some/domain1.tld/public_html;
  }

  server {
        listen       ip2:80;
        server_name  domain2.tld;
        root /some/domain2.tld/public_html;
  }


# cat /some/domain1.tld/public_html/test.txt
this is d1
# cat /some/domain2.tld/public_html/test.txt
this is d2

# telnet ip1 80
GET /test.txt HTTP/1.1
Host: domain2.tld

HTTP/1.0 200 OK
Server: nginx
Date: Thu, 29 Oct 2009 13:37:12 GMT
Content-Type: text/plain
Content-Length: 5
Last-Modified: Thu, 29 Oct 2009 13:36:45 GMT
Accept-Ranges: bytes
Connection: close

this is d2
Connection closed by foreign host.

предположу, что нас должны были "послать" так или иначе. мол здесь таких
нет.
не совсем хорошо, но могли выдать строку "this is d1", раз уже мы пришли на
ip1 и запросили /test.txt
но в ответ выдается строка "this is d2"(?!). такое поведение нежелательно.

баг, фича, мое недопонимание/невнимательность к документации?

-- 
С Уважением,
Костенко Евгений

моб: +7(928)2961142
icq: 101241013
jabber: nobody.mail at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20091029/f3cacf3b/attachment.html>


More information about the nginx-ru mailing list