27 lines
779 B
ApacheConf
Executable File
27 lines
779 B
ApacheConf
Executable File
Options -Indexes
|
|
php_flag display_errors off
|
|
AddDefaultCharset UTF-8
|
|
ErrorDocument 404 /404/
|
|
|
|
RewriteEngine On
|
|
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
|
|
RewriteRule ^(.*)$ http://%1:%{REQUEST_URI} [R=301,L]
|
|
#ЧПУ - Человеку понятный URL
|
|
RewriteRule ^([^/]*)/([^/]*)$ /?mod=$1&id=$2 [L]
|
|
|
|
#ЧПУ - Человеку понятный URL
|
|
RewriteRule ^([^/]*)\.html$ /page/$1 [L]
|
|
|
|
php_value memory_limit 8M
|
|
php_value max_execution_time 10
|
|
php_value upload_max_filesize 100M
|
|
php_value post_max_size 100M
|
|
|
|
php_value session.save_path /tmp
|
|
php_value session.gc_maxlifetime 604800
|
|
|
|
<FilesMatch ".(flv|gif|jpg|xml|jpeg|png|ico|swf|pdf|woff2|js|css|svg)$">
|
|
Header set Cache-Control "max-age=2592000"
|
|
</FilesMatch>
|
|
#a2enmod expires a2enmod headers
|
|
AddType text/xml .xml |