Apache, by default, will attempt to bind to and listen on these interfaces:
0.0.0.0:80
0.0.0.0:443
[::]:80
[::]:443
“0.0.0.0
” specifies ALL IPv4 addresses that the system has (including 127.0.0.1).
“::
” specifies ALL IPv6 addresses that the system has (including ::1).
When started, Apache will try to take all the IP addresses of the local system, and if you are already running another web-server (such as IIS, Tomcat, Nginx, Domino, etc) on that same system, Apache will not be able to bind to “0.0.0.0″ and “::”, and will fail to start.
To bind Apache to a specific or secondary IP address:
Edit file -
C:\WampDeveloper\Config\Apache\httpd.conf
Find and replace these two lines (one is at the beginning, the other at the end) -
Listen 80
...
Listen 443
With -
Listen ip.address.here:80
...
Listen ip.address.here:443
Also make sure that your other web-server is binding only to a specific IP address, and not to “0.0.0.0″.
If Apache won’t start, check the configuration by running (from the command line):
httpd -t -n "Apache2"
httpd -k start -n "Apache2"