mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 09:38:42 +00:00
feat(install): separate judge apache access log to another file
When judger is polling, there will be many items under access log file. It makes access log file very big and makes us difficult to check the log. Move judge access log to another single file, make it easier to manage log files.
This commit is contained in:
parent
e030a23ecb
commit
a522d58f1d
@ -49,9 +49,11 @@ setLAMPConf(){
|
|||||||
ServerAdmin opensource@uoj.ac
|
ServerAdmin opensource@uoj.ac
|
||||||
DocumentRoot /var/www/uoj
|
DocumentRoot /var/www/uoj
|
||||||
|
|
||||||
|
SetEnvIf Request_URI "^/judge/.*$" judgelog
|
||||||
#LogLevel info ssl:warn
|
#LogLevel info ssl:warn
|
||||||
ErrorLog \${APACHE_LOG_DIR}/uoj_error.log
|
ErrorLog \${APACHE_LOG_DIR}/uoj_error.log
|
||||||
CustomLog \${APACHE_LOG_DIR}/uoj_access.log combined
|
CustomLog \${APACHE_LOG_DIR}/uoj_judge.log common env=judgelog
|
||||||
|
CustomLog \${APACHE_LOG_DIR}/uoj_access.log combined env=!judgelog
|
||||||
|
|
||||||
XSendFile On
|
XSendFile On
|
||||||
XSendFilePath /var/uoj_data
|
XSendFilePath /var/uoj_data
|
||||||
|
Loading…
Reference in New Issue
Block a user