Apache and IIS side by side (both listening to port 80) on windows2003

前端 未结 9 1914
鱼传尺愫
鱼传尺愫 2020-12-04 09:15

What are some good ways to do this? Is it even possible to do cleanly?

Ideally I\'d like to use packet headers to decide which server should handle requests. Howeve

9条回答
  •  执念已碎
    2020-12-04 09:51

    I found this post which suggested to have two separate IP addresses so that both could listen on port 80.

    There was a caveat that you had to make a change in IIS because of socket pooling. Here are the instructions based on the link above:

    1. Extract the httpcfg.exe utility from the support tools area on the Win2003 CD.
    2. Stop all IIS services: net stop http /y
    3. Have IIS listen only on the IP address I'd designated for IIS: httpcfg set iplisten -i 192.168.1.253
    4. Make sure: httpcfg query iplisten (The IPs listed are the only IP addresses that IIS will be listening on and no other.)
    5. Restart IIS Services: net start w3svc
    6. Start the Apache service

提交回复
热议问题