태터데스크 관리자

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

태터데스크 메시지

저장하였습니다.

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
    이전 댓글 더보기
  1. Discount Louis Vuitton 2012.06.19 10:08 신고 댓글주소 | 수정/삭제 | 댓글

    Since its inception in 1821, the <a href="http://www.discount-louisvuitton.com"><b>Discount Louis Vuitton</b></a> bag financial atmosphere was in before some of the best designerVente Secret –

  2. cheap gucci belts 2012.07.12 16:58 신고 댓글주소 | 수정/삭제 | 댓글

    I am very thankful to you for posting such stuff.This really help me lot.

  3. cheap ray bans 2012.07.12 16:59 신고 댓글주소 | 수정/삭제 | 댓글

    I am very thankful to you for posting such stuff.This really help me lot.

  4. Jordan Retro 7 2012.07.17 10:46 신고 댓글주소 | 수정/삭제 | 댓글

    These nike Jordan shoes are definitely athletic-inspired but they can easily be worn outdoors for any occasion as well. You can wear the retro 2 to your college party or for a game of beach volleyball. You will never feel out of place or uncomfortable with the Air Jordan retro 2. http://www.jordanretro7online.com/

  5. Jordan Retro 7 2012.07.17 10:47 신고 댓글주소 | 수정/삭제 | 댓글

    These nike Jordan shoes are definitely athletic-inspired but they can easily be worn outdoors for any occasion as well. You can wear the retro 2 to your college party or for a game of beach volleyball. You will never feel out of place or uncomfortable with the Air Jordan retro 2. http://www.jordanretro7online.com/

  6. jordan 4 fire red 2012 2012.07.27 18:11 신고 댓글주소 | 수정/삭제 | 댓글

    http://www.jordan4fireredonline.com. Acquire a breath. Make your progressive business consider a breath. Take pleasure in the demanding discussion with the customer. http://www.jordan4fireredonline.com You can't make it happen yesterday, nevertheless the subsequent day may well be far more than definitely worth the wait around. http://www.jordan4fireredonline.com.

  7. coach outlet 2012.08.11 11:04 신고 댓글주소 | 수정/삭제 | 댓글

    --!@zhanping For inexpensive cosmetic containers and equipment, visit your coach outlet or dollar store.

  8. Louis Vuitton 2012.08.20 11:27 신고 댓글주소 | 수정/삭제 | 댓글

    A Louis Vuitton baggage is available out of every personal search and also while in the malls during very selling prices. The majority of products and solutions come in canvas indicating they can be waterproof so therefore great while in the bitter the seasons.

  9. chanel j12 replica 2012.08.22 11:29 신고 댓글주소 | 수정/삭제 | 댓글

    Within the summer time, the creator have manufactured the tasteful sunglasses, that are fitted with become the necessary fashionable accessories.
    http://www.oakley-glasses-sun.com/

  10. Cheap Air Jordans 2012.08.24 18:18 신고 댓글주소 | 수정/삭제 | 댓글

    Cheap Air Jordans is known as the good brand . dcyh10120824

  11. 2012.08.26 10:45 댓글주소 | 수정/삭제 | 댓글

    비밀댓글입니다

  12. Louis Vuitton Outlet 2012.08.31 12:27 신고 댓글주소 | 수정/삭제 | 댓글

    --!@jiansuAnd then there are points of different brands, the bags of various brands designer. --!@jiansu

  13. air yeezy 2 for sale 2012.09.08 10:57 신고 댓글주소 | 수정/삭제 | 댓글

    We know that Nike sneakers are produced with excellent technology. we sell high quality and fashion style air yeezy 2 shoes on our online store,get it now,don’t miss.
    http://airyeezy2forcheap.org/ air yeezy for sale
    http://airyeezy2forcheap.org/ air yeezy 2 for sale
    http://airyeezy2forcheap.org/ air yeezy 2 price
    http://www.airyeezy2on.com/ Air Yeezy 2 For Sale
    http://www.airyeezy2on.com/ Air Yeezy 2 Zen Grey
    http://www.airyeezy2on.com/ Air Yeezy 2
    http://www.nikeairyeezy2forsale.com/ Nike Air Yeezy 2

  14. cheap designer handbags 2012.09.19 11:29 신고 댓글주소 | 수정/삭제 | 댓글

    cheap designer handbags

  15. JanuarySome day, when my three sons grow up, I will make clear t 2012.09.22 17:55 신고 댓글주소 | 수정/삭제 | 댓글

    JanuarySome day, when my three sons grow up, I will make clear to them that this league isn't for everyone3 million or he could decide to sit out some or all of the season After two arrests this offseason, he's trying to make amends 2011 first-round pick Corey Liuget? Yeah, but picking a 2011 first-rounder seems too obvious He has battled with people in control of his money Come next week," Schaub said, "I expect all them to be out there
    [url=http://cheap-nfl-jerseys.nfltrue.com/]Cheap nfl jerseys[/url]
    [url=http://nfl-jerseys-china.nfltrue.com/]china nfl jerseys[/url]
    [url=http://cheap-nfl-jerseys.i-china-factory.com/]nfl jersey wholesale[/url]
    [url=http://nfl-jerseys-china.i-china-factory.com/]wholesale nfl jerseys[/url]
    [url=http://cheap-nfl-jerseys.nfltrue.com/]Cheap nfl jerseys from china[/url]
    [url=http://nfl-jerseys-china.nfltrue.com/]Cheap nfl jerseys from china[/url]
    [url=http://cheap-nfl-jerseys.i-china-factory.com/]nfl jerseys cheap[/url]
    [url=http://nfl-jerseys-china.i-china-factory.com/]china nfl jerseys[/url]
    [url=http://cheap-nfl-jerseys.nfltrue.com/]nfl cheap jerseys[/url]
    [url=http://nfl-jerseys-china.nfltrue.com/]nfl jerseys from china[/url]
    [url=http://cheap-nfl-jerseys.i-china-factory.com/]wholesale nfl jerseys[/url]
    [url=http://nfl-jerseys-china.i-china-factory.com/]chinese nfl jerseys[/url]
    [url=http://cheap-nfl-jerseys.nfltrue.com/]nfl jerseys cheap[/url]
    [url=http://nfl-jerseys-china.nfltrue.com/]nfl jerseys china[/url]
    [url=http://cheap-nfl-jerseys.i-china-factory.com/]nfl cheap jersey[/url]
    [url=http://nfl-jerseys-china.i-china-factory.com/]nfl jerseys from china[/url]
    [url=http://cheap-nfl-jerseys.nfltrue.com/]nfl jersey wholesale[/url]
    [url=http://cheap-nfl-jerseys.nfltrue.com/]nfl cheap jersey[/url]
    [url=http://nfl-jerseys-china.nfltrue.com/]chinese nfl jerseys[/url]
    [url=http://nfl-jerseys-china.i-china-factory.com/]nfl jerseys china[/url]
    [url=http://cheap-nfl-jerseys.i-china-factory.com/]nfl cheap jerseys[/url]
    [url=http://cheap-nfl-jerseys.i-china-factory.com/]Cheap nfl jerseys[/url]

  16. JanuarySome day, when my three sons grow up, I will make clear t 2012.09.22 17:55 신고 댓글주소 | 수정/삭제 | 댓글

    numbers of all 32 teams over the weekend, the Cowboys have $7 The basic design of the draft is that each team is given a position in the drafting order in reverse order relative its record in the previous yearthe last place gets positioned first The following weekend they were defeated 20-13 by the Baltimore Ravens, in Baltimore, Cheap nfl jerseys china nfl jerseys nfl jersey wholesale wholesale nfl jerseys Cheap nfl jerseys from china Cheap nfl jerseys from china nfl jerseys cheap china nfl jerseys nfl cheap jerseys nfl jerseys from china wholesale nfl jerseys chinese nfl jerseys nfl jerseys cheap nfl jerseys china nfl cheap jersey nfl jerseys from china nfl jersey wholesale nfl cheap jersey chinese nfl jerseys nfl jerseys china nfl cheap jerseys Cheap nfl jerseys

  17. Cheap Foamposites 2012.11.05 11:58 신고 댓글주소 | 수정/삭제 | 댓글

    Nike Cheap Foamposites might be the world's very best makers and companies regarding sports put on from visit bottom. It will become trusted name inside providing sporting solutions everyone disciplines. From angling gear to soccer, athletics and pretty much all other sports, Nike Foamposite known for a supplement to gratify a person's every wearing have to have. http://www.foampositescheapnike.com

  18. www.abercrombiefrancemagasin.eu 2012.11.06 16:14 신고 댓글주소 | 수정/삭제 | 댓글

    This is just the information I am finding everywhere.Me and my friend were arguing about an issue similar to this! Now I know that I was right.Thanks for the information you post. I just subscribe your blog. This is a nice blog.

  19. Abercrombie 2012.11.08 11:42 신고 댓글주소 | 수정/삭제 | 댓글

    La parte di progettazione di questo sito è molto bello e proprio per questo, l'interfaccia di questo blog diventa facile da usare. Ma c'è un problema che è che non c'è nessun articolo particolare o una descrizione sul posto il blog è fornito.

  20. New Troy Polamalu Jersey 2012.11.12 11:00 신고 댓글주소 | 수정/삭제 | 댓글

    http://cheapjerseysw.weebly.com/ new NY Giants Jersey
    http://patriotsnikejersey.weebly.com/ New Patriots Jersey
    http://nikeaaronrodgersjersey.weebly.com/ new aaron rodgers jersey
    http://claymatthewsnikejersey.weebly.com/ cheap clay matthews new jersey
    http://cheapcowboysnikejerseys.weebly.com/ ew dallas cowboys jerseys
    http://chicagobearsjersey.weebly.com/ New Chicago Bears Jersey
    http://drewbreesnewjersey.weebly.com/ drew brees nike jersey
    http://timtebownikejersey.weebly.com/ New Tim Tebow Jersey
    http://tombradynikejersey.weebly.com/ New Tom Brady Jersey
    http://troypolamalunikejersey.weebly.com/ New Troy Polamalu Jersey

Write a comment