2016-07-18 16:39:37 +00:00
|
|
|
Options -Indexes
|
|
|
|
|
2018-09-20 14:05:15 +00:00
|
|
|
php_value session.save_path /var/lib/php/uoj_sessions
|
2016-07-18 16:39:37 +00:00
|
|
|
php_value session.gc_maxlifetime 172800
|
|
|
|
php_value session.cookie_lifetime 31536000
|
|
|
|
|
2017-11-25 04:00:00 +00:00
|
|
|
php_value post_max_size 1000M
|
|
|
|
php_value upload_max_filesize 1000M
|
2016-07-18 16:39:37 +00:00
|
|
|
|
|
|
|
php_value session.gc_probability 1
|
|
|
|
php_value session.gc_divisor 1000
|
|
|
|
|
2018-10-11 15:36:26 +00:00
|
|
|
php_value date.timezone 'Asia/Shanghai'
|
|
|
|
|
2016-07-18 16:39:37 +00:00
|
|
|
DirectorySlash Off
|
|
|
|
|
|
|
|
DirectoryIndex
|
|
|
|
|
|
|
|
RewriteEngine On
|
|
|
|
|
|
|
|
RewriteCond %{QUERY_STRING} ^$
|
|
|
|
RewriteRule ^(.*)/$ /$1 [L,R=301]
|
|
|
|
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
RewriteRule ^ index.php [L]
|