IIS와 아파치 동시 사용

WindowsServer2003-KB892777-SupportTools-x86-ENU.exe 다음의 링크로부터 해당 파일을 다운받는다.

http://www.microsoft.com/Downloads/details.aspx?familyid=6EC50B78-8BE1-4E81-B3BE-4E7AC4F0912D&displaylang=en


httpcfg set iplisten -i 실제IP

위의 명령에 의하여  IIS는 외부에게도 서비스를 제공할  수 있으며 아파티는 localhost(127.0.0.1)만 사용하게 된다

리스닝되는 목록을 보려면
httpcfg query iplisten

리스닝 목록 삭제하려면 httpcfg delete iplisten -i 000.000.000.000

--- 원문 ============

To add an IP address to the IP inclusion list

  1. Click Start, and then click Run.
  2. Type cmd, and then click OK to open a command prompt.
  3. Type the following, where xxx.xxx.x.x is the IP address you want to add:
    httpcfg set iplisten -i xxx.xxx.x.x
    When this succeeds, Httpcfg returns the following:
    HttpSetServiceConfiguration completed with 0

    To view additional status codes, see the Httpcfg help.
  4. After the IP address is added, use the following command to list it:
    httpcfg query iplisten
    Httpcfg returns the following:
    IP :xxx.xxx.x.x
  5. From the command prompt, stop the HTTP service and its dependent services. To do this, type the following string at the command prompt:
    net stop http /y
  6. From the command prompt, restart the HTTP service and it dependent services. To do this, type the following string at the command prompt:
    net start w3svc
    Note When you start w3svc, all services that were stopped when HTTP was stopped will start.