J

data 폴더에 있는 PHP실행 방지

httpd.conf 아래에 이렇게 입력합니다.


<DirectoryMatch "^/.*/data">
AddType application/x-httpd-php3-source .phps .php .ph .php3 .cgi .sh .pl .html .htm .shtml .vbs .ins .php4 .bak .inc
AddType application/x-httpd-php-source .phps .php .ph .php3 .cgi .sh .pl .html .htm .shtml .vbs .ins .php4 .bak .inc
<Files ~ ".*\.ph$">
Order allow,deny
Deny from all
</Files>
</DirectoryMatch>

저장후 아파치 재시작!<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:30:25 Apache에서 이동 됨]</div>
|

댓글 2개

php_value engine off
vhost 보다는 위에 저거 하나 입력 해두심 됩니다.
댓글을 작성하시려면 로그인이 필요합니다.

팁게시판

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
14년 전 조회 1,127
14년 전 조회 1,738
14년 전 조회 782
14년 전 조회 558
14년 전 조회 832
14년 전 조회 1,281
14년 전 조회 1,551
14년 전 조회 910
14년 전 조회 888
14년 전 조회 3,126
14년 전 조회 1,058
14년 전 조회 2,810
14년 전 조회 1,020
14년 전 조회 876
14년 전 조회 749
14년 전 조회 2,638
14년 전 조회 751
14년 전 조회 1,086
14년 전 조회 1,849
14년 전 조회 2,263
14년 전 조회 2,557
14년 전 조회 1,322
14년 전 조회 1,448
14년 전 조회 773
14년 전 조회 1,109