1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Can Apache and IIS listen on same port?

Discussion in 'Apache' started by renewest, Apr 17, 2007.

  1. #1
    Hi, I have to get Apache running on a server where IIS is already running and listening on port 80. Can I have Apache responding only to <domain>/myapp and IIS to everything else?

    What are my options (if any?)


    thanks Rene
     
    renewest, Apr 17, 2007 IP
  2. weppos

    weppos Well-Known Member

    Messages:
    99
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    125
    #2
    No, they cannont listen on the same port at the same time.

    I suggest to change Apache default post via httpd.conf to a common secondary port, for example 8080.
    Changing default IIS port is not the best choice.

    The last option is to keep both Apache and IIS configured to listen port 80 but manually start each server as soon as you need it.
     
    weppos, Apr 17, 2007 IP
  3. Outstrip

    Outstrip Peon

    Messages:
    182
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Correct! they cant listen the same port. System will recognise the service who is started the port first. It may be apache or IIS.
     
    Outstrip, Apr 17, 2007 IP
  4. rootbinbash

    rootbinbash Peon

    Messages:
    2,198
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #4
    you can't even start apache(at same port) if IIs is running
     
    rootbinbash, Apr 17, 2007 IP
  5. Hillbilly1980

    Hillbilly1980 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can run apache on port 80 and using the proxy module you configure asp pages to be run by iis. When someone access a website with an asp page apache takes teh request and returns the images and other static content, it then submits the asp to iis which compiles and returns the results. From the client perspective everything runs on the same port.
     
    Hillbilly1980, Apr 17, 2007 IP