강좌
클라우드/리눅스에 관한 강좌입니다.
리눅스 분류

httpd로 아파치웹서버 설정지시자 확인하기

작성자 정보

  • 구돌 작성
  • 작성일

컨텐츠 정보

본문

httpd로 아파치웹서버 설정지시자 확인하기

 

httpd에서 -L옵션은 현재 아파치의 아파치 설정지시자(configuration directives)를 확인 할 수 있습니다.  

 

 

  아파치에는 많은 설정지시자가 있으며 아래 결과는 그 일부분입니다.  

 

 

 

 

[root@host3 bin]# ./httpd -L
<Directory (http_core.c)
        Container for directives affecting resources located in the specified directories
        Allowed in *.conf only outside <Directory>, <Files> or <Location>
</Directory> (http_core.c)
        Marks end of <Directory>
        Allowed in *.conf only inside <Directory>, <Files> or <Location>
<Location (http_core.c)
        Container for directives affecting resources accessed through the specified URL paths
        Allowed in *.conf only outside <Directory>, <Files> or <Location>
</Location> (http_core.c)
        Marks end of <Location>
        Allowed in *.conf only inside <Directory>, <Files> or <Location>
<VirtualHost (http_core.c)
        Container to map directives to a particular virtual host, takes one or more host addresses
        Allowed in *.conf only outside <Directory>, <Files> or <Location>
</VirtualHost> (http_core.c)
        Marks end of <VirtualHost>
        Allowed in *.conf only outside <Directory>, <Files> or <Location>
<Files (http_core.c)
        Container for directives affecting files matching specified patterns
        Allowed in *.conf anywhere and in .htaccess
        when AllowOverride isn't None
</Files> (http_core.c)

 

만약 특정 지시자만을 확인코자 한다면 "./httpd -L | grep 지시자명"과 같이 사용하시면 됩니다.  

 

 

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,042 명
  • 현재 강좌수 :  35,846 개
  • 현재 접속자 :  123 명