apache

解决Apache的错误日志巨大的问题

2019-11-27
1、可以通过降低log级别的办法来减少日志读写。 编辑conf文件夹下的httpd.conf,找到如下内容: ```shell # # LogLevel: Control the number of messages logged to the error_log. # Possible values include: debug, info, notice, warn, err.....

apache添加日期日志的方法

2019-10-11
找到httpd.conf 找到这两句修改成下面语句 ```shell ErrorLog "|/httpd-xxxx/bin/rotatelogs /httpd-xxx/logs/log/error-%Y-%m-%d.log 86400 480" CustomLog "|/httpd-xxxx/bin/rotatelogs /httpd-xxxx/logs/log/access_lo.....

隐藏apache版本号的方法

2019-10-10
------------ httpd.conf 查找 Include conf/extra/httpd-default.conf 把前面#去掉,并修改文件为 ServerTokens Prod ServerSignature off ------------.....