AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php index.phtml
(주의) php_module이 아니라 php7_module로 설정해야 함. 이는 소스 빌드 시 sapi/apache2handler/mod_php7.c를 mod_php.c로 대체했기 때문에 php7_module로 사용하여야 함.
# disable TRACE (CVE-2009-2823)
TraceEnable Off
<IfModule mod_dir.c>
# This protects rpm backup files from beeing served, these files could
# contain sensible information.
<FilesMatch "\.(rpmorig|rpmsave)$">
Require all denied
</FilesMatch>
# This protects ssi and php files from beeing served if the module is not
# installed, it prevents presumptive source code theft.
<IfModule !mod_include.c>
<FilesMatch "\.(shtml)$">
ErrorDocument 403 "<h1>403 Forbidden: Execute Access Forbidden</h1>\
<p>The server is currently not serving ssi scripts.</p><p>This \
could mean the server administrator is doing maintenance or has \
orphan ssi files laying around, please contact the server \
administrator or come back later. Thank you.</p>"
Require all denied
</FilesMatch>
</IfModule>
</IfModule>






☞ 2026.10.27 CVE-2026-115560 결함 일시적인 대응책
session.upload_progress.enabled = Off