apache 특정 폴더 php 실행금지
1 2 3 4 5 6 7 8 |
<DirectoryMatch "/free/home/xinet/html/data"> AddType application/x-httpd-php-source .html .htm .php .php3 .php4 .php5 .phtml .cgi .inc AddType application/x-httpd-php3-source .html .htm .php .php3 .php4 .php5 .phtml .cgi .inc <Files ~ ".*\.ph"> Order allow,deny Deny from all </Files> </DirectoryMatch> |
apache httpd.conf 파일에 넣으면 된다