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,131
14년 전 조회 1,740
14년 전 조회 787
14년 전 조회 562
14년 전 조회 834
14년 전 조회 1,286
14년 전 조회 1,554
14년 전 조회 912
14년 전 조회 892
14년 전 조회 3,129
14년 전 조회 1,061
14년 전 조회 2,814
14년 전 조회 1,022
14년 전 조회 879
14년 전 조회 752
14년 전 조회 2,641
14년 전 조회 754
14년 전 조회 1,089
14년 전 조회 1,852
14년 전 조회 2,266
14년 전 조회 2,560
14년 전 조회 1,325
14년 전 조회 1,451
14년 전 조회 776
14년 전 조회 1,112