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,137
14년 전 조회 1,746
14년 전 조회 792
14년 전 조회 565
14년 전 조회 842
14년 전 조회 1,293
14년 전 조회 1,562
14년 전 조회 920
14년 전 조회 896
14년 전 조회 3,136
14년 전 조회 1,069
14년 전 조회 2,819
14년 전 조회 1,033
14년 전 조회 887
14년 전 조회 758
14년 전 조회 2,647
14년 전 조회 761
14년 전 조회 1,096
14년 전 조회 1,858
14년 전 조회 2,274
14년 전 조회 2,567
14년 전 조회 1,331
14년 전 조회 1,459
14년 전 조회 784
14년 전 조회 1,122