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 지시자명"과 같이
사용하시면 됩니다.