我正在使用 php:7.2-apache docker。我需要禁用運行狀況檢查 url 登錄訪問日志。
基于此鏈接,他們提到了有關修改 Customlog 指令的信息。我不是關于需要更改 Customlog 指令的文件。
您可以在 apache conf 文件中使用 CustomLog 參數(shù)。請看下面的代碼。如果您使用 centos,請找到 /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