我遇到了一个服务器,一直在摔倒的问题。 通过Apache错误日志看起来似乎来自stream氓PHP脚本。 我试图用Apache的error_log和access_log跟踪这个,但服务器日志格式并没有给我我需要的细节。
我怀疑日志格式是不够的,但我已经审查了Apache的文档,我已经包括了我认为我需要看到的交换机。
这是我在httpd.conf文件中的LogFormatconfiguration:
`LogFormat'%h%l%u%t \“%r \”%s%b%U%q%T \“%{Referer} i \”\“%{User-Agent} i \”“extended
CustomLog logs / access_log extended`
使用%U%q%T开关,我期望看到请求的URL,查询string和服务请求所用的时间,但是当我尾日志时我没有看到任何这些信息。
这是一个例子:
“选项* HTTP / 1.0”200 – * 0“ – ”“Apache / 2.2.15(Unix)mod_ssl / 2.2.15 OpenSSL / 0.9.8e-fips-rhel5 mod_bwlimited / 1.4(内部虚拟连接)“127.0.0.1 – – [01 / Jun / 2010:14:12:05 +0100]”选项* HTTP / 1.0“200 – * 0” – “ “Apache / 2.2.15(Unix)mod_ssl / 2.2.15 OpenSSL / 0.9.8e-fips-rhel5 mod_bwlimited / 1.4(内部虚拟连接)”127.0.0.1 – – [01 / Jun / 2010:14:12:06 + 01.10]“OPTIONS * HTTP / 1.0”200 – * 0“ – ”“Apache / 2.2.15(Unix)mod_ssl / 2.2.15 OpenSSL / 0.9.8e-fips-rhel5 mod_bwlimited / 1.4(内部虚拟连接)”127.0。 0.1 – – [01 / Jun / 2010:14:12:07 +0100]“OPTIONS * HTTP / 1.0”200 – * 0“ – ”“Apache / 2.2.15(Unix)mod_ssl / 2.2.15 OpenSSL / 0.9。 8e-fips-rhel5 mod_bwlimited / 1.4(内部虚拟连接)“127.0.0.1 – – [01 / Jun / 2010:14:12:08 +0100]”选项* HTTP / 1.0“200 – * 0” – “”Apache /2.2.15(Unix)mod_ssl / 2.2.15 OpenSSL / 0.9.8e-fips-rhel5 mod_bwlimited / 1.4(内部虚拟连接)“127.0.0.1 – – [01 / Jun / 2010:14:12:09 +0100] “选项* HTTP / 1 .0“200 – * 0” – “”Apache / 2.2.15(Unix)mod_ssl / 2.2.15 OpenSSL / 0.9.8e-fips-rhel5 mod_bwlimited / 1.4(内部虚拟连接)
在configurationLogFormat时出错了,还是别的什么?
此外,每个请求似乎来自本地主机。 为什么不给我远程用户的IP地址?
谢谢,Iarfhlaith
这是因为它真的来自本地主机 – 这是Apache自己说话。
谁可能要求选项? 普通的Web用户只请求GET和POST。 连接检查器/停机检查程序/机器人请求只有头部。