Not Running apache and IIS in one Machine.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ugesh
    New Member
    • Oct 2013
    • 3

    Not Running apache and IIS in one Machine.

    I'm running Apache port 80 on windows 2003 server, Now for some reason I want to iis6 port 8080 on the same machine,

    if i enter website like www.dubai.com its opening (from apache fine )

    if i load my html in iis use port 8080

    www.qatar.com:8 080 then only opening

    just try www.qatar.com getting apache error Not Found

    The requested URL / was not found on this server.

    Apache/2.2.22 (Win64) PHP/5.3.10 Server at www.qatar.com Port 80

    ( apache i am using php design iis i am using asp.net )
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Windows Server 2003 uses IIS 6.

    Here are the instructions for setting the port that website listens on:
    1. Open Internet Service Manager or Internet Information Services (IIS) Manager.
    2. If necessary, expand the Web server that you want, and then expand Web Sites.
    3. Right-click the Web site that you want to change.
    4. Click Properties.
    5. Click the Web Site tab.
    6. Change the TCP Port Number in the TCP Port edit box (or click Advanced for multiple Port settings).
    7. Click OK to save the changes.


    The instructions I posted were from this MSDN article on How to change the TCP port for IIS services. This article contains information on how to do this for other IIS versions as well.

    -Frinny

    Comment

    • ugesh
      New Member
      • Oct 2013
      • 3

      #3
      Sir yes but i am already using different port apache and iis is 8080 apache 80

      if i change iis 80 then iis become disabled
      when i try a domain whih i loaded in iis like www.dubai.com its going for first priority to apache that is the issue

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        You cannot have 2 services listening on the same port.

        Whether that be two different web servers like IIS and Apache, or even a web server and a DVR application.

        One service will handle the event and the other will not.

        In my experience, if you really do not want to have to provide a port value, you should run the web servers on different machines.

        You could consider trying port forwarding.

        Configure IIS to listen for all of the requests and if one is supposed to be handled by Apache, try forwarding on to Apache (which is listening on a different port).


        Or you could do this a a router level....if a request comes in on port 80 that should be on another port, configure your router to forward it to the appropriate port.

        -Frinny
        Last edited by Frinavale; Oct 25 '13, 07:56 PM.

        Comment

        • ugesh
          New Member
          • Oct 2013
          • 3

          #5
          current status i can open web site from iis

          i need to enter port also with web address like " www.dubai.com:8080 "

          there have no other simple solution in window to do open its direct www.dubai.com

          Comment

          • Frinavale
            Recognized Expert Expert
            • Oct 2006
            • 9749

            #6
            Try researching port redirection :)

            I'm not very good with networking stuff but I have redirect websites from http://myDomain.com to https://myDomain.com in the past using IIS.

            Not sure how hard it would be to configure Apache to send a redirect to the browser and automatically redirect the user to port 8080....

            Comment

            Working...