首页  >  问答  >  正文

我应该在 apache 中哪里放置 CustomLog 指令

我正在使用 php:7.2-apache docker。我需要禁用运行状况检查 url 登录访问日志。

基于此链接,他们提到了有关修改 Customlog 指令的信息。我不是关于需要更改 Customlog 指令的文件。

P粉573809727P粉57380972783 天前693

全部回复(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
  • 取消回复