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:
Masco Skray 2019-07-08 13:20:30 +08:00
parent e030a23ecb
commit a522d58f1d

View File

@ -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