Apache的500错误是由于用户代理? [英] Apache 500 Error due to User Agent?
问题描述
我使用已经提供给自己一个惊人的探头shell脚本,目前得到500错误Apache的。
I am currently getting 500 errors from Apache using a alarming probe shell script that has been provided to myself.
不幸的是我没能去的,为什么尝试在本地访问服务器上的内容,但使用其他方法,如wget的和telnet工作正常时,脚本生成一个500错误的底部。
Unfortunately I have not been able to get to the bottom of why the script generates a 500 error when attempting to access content locally on the server but using other methods like wget and telnet works fine.
以下是Apache访问日志条目每个的尝试:
The following are the Apache access log entries for each of the attempts:
使用wget
127.0.0.1 - "" [19/Mar/2013:14:31:44 +1100] "GET /index.html HTTP/1.1" 200 1635 "-" "Wget/1.13.3" "-"
使用Telnet
Using Telnet
127.0.0.1 - "" [20/Mar/2013:13:12:11 +1100] "GET /index.html HTTP/1.1" 200 1635 "-" "-" "-"
使用探头脚本
127.0.0.1 - - [19/Mar/2013:14:33:56 +1100] "GET /index.html HTTP/1.1" 500 - "-" "" "-"
我可以看到的唯一区别是,探测器有一个 - 而不是在用户代理(第3项),这两种方式告诉我这不是在任何实例传递(因为这是因为预期没有身份验证)。
The only difference I can see is that the probe has a - instead of a "" in the user agent (3rd item) which either way tells me it wasn't passed in any of the instances (as this is expected since there is no authentication).
我撞到了在Apache的一切记录和无法弄清楚什么不妥。有没有参与处理,这是一个静态文件,我已经尝试与其他文件类型太像图像无济于事。
I've bumped up the logging for everything in Apache and can't figure out what is amiss. There is no processing involved, it's a static file, and I have attempted with other file types too, like images to no avail.
有没有人有任何意见或见过类似的东西?
Does anyone have any ideas or has seen something similar?
谢谢,
托尼
推荐答案
您的Apache配置可能会拒绝请求,一个空用户代理
。
Your Apache configuration may be refusing requests with an empty user-agent
.
这篇关于Apache的500错误是由于用户代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!