Connecting Tech Pros Worldwide Help | Site Map

Run IIS and Apache at the same time on same machine

Familiar Sight
 
Join Date: Jan 2008
Posts: 198
#1: Aug 4 '08
I developed web application using php and I'm using apache. There is a asp.net application to read data and store them into the data base. I want to run both application in the same time.Can apache and iis on the same machine at same time?. If so how can i do that. Could anyone help me?
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#2: Aug 6 '08

re: Run IIS and Apache at the same time on same machine


Yes can run on the same machine. Just make sure they are listening on different ports.
Newbie
 
Join Date: Aug 2008
Posts: 1
#3: Aug 11 '08

re: Run IIS and Apache at the same time on same machine


how do i make port? i don't know plz tell me
docdiesel's Avatar
Moderator
 
Join Date: Aug 2007
Location: Munich
Posts: 289
#4: Aug 11 '08

re: Run IIS and Apache at the same time on same machine


Hi,

the easiest (and more secure) way is to change the port of the iis. Right-click on the virtual host(s) in the management console. As far as I remember you can change the port on the "website" tab to, let's say, 6080.

Btw., you may even use the Apache as filter for the iis, e.g. by configuring the proxy module, so that your iis application is hidden. The following takes requests for http://www.yourserver.tld/someapp/* and forwards them to the iis aboard:

Expand|Select|Wrap|Line Numbers
  1. ProxyPass        /someapp/  http://localhost:6080/someapp/
  2. ProxyPassReverse /someapp/  http://localhost:6080/someapp/
This adds some more security to your iis, for that the standard threats (code red etc.) stay out because the Apache blocks them. (Especially if there's a firewall in front which makes port 6080 invisible to the outside world.)

Regards,

Bernd
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#5: Aug 12 '08

re: Run IIS and Apache at the same time on same machine


... and to change Apache's listening port just look for the Listen directive in httpd.conf and change the port there to the one you want.
Reply