특정 디렉토리 php 실행 금지 설정

리눅스/APACHE|2015. 1. 16. 16:51
반응형

<DirectoryMatch "/home/sysdocu/public_html/bbs/upload">
    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>
 

반응형

댓글()