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 Link to comment https://forums.phpfreaks.com/topic/60519-problem-binding-to-internal-ip/ 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 Link to comment https://forums.phpfreaks.com/topic/60519-problem-binding-to-internal-ip/#findComment-301128 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.