반응형
반응형
반응형


웹 서버 혹은 웹 어플리케이션 서버에서 디렉토리 인덱싱 기능을 비활성 방법.

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

[apache]
<!--httpd.conf-->
<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>

반응형

'Server > Apache' 카테고리의 다른 글

ssl 설정.  (2) 2015.08.16
[설치] DocumentRoot must be a directory  (0) 2015.06.16
에러 : libexpat.so.0: 열기 실패  (0) 2014.03.24
Apache MPM  (0) 2014.03.24
아파치 패치 방법  (0) 2009.02.11
반응형


## apache 설치

$ wget ftp.daum.net/apache//httpd/httpd-2.2.19.tar.gz
./configure --prefix=/usr/local/httpd --enable-so --enable-authn-dbm --enable-auth-digest --enable-ssl --enable-rewrite --with-ssl

 - apr-util 이 이미 설치 되어 있을 때 옵션 추가 : --with-included-apr
 - mod_rewrite.so 없을 때 : /usr/local/httpd/bin/apxs -aic /usr/local/src/httpd-2.2.19/modules/mappers/mod_rewrite.c


$ make && make install


# 권한 및 php 설정.
$ vi /usr/local/httpd/conf/httpd.conf
 - 65, 66 라인 수정.
 - User nobody
 - Group nobody

 - 167 라인.
 - DirectoryIndex index.html index.php

 - 309 라인 추가.
 - AddType application/x-httpd-php .php .php3
 - AddType application/x-httpd-php-source .phps

반응형

'OS > Linux' 카테고리의 다른 글

설치형 웹하드 : ajaxplorer  (0) 2011.06.15
[APM] 3. php 설치.  (2) 2011.06.15
[APM] 1. mysql 설치  (0) 2011.06.15
awk 기본  (0) 2011.05.20
date 명령어  (0) 2011.05.20

+ Recent posts