标签 apache 下的文章
解决Apache的错误日志巨大的问题
1、可以通过降低log级别的办法来减少日志读写。编辑conf文件夹下的httpd.conf,找到如下内容:# # LogLevel: Control the number of messages logged to the error_log. # Possible values include: debug, info, notice, warn, error, crit, # alert...
apache添加日期日志的方法
httpd.conf找到这两句修改成下面语句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_log-%...
隐藏apache版本号的方法
httpd.conf 查找Include conf/extra/httpd-default.conf把前面#去掉,并修改文件为ServerTokens Prod ServerSignature off