我正在使用 php:7.2-apache docker。我需要停用運(yùn)行狀況檢查 url 登入訪問(wèn)日誌。
基於此鏈接,他們提到了有關(guān)修改 Customlog 指令的資訊。我不是關(guān)於需要更改 Customlog 指令的檔案。
您可以在 apache conf 檔案中使用 CustomLog 參數(shù)。請(qǐng)看下面的程式碼。如果您使用 centos,請(qǐng)找到 /etc/httpd/conf.d/ 內(nèi)部。
Options +SymLinksIfOwnerMatch ServerName global LogLevel error ErrorLog /var/www/html/logs/global-error.log CustomLog /var/www/html/logs/global-access.log combined DocumentRoot /var/www/html/global