Server
아파치에서 디렉토리 목록출력 막기
EcusE
2001. 8. 8. 17:10
/etc/httpd/conf/httpd.conf 파일을 열면 디렉토리 옵션중에 아래와 같은 옵션이 있습니다.
여기서 Indexes옵션을 제거하고 아파치 데몬을 재시작하면 목록출력을 막을수 있습니다 .
만약 httpd.conf에 나열된 index.htm ,index.html등의 파일이 없다면 페이지를 열때 다음과 같은 메세지를 보여줍니다.
Forbidden You don't have permission to access /test/ on this server.
Free4u Webserver/0.02 Server at free4u.dnip.net Port 80
- <directory "...">
- AllowOverride None
- Options Indexes MultiView ExecCGI
- </directory>
여기서 Indexes옵션을 제거하고 아파치 데몬을 재시작하면 목록출력을 막을수 있습니다 .
만약 httpd.conf에 나열된 index.htm ,index.html등의 파일이 없다면 페이지를 열때 다음과 같은 메세지를 보여줍니다.
Forbidden You don't have permission to access /test/ on this server.
Free4u Webserver/0.02 Server at free4u.dnip.net Port 80