웹 서버 혹은 웹 어플리케이션 서버에서 디렉토리 인덱싱 기능을 비활성 방법.
[tomcat]
<!--web.xml-->
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
[apache]
<!--httpd.conf-->
<Directory "/usr/local/apache/htdocs">
#
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
수전전 Options Indexes FollowSymLinks MultiViews
수정후 Options FollowSymLinks MultiViews
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
</Directory>
'Server > Apache' 카테고리의 다른 글
ssl 설정. (2) | 2015.08.16 |
---|---|
[설치] DocumentRoot must be a directory (0) | 2015.06.16 |
에러 : libexpat.so.0: 열기 실패 (0) | 2014.03.24 |
Apache MPM (0) | 2014.03.24 |
아파치 패치 방법 (0) | 2009.02.11 |