태터데스크 관리자

도움말
닫기
적용하기   첫페이지 만들기

태터데스크 메시지

저장하였습니다.

Apache 서버 파일 리스트 숨기기


directory_listing

웹사이트 방문자들이 파일이나 이미지를 다운로드할때 보여지는 주소, 예를 들어 이미지 주소가
http://www.guitina.com/wp-content/uploads/blockberry.jpg 일때 http://www.guitina.com/wp-content/uploads/ 를 주소창에 입력하면
그 디렉토리 안에 있는 모든 파일들이 보여질때가 있다.

이런 노출을 방지하기 위해서

1. 각 디렉토리마다 index 파일을 넣기
2. 각 파일에 권한 설정을 해주기
3. Apache <Directory> 설정을 바꿔 숨기기

만약 Apache를 처음 실행하고 이 설정을 바꿔주지 않으면 모든 파일이 노출된다.

내 경우는 vhost를 자주 사용해서 사이트 모든 파일 목록을 보이지 않게 설정하는데 3번의 경우를 자주 이용한다.

1.< Directory />
2.Options Indexes FollowSymLinks
3.AllowOverride All
4.< / Diretory>

Apache Directory Options의 처음 값 중에 Indexes 지워주면

1.< Directory />
2.Options FollowSymLinks
3.AllowOverride All
4.< / Directory >

이 사이트내 Index 목록 볼 수 없게 된다.

이때 중요한 것은 혹시 사이트내 .htaccess 파일이 있고
.htaccess 파일에서 Options Indexes를 설정해준다면 위 코드에서 AllowOverride All 설정때문에
파일 리스트가 보인다.

특정 폴더만 이 옵션을 사용하려면

1.< Directory / www/ folder>
2.Options Indexes FollowSymLinks
3.AllowOverride All
4.< / Directory >

위 코드와 같이 폴더를 지정해주면 된다.

출처: http://www.guitina.com/category/it/apache/

top

Trackback Address :: http://www.ssial.com/trackback/294 관련글 쓰기

  1. Chanel Outlet 2011/09/17 21:29 댓글주소 | 수정/삭제 | 댓글

    vTime is what you make of it.

  2. Burberry Bags 2011/10/13 17:10 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog! From time to time students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. Thanks.

  3. Coach Outlet Online 2011/11/15 12:49 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog ! It's very good and thank you for sharing it !

  4. Coach Outlet Online 2011/11/15 12:49 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog ! It's very good and thank you for sharing it !

  5. abercrombie 2011/12/13 21:17 댓글주소 | 수정/삭제 | 댓글

    I think the author’s writing is very good, although the point of view a little bit different, but really is a good article, and the author can hope to have time to discuss some problems.

  6. abercrombie france 2011/12/13 21:17 댓글주소 | 수정/삭제 | 댓글

    This article is well written ,give a person very deep impression, I really have no language to describe it, I hope the authors make persistent efforts, come on!.

Write a comment


◀ PREV : [1] : ... [15] : [16] : [17] : [18] : [19] : [20] : [21] : [22] : [23] : ... [206] : NEXT ▶