본문 바로가기

Apache httpd server/Setup

Apache Download & Setup

Apache Web Server Download & Setup


현재 아파치 웹서버의 버전은 2.4 (2015-01-29 배포)가 최신버전이며 2.2, 2.0 버전이 사용되고 있다


Binary for Win 32

http://apache.org

http://httpd.apache.org/download.cgi

설치파일을 더블클릭하여 디폴트로 설정으로 설치하여 ApacheMonitor 에서 프로그램을 실행 및 정지할 수 있다


Binary for Win 64

현재 아파치 사이트에서 제공하는 링크를 통해 다른 사이트로 이동하여 Windows 64비트용 바이너리를 다운로드할 수 있다

 http://www.apachelounge.com/download/win64/


윈도우 64비트용은 다음 페이지에서 apachelounge 사이트로 이동할 수 있다

http://apache.mirror.cdnetworks.com//httpd/binaries/win32/

http://www.apachelounge.com/download/



설치법은 아래의 페이지를 참조하거나 Win64비트용 바이너리 배포용 압축파일을 압축해제하면 루트폴더에 설치안내 파일이 있다

http://httpd.apache.org/docs/current/platform/windows.html


설치안내 파일의 내용

Unzip the apache2 folder to c:/Apache2 (that is the ServerRoot in the config).

  Default folder for your your webpages is DocumentRoot "c:/Apache2/htdocs"


  When you unzip to an other location, change ServerRoot in the httpd.conf,

  and change in httpd.conf the Documenroot, Directories, ScriptAlias,

  also when you use the extra folder config file(s) change to your location there. 


Start apache in a DOS box:


>httpd.exe


Install as a service:


>httpd.exe -k install


ApacheMonitor: 아파치용 서비스 모니터 이므로 아파치를 서비스로 등록하지 않으면 아무것도 없음


Double click ApacheMonitor.exe, or put it in your Startup folder.


Apache2/bin/httpd.exe 더블클릭하면 아파치 실행됨


아파치 실행 테스트 : 웹브라우저에서 http://localhost<enter>를 입력하면 'It works' 출력됨


임의의 디렉토리를 웹서비스 루트로 설정하기

설정법 http://httpd.apache.org/docs/current/platform/windows.html


Docs 

http://httpd.apache.org/docs/2.2/


사용법 

http://httpd.apache.org/docs/2.2/platform/windows.html


ApacheMonitor.exe 사용법


서비스로 등록하여 ApacheMonitor 에서 Start/Stop 할 수 있다