Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie: Binding to an IP

Status
Not open for further replies.

Stevehewitt

IS-IT--Management
Jun 7, 2001
2,075
GB
Hi Guys,

Sorry, brand new to Apache (normally manage IIS). Running Apache 2.2.6 (Win32) on a box that already has IIS 6 installed and running. Number of sites on IIS - some are bound to a dedicated IP, whilst others use any IP that's unassigned as they use various ports, but never 80. (e.g. all IIS sites that use port 80 have a dedicated interface to run through)

Apache works fine out of the box, however the default config is to use any interface and to use port 8090. I've created a dedicated IP on this server just for this Apache site that I want to host, and changed my httpd.conf to this:

ServerRoot "S:/SVN/"
ServerName "subversion.domain.com"
ServerSignature Off
ServerTokens Prod
DocumentRoot "htdocs"
Listen 10.3.1.91:8091

This all works fine, with everything working nicely. However I want to set the server to use just that one interface, but on port 80. It's a new IP so nothing else should be using it.

If I change the Listen statement to:

Listen 10.3.1.91:80

The Apache service fails to start. I've also tried using this:

BindAddress 10.3.1.91
Listen 80

But so far no luck.

Can anyone point me in the right direction?

Thanks,




Steve.

"They have the internet on computers now!" - Homer Simpson
 
Apache won't start if it is bound to a port that has something else already on it. In this case, it sees IIS using port 80.

 
Thanks.

It appears that IIS uses all interfaces regardless what you state in it's management console. Command line hack sorted IIS to use just a couple of interfaces only and voila - apache lives.

Cheers,




Steve.

"They have the internet on computers now!" - Homer Simpson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top