Jump to content

Problem binding to internal IP


reikje

Recommended Posts

Hi, I have installed Apache for the first time. The installation is 2.2.4 Windows (binary). I want to bind Apache to a specific IP address. The address is internal 192.168.1.100 and is mapped to an external IP address via NAT. There are additional internal IP addresses available on this machine. On 192.168.1.101:80 for instance, runs a standalone Tomcat. My goal is to run Apache under 192.168.1.100:80 and have it talk with a Tomcat running on 192.168.1.100:8009 using mod_jk.

 

With these settings, everything works properly:

Listen 80

ServerName localhost:80

 

but then Apache is not bound to a specific IP address. If I change my httpd.conf to this:

Listen 192.168.1.100:80

ServerName 192.168.1.100:80

 

no requests are being served anymore. Is there anything I am missing here? Maybe I should use VirtualHost instead? Thanks in advance,

Reik

Link to comment
Share on other sites

From another computer on the network, does:

ping 192.168.1.100

access the correct box and work?

 

If so, all you need to do is to use a VirtualHost as you suspected.

 

<VirtualHost 192.168.1.100:80>

//insert code as Normal

</VirtualHost>

 

Rgds,

Steve

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.