I'm using apache2 server on windows server, and there is a lot website config. I already open the CustomLog(access log) on httpd.conf global setting.

But now I just want to turn off the log just for 1 web site. like:

<VirtualHost 17.100.18.18:80>  
    ServerAdmin admin@admin.com
    ServerName 17.100.18.18

    //disable log on here

</VirtualHost>

I'm trying to add CustomLog Off, but not working....

有帮助吗?

解决方案

Turn off the log for only 1 web site. you need set it like this:

<VirtualHost 17.100.18.18:80>  
    ServerAdmin admin@admin.com
    ServerName 17.100.18.18

CustomLog C:/nul common

</VirtualHost>

The answer from :http://www.apachelounge.com/viewtopic.php?p=18028

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top