디렉토리의 내용을 표시하지

Posted by : admin at 11 월 5th, 2008

브라우저의 주소 표시줄에 디렉토리 이름까지 입력하면 index.html / index.php / index.cgi 등이 없으면 파일 목록을 볼 수있을 것이다을 막는 방법.
Google 등에서 index of 검색을하면, 어떤 종류의 것인지 고객 발견하게 될 것입니다.
httpd.conf 수정합니다.
httpd.conf 다음 위치에있습니다.
 /usr/local/apache2/conf 
또는
 /usr/local/etc/apache2 

httpd.conf
 Options  Indexes  FollowSymLinks 
Indexes 삭제
 Options FollowSymLinks 

수정이 끝나는 경우 Apache 다시 시작합니다.
 # /usr/local/apache2/bin/apachectl restart 
apachectl 버전 및 설치 방법을 통해 경로가 다르기 때문에 발견없는 경우에는 다음과 같은 방법으로 검사합니다.
 # which apachectl 

Filed under Web 서버 (Apache2) |

Leave a Comment