53 lines
1.0 KiB
ApacheConf
53 lines
1.0 KiB
ApacheConf
<IfModule mod_php4.c>
|
|
php_flag display_errors Off
|
|
</IfModule>
|
|
|
|
<IfModule mod_php5.c>
|
|
php_flag display_errors Off
|
|
</IfModule>
|
|
|
|
<IfModule mod_php7.c>
|
|
php_flag display_errors Off
|
|
</IfModule>
|
|
|
|
<IfModule mod_autoindex.c>
|
|
Options -Indexes
|
|
</IfModule>
|
|
|
|
<IfModule mod_headers.c>
|
|
Header unset X-Powered-By
|
|
Header unset X-Pingback
|
|
Header unset SERVER
|
|
</IfModule>
|
|
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine on
|
|
RewriteCond %{REQUEST_METHOD} ^(TRACE|DELETE|TRACK) [NC]
|
|
RewriteRule ^(.*)$ - [F,L]
|
|
</IfModule>
|
|
|
|
<FilesMatch "(config|config.old|config-sample|core|ui)\.php">
|
|
Order Deny,Allow
|
|
Deny from all
|
|
</FilesMatch>
|
|
|
|
<FilesMatch "\.log$">
|
|
Order Allow,Deny
|
|
Deny from all
|
|
</FilesMatch>
|
|
|
|
<FilesMatch "^\.ht">
|
|
Order Allow,Deny
|
|
Deny from all
|
|
</FilesMatch>
|
|
|
|
<IfModule mod_headers.c>
|
|
<FilesMatch "\.(js|css|woff|woff2|ttf|eot)$">
|
|
Header set Cache-Control "max-age=2592000, public"
|
|
</FilesMatch>
|
|
<FilesMatch "\\.(jpe?g|png|gif|swf|flv|pdf|svg)$">
|
|
Header set Cache-Control "max-age=604800, public"
|
|
</FilesMatch>
|
|
</IfModule>
|
|
|
|
ServerSignature Off |