Skip to main content
November 14, 2006
Question

Running Cf and database server on the same port

  • November 14, 2006
  • 3 replies
  • 438 views
Hi all

We have one machine here (quite a powerhorse) and I was thinking to run ColdFusion on it along with the Oracle database. Since some parts of our application depend on the Oracle Application Server we also install it. This is actually just a simple Apache server (Version 1.3.x). By default the Oracle server installs on port 7777.

Now, I am wondering if it is possible to run both IIS with CF or JRUN and Apache on port 80? We have many IP addresses available and thus could assign specific ip's to each server. Everything I tried so far, has not worked so I am wondering if that is even possible?

Thank you all for any ideas.
This topic has been closed for replies.

3 replies

Participating Frequently
November 14, 2006
You need to modify the Listen directive and BindAddress directive in Apache. I'm not sure if there's an overriding directive in IIS like that or not.

I know it will work with Apache and Tomcat (using Tomcat's built-in web server). I've never tried it with IIS. Maybe IIS is stupid and always binds all the IPs on the box. Either way, it sounds like you missed one of the configurations for Apache.

You should enable as much logging as you can. Apache might not be starting at all, as IIS might be grabbing all the IPs. You should look at the log output of IIS and Apache to see what's going on.
November 14, 2006
Ok, but that is what I did. I chose by each host within IIS to be bound to one IP and within Apache I bound it to the other IP (that setting was the ServerAdress or alike). Then I also changed the port and listen to 80.

When I hit the Apache server with the IP it tells me that there is no virtualhost with that address available, but I have a virtualhost container with the IP. If I leave Apache on port 7777 it works.
Participating Frequently
November 14, 2006
Yes, it's possible.

Just bind IIS to the IPs you want served by IIS, and bind Apache to the IPs you want served by Apache.