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]

server_name, conflicting s erver name


  • To: nginx-ru@xxxxxxxxx
  • Subject: server_name, conflicting s erver name
  • From: Slava Kokorin <slava.kokorin@xxxxxxxxx>
  • Date: Wed, 4 Mar 2009 19:02:16 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=VLwbEU+yiModN+a0/vpxKpd7fKA3VPpAYnM7R1c783M=; b=qt3WAiPCnnuJ/+Xn/AkgJKkkJg1YTmtQbc6+afOLKIY50aNf/Fu7GmQZfWTw00FuoW r+8pT88ilR75L5DRmGtTqdAruWsPfJxD2Zdv5kdfLXfnrkBPF50Wrc2Z2/S6z6tnDqsZ d5iL9PAL6n3raMZOrbPUJE7ePQ6NWPd+KeCrE=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=AV5oGhjg9QCB/teXqgiIxonVzea+NMIbDW6SWUviuY/3XUaSnTxNTUuoWBzUA32CaD HiP28CcbhqIulW3Ig8iZojpIiX4qZqQAnE0T/IU4lm7aXn3ZjM9zpJN0vRVPDJpOl04I NfEq/U/g65+e54ddk+zhmhBjYJIsY/ub1wlgc=

!

nginx/0.5.35

POST , .

:

http {
server {
include listen.conf;
location / {
proxy_pass http://127.0.0.1:80;
}

}

server {
include listen.conf;
server_name serv.ru www.serv.ru;
location / {
proxy_pass http://127.0.0.1:80;
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
access_log off;
client_body_in_file_only on; ## This is to keep temp files with POST requests
}
}
}

: server {} server_names .
server {}, server_name, :

# nginx -c /usr/local/etc/nginx/nginx.conf
2009/03/04 18:49:58 [warn] 95904#0: conflicting server name "serv.ru" on 89.108.xx.xx:80, ignored

, ͣ hostname
# hostname
serv.ru


http://sysoev.ru/nginx/docs/http/ngx_http_core_module.html#server_name
, " . (hostname)."

1: , serv.ru server {} ?
2: serv.ru server {}? server {} ?

!

--
Regards,
Slava


 




Copyright © Lexa Software, 1996-2009.