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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS and Apache - Together?

Status
Not open for further replies.

Sirkent

Technical User
Joined
Apr 28, 2004
Messages
5
Location
GB
Our current server setup with IIS hosts a domain and several subdomains. However, PHP has been needed on there and getting it to run properly on IIS has proven challenging, to say the least. Now it is partially running, but I've found out about a limitation that has crushed all hope of a peaceful life.

So I was left wondering - Is it possible to host one, or maybe two of those subdomains in apache?

My intitial thought was - Wouldn't there be a conflict? Wouldn't apache have to serve on the same IP and port as IIS?

Could anyone enlighten me please? Are there any workarounds? Thanks in advance.
 
Apache can't serve on the same IP address and port as IIS. At least one of those would have to be different.
 
you could use apache on another port different than 80, may be 8080?

Cheers.
 
BTW, oracle application server (IAS) use apache as web server, and by default they use ports 7777, 7778 and/or 7779. for webcache they use 4000 or 4003.

this info is only to show you that you can use those ports.
 
Chacalinc, I don't understand what you're suggesting?
 
what i'm saying is you could have apache and IIS running in the same host (never tryed though), but you can NOT use the same port 80 with both product. IIS could be using port 80 and Apache port 8080 or 7777 or another (it's up to you).

I told you about IAS just to note that 3th party software that use apache sets the default port to others than 80.

Cheers.
 
oh! in addition, IAS start up several instances of apache, that means several apache running independentantly. So this can be the same case running Apache and IIS.
 

You could have apache run on port 80 and proxy connections to IIS using proxy_rewrite
 
Why run IIS at all ? I guess you have ASP pages - but why not use the ASP-plugin for apache, which may solve all your problems :

I've never used it personally, but it might be great ...
 
The ASP plugin is ok for basic ASP, but when you used advanced scripting (and in our case asp.NET), it simply isn't acceptable.

ericbrunson - So I assume then that Apache would host the domain and subdomains and forward the relevant subdomains, etc to IIS?
 
On that note, wouldn't there be a way to do that the other way around, so that IIS forwards on the information to Apache? That would certainly be the best solution here, but the other is acceptable.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top