search

Home  >  Q&A  >  body text

Where should I place CustomLog directive in apache

I'm using php:7.2-apache docker. I need to disable health check url login access log.

Based on this link, they mentioned about modifying the Customlog directive. I'm not concerned about the files that need to change the Customlog directive.

P粉573809727P粉573809727249 days ago1343

reply all(1)I'll reply

  • P粉662089521

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

    You can use the CustomLog parameter in the apache conf file. Please look at the code below. If you are using centos, find inside /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
    

    reply
    0
  • Cancelreply