Run IIS and Apache at the same time on same machine

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ghjk
    Contributor
    • Jan 2008
    • 250

    Run IIS and Apache at the same time on same machine

    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?
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Yes can run on the same machine. Just make sure they are listening on different ports.

    Comment

    • vssvijay
      New Member
      • Aug 2008
      • 1

      #3
      how do i make port? i don't know plz tell me

      Comment

      • docdiesel
        Recognized Expert Contributor
        • Aug 2007
        • 297

        #4
        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:

        Code:
        ProxyPass        /someapp/  http://localhost:6080/someapp/
        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

        Comment

        • r035198x
          MVP
          • Sep 2006
          • 13225

          #5
          ... 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.

          Comment

          Working...