Re: Web server and Multiple Virtualhost

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

 



On Sun, 2006-01-15 at 14:43 +0700, Amrit Angsusingh wrote:
> # Change this to Listen on specific IP addresses as shown below to
> # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
> #
> #Listen 12.34.56.78:80
> 
> Listen 192.168.0.17:80
> Listen 203.157.122.28:80
> 
> Listen 80
> 
> If I use the config Listen to specific IP both intranet and internet ,
> this will result in an error like this :-
> 
> [root@web ~]# service httpd restart
> Stopping httpd: [  PASS  ]
> Starting httpd: (98)Address already in use: make_sock: could not bind
> to address 203.157.122.28:80
> no listening sockets available, shutting down

You've already got something listening to port 80 on an interface that
Apache is wanting to use.  That could be because you've started Apache
twice over, or you've got something else listening to port 80.  You need
to find out what.

If I issue this command:  netstat -ntap |grep 80

I see these results (below), which show me what's listening to port 80,
as well as anything else that has the characters eight and zero next to
each other, so read carefully.

tcp        0      0 127.0.0.1:80                0.0.0.0:*                   LISTEN      1953/httpd
tcp        0      0 192.168.1.2:80              0.0.0.0:*                   LISTEN      1953/httpd
tcp        0      0 :::8000                     :::*                        LISTEN      1953/httpd

You could do the same.

-- 
Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux