首頁  >  問答  >  主體

我應該在 apache 中哪裡放置 CustomLog 指令

我正在使用 php:7.2-apache docker。我需要停用運行狀況檢查 url 登入訪問日誌。

基於此鏈接,他們提到了有關修改 Customlog 指令的資訊。我不是關於需要更改 Customlog 指令的檔案。

P粉573809727P粉573809727175 天前989

全部回覆(1)我來回復

  • P粉662089521

    P粉6620895212024-04-07 14:06:12

    您可以在 apache conf 檔案中使用 CustomLog 參數。請看下面的程式碼。如果您使用 centos,請找到 /etc/httpd/conf.d/ 內部。

    
      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
    

    回覆
    0
  • 取消回覆