Apache2 lisening to all ip address on port 80 [VirtualMIN]

I am running webmin and virtualmin, and but apache webserver is listening to all ip address on port 80, please help

192.168.40.76
192.168.40.78
192.168.40.79
192.168.40.80

Thanks,

check your apache virtualhosts… maybe those are listening to *:80 .
so, choose your ip and replace virtualhost with, eg. 192.168.40.76:80

It’s not always an issue, really.

I am running webmin and virtualmin, and but apache webserver is listening to all ip address on port 80, please help

Make sure that you have separate configuration for each virtual-host, most importantly set ServerName, DocumentRoot and preferably SuexecUserGroup.


Actually all issues you are seeing shouldn’t be happening, if you installed Virtualmin using official install script.

If so, just Create Virtual Server using Virtualmin tab, and it will just work.

@Ilia How do I make a separate config for each virtual server? I am new to this.

You seem to already have one.

What kind of help you are asking for, it’s unclear!? Do you want Apache to stop listening on all IPs? If I guessed right this time, then you need to check for default, Listen 80 directive.

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# 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

@Ilia thanks for the help, I just changed it under /etc/apache2/ports.conf

You’re welcome,

Here is why I created a feature to search through module’s config files. Just put:

Listen [space]   # make sure to put space after Listen in search box

… on the search and hit enter, you will get all matches for it, for easier control:

@Ilia ------------------------Thanks-------------------------