Apache,Tomcat mod_jk연동시 linsting 보이는 파일 처리

2009. 12. 8. 11:32·Programing
반응형

http://ApacheIP:80/web-inf/web.xml 파일 안보이기


1) 웹 서버 혹은 웹 어플리케이션 서버에서 디렉토리 인덱싱 기능을 비활성화 시킨다.

        [tomcat의 예제]

        <!--web.xml-->
           <init-param>
                <param-name>listings</param-name>
                <param-value>false</param-value>
           </init-param>

        [apache의 예제]

        <!--httpd.conf-->

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive Off

#2009.12.08 Namha
Options IncludesNoExec FollowSymLinks
#Options FollowSymLinks MultiViews
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.0/mod/core.html#options
# for more information.
#
#    Options FollowSymLinks

Alias /icons/ "D:/Amail/app/Apache2/icons/"

<Directory "D:/Amail/app/Apache2/icons">
    Options MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<Directory "D:/Amail/ems52/market/ems/WEB-INF">
    Options MultiViews
    AllowOverride None
    Order allow,deny
    Deny from all
    Allow from 88.10.1
</Directory>

<Directory "D:/Amail/app/Apache2/manual">
#2009.12.08 Namha
#   Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all

    <Files *.html>
        SetHandler type-map
    </Files>

    SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
    RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
</Directory>

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
AddHandler cgi-script .cgi

<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>

     2) 웹 소스가 위치한 웹 디렉토리에서 임시/백업 파일 및 설치 파일의 존재여부를 조사하여 이를 삭제한다.

     3) 웹 서버나 웹 어플리케이션 서버 설치시 자동 생성되는 파일 중 외부에 정보를 노출 할 수 있는 메뉴얼 파일, 샘플등을 조사하여 이를 삭제한다.

반응형

'Programing' 카테고리의 다른 글

java FileOutputStream 특정폴더 떨구기  (1) 2010.04.12
Tomcat NT버전 JAVA_PATH강제로 잡기  (0) 2010.01.26
HTML index 포워딩  (1) 2009.11.28
주민번호 OR 사업자등록번호 짤라서 ***붙이기  (1) 2009.11.11
Apache2.2 + Tomcat5.5 가상호스트 분리  (0) 2009.09.02
'Programing' 카테고리의 다른 글
  • java FileOutputStream 특정폴더 떨구기
  • Tomcat NT버전 JAVA_PATH강제로 잡기
  • HTML index 포워딩
  • 주민번호 OR 사업자등록번호 짤라서 ***붙이기
애플자라
애플자라
    반응형
  • 애플자라
    애플자라
    애플자라
  • 전체
    오늘
    어제
    • 분류 전체보기 (655)
      • Linux (93)
      • Programing (92)
      • Flex, Laszlo (15)
      • Database (168)
      • Network (15)
      • Data (14)
      • Tips (119)
      • 여행★ (1)
      • Board (115)
      • 맛집탐방 (3)
      • 아이원츄 (12)
  • 블로그 메뉴

    • 홈
    • 태그
    • 미디어로그
    • 위치로그
    • 방명록
  • 링크

    • Love&Smile
    • Husk's repository
    • StartUp
    • DSDSTUDIO Experimentals
    • 신선
    • DEV.SEULKI.KR[이슬기]
    • Live Bit Block
  • 공지사항

  • 인기 글

  • 태그

    테이블
    MySQL
    파일
    select
    리눅스
    tomcat
    IP
    user
    데이터
    DB
    Windows
    Linux
    DATABASE
    Toad
    Oracle
    mssql
    table
    sql
    오라클
    eclipse
    윈도우
    자동차
    apache
    설정
    server
    Shell
    java
    delete
    백업
    서버
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
애플자라
Apache,Tomcat mod_jk연동시 linsting 보이는 파일 처리
상단으로

티스토리툴바