Where should I place CustomLog directive in apache
P粉573809727
P粉573809727 2024-04-06 22:03:59
0
1
888

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粉573809727
P粉573809727

reply all (1)
P粉662089521

You can use theCustomLogparameter 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
             
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!