mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-23 16:51:52 +00:00
f2056f17d1
Since PHP 5.1.0 (when the date/time functions were rewritten), we need to specify the default timezone. Otherwise the timezone will always set to UTC that may cause problem or cause confusion. We set the default timezone to Asia/Shanghai. If you are not at the area of this timezone, you can change it manually.
26 lines
518 B
ApacheConf
26 lines
518 B
ApacheConf
Options -Indexes
|
|
|
|
php_value session.save_path /var/lib/php/uoj_sessions
|
|
php_value session.gc_maxlifetime 172800
|
|
php_value session.cookie_lifetime 31536000
|
|
|
|
php_value post_max_size 1000M
|
|
php_value upload_max_filesize 1000M
|
|
|
|
php_value session.gc_probability 1
|
|
php_value session.gc_divisor 1000
|
|
|
|
php_value date.timezone 'Asia/Shanghai'
|
|
|
|
DirectorySlash Off
|
|
|
|
DirectoryIndex
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteCond %{QUERY_STRING} ^$
|
|
RewriteRule ^(.*)/$ /$1 [L,R=301]
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule ^ index.php [L]
|