apache2 설정  -  리눅스  2015. 7. 2. 22:01

공유하기

<FilesMatch \.php$>
    SetHandler application/x-httpd-php
</FilesMatch>

<FilesMatch "\.ph(p[2-6]?|tml)$">
    SetHandler application/x-httpd-php
</FilesMatch>

<FilesMatch "\.phps$">
    SetHandler application/x-httpd-php-source
</FilesMatch>


RewriteEngine On
RewriteRule (.*\.php)s$ $1 [H=application/x-httpd-php-source]

DirectoryIndex index.html index.htm index.php index.php3 index.php4 index.php5 index.phtml index.cgi index.jsp

<Directory "/usr/local/apache/cgi-bin">
    AllowOverride All
    Options +ExecCGI
    Require all granted
    Order allow,deny
    Allow from all
</Directory>

'리눅스' 카테고리의 다른 글

Bitstream-Vera-Sans-Mono  (0) 2015.07.08
httpd.conf  (0) 2015.07.02
my.cnf  (0) 2015.07.02
google bot 차단  (0) 2015.07.02
mod_deflate  (0) 2015.07.02

Share to Facebook Share to Twitter Share to MySpace 다음구독 한rss구독