웹서버/Apache

[정보] 아파치 httpd 옵션

투칼론 2017. 7. 5. 22:00
반응형
아파치 httpd 에서 사용할 수 있는 옵션은  -h옵션을 통해 확인 가능하다.

$ ./httpd -h

Usage: ./httpd [-D name] [-d directory] [-f file]

               [-C "directive"] [-c "directive"]

               [-v] [-V] [-h] [-l] [-L] [-S] [-t] [-T] [-F]

Options:

  -D name          : define a name for use in <IfDefine name> directives

  -d directory     : specify an alternate initial ServerRoot

  -f file          : specify an alternate ServerConfigFile

  -C "directive"   : process directive before reading config files

  -c "directive"   : process directive after  reading config files

  -v               : show version number

  -V               : show compile settings

  -h               : list available command line options (this page)

  -l               : list compiled-in modules

  -L               : list available configuration directives

  -S               : show parsed settings (currently only vhost settings)

  -t               : run syntax check for config files (with docroot check)

  -T               : run syntax check for config files (without docroot check)

  -F               : run main process in foreground, for process supervisors 


각 옵션의 의미는 아래와 같다.

 -D name          : <IfDefine name> 지시자에서 사용되는 이름을 정의함.

  -d directory     : 아파치실행 시 아파치의 Root 디렉터리.

  -f file          : 아파치 설정파일(httpd.conf) 디렉터리 및 파일명.

  -C "directive"   : 아파치 설정파일을 읽기 전의 process directive

  -c "directive"   : 아파치 설정파일을 읽은 후의 process directive

  -v               : 아파치의 버전 출력.

  -V               : 컴파일시 사용했던 다양한 옵션 출력.

  -h               : httpd 실행시 사용할 있는 옵션들의 도움말을 보여줌.

  -l               : 컴파일시 사용했던 모듈 목록 출력.

  -L               : 설정가능한 지시자를 보여줌.

  -S               : 설정되어있는 가상호스트를 보여줌.

  -t               : 설정파일(httpd.conf)파일의 문법 점검.

  -T               :  DocumentRoot 체크 제외하고 설정파일의 문법 맞는지 체크.

  -F              : 확인을 위해 포그라운드로 메인 프로세스 실행함.