Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Проблемы с добавл ение виртуал-хоста к  nginx
 
 
Andrew Kopeyko пишет:
 
On Tue, 29 Jan 2008, Yaroslav wrote:
 
Пересобрал nginx c --with-debug
2008/01/29 15:03:39 [debug] 14052#0: bind() 192.168.0.1:80 #14
2008/01/29 15:03:39 [debug] 14052#0: bind() 192.168.0.2:80 #15
 2008/01/29 15:03:39 [emerg] 14052#0: bind() to 195.189.226.206:80 
failed (99:
 
                                                 ^^^^^^^^^^^^^^^
Вот те раз! А этот ip откуда взялся?
Пожалуйста, пришлите вывод `ifconfig -a` ещё раз.
Желательно - без ретуши. Чтобы было без искажений.
 
В данный момент nginx работает на ИП 195.189.226.142
eth0      Link encap:Ethernet  HWaddr 00:E0:81:5B:17:7E
          inet addr:195.189.226.142  Bcast:195.189.227.255  
Mask:255.255.254.0
         inet6 addr: fe80::2e0:81ff:fe5b:177e/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:196969482 errors:0 dropped:0 overruns:0 frame:0
         TX packets:242457739 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:2617041018 (2.4 GiB)  TX bytes:768543495 (732.9 MiB)
         Interrupt:16
eth0:0    Link encap:Ethernet  HWaddr 00:E0:81:5B:17:7E
         inet addr:195.189.227.21  Bcast:195.189.227.255  
Mask:255.255.254.0
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         Interrupt:16
eth0:1    Link encap:Ethernet  HWaddr 00:E0:81:5B:17:7E
         inet addr:195.189.227.206  Bcast:195.189.227.255  
Mask:255.255.254.0
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         Interrupt:16
ping -c 3 195.189.227.206
PING 195.189.227.206 (195.189.227.206) 56(84) bytes of data.
64 bytes from 195.189.227.206: icmp_seq=1 ttl=60 time=8.47 ms
64 bytes from 195.189.227.206: icmp_seq=2 ttl=60 time=8.96 ms
64 bytes from 195.189.227.206: icmp_seq=3 ttl=60 time=12.6 ms
На 80 порту перед подключением второго хоста ничего не весит
nmap 195.189.227.206 -p 80
Starting Nmap 4.20 ( http://insecure.org ) at 2008-01-29 15:41 EET
Interesting ports on 206.227.189.static.server.ua (195.189.227.206):
PORT   STATE  SERVICE
80/tcp closed http
netstat -nap
tcp        0      0 195.189.227.206:53          
0.0.0.0:*                   LISTEN      26233/named
udp        0      0 195.189.227.206:53          
0.0.0.0:*                               26233/named
unix  3      [ ]         STREAM     CONNECTED     7206   2677/dhcdbd
В логах выводит ошибку:
2008/01/29 15:27:11 [debug] 16303#0: bind() 195.189.226.206:80 #9
 2008/01/29 15:27:11 [emerg] 16303#0: bind() to 195.189.226.206:80 failed 
(99: Cannot assign requested address)
 
 
 |