reikje Posted July 18, 2007 Share Posted July 18, 2007 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 Quote Link to comment Share on other sites More sharing options...
steviewdr Posted July 18, 2007 Share Posted July 18, 2007 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.