ELMAH - 它是否记录引用 URL
我刚刚在我的一个 MVC 站点上设置了 ELMAH,但似乎无法在任何错误日志中找到引用 URL。
是否报告引用 URL?
[我在下面添加了有关异常的详细信息,以表明不包括 HTTP_REFERER:
HTTP_CACHE_CONTROL no-cache
HTTP_CONTENT_LENGTH 0
HTTP_HOST secure.abc.co.uk
HTTP_USER_AGENT Test Certificate Info
HTTPS on
HTTPS_KEYSIZE 128
HTTPS_SECRETKEYSIZE 2048
HTTPS_SERVER_ISSUER C=US, O="Thawte, Inc.", OU=Domain Validated SSL, CN=Thawte DV SSL CA
HTTPS_SERVER_SUBJECT O=secure.abc.co.uk, OU=Go to https://www.thawte.com/repository/index.html, OU=Thawte SSL123 certificate, OU=Domain Validated, CN=secure.abc.co.uk
INSTANCE_ID 2
INSTANCE_META_PATH /LM/W3SVC/2
LOCAL_ADDR xxx.xxx.xxx.xxx
LOGON_USER
PATH_INFO /https:/secure.abc.co.uk/
I've just set up ELMAH on one of my MVC sites and can't seem to find the referring URL in any of the error logs.
Is the referring URL reported?
[I've added the detail on the exception below to show that HTTP_REFERER is not included:
HTTP_CACHE_CONTROL no-cache
HTTP_CONTENT_LENGTH 0
HTTP_HOST secure.abc.co.uk
HTTP_USER_AGENT Test Certificate Info
HTTPS on
HTTPS_KEYSIZE 128
HTTPS_SECRETKEYSIZE 2048
HTTPS_SERVER_ISSUER C=US, O="Thawte, Inc.", OU=Domain Validated SSL, CN=Thawte DV SSL CA
HTTPS_SERVER_SUBJECT O=secure.abc.co.uk, OU=Go to https://www.thawte.com/repository/index.html, OU=Thawte SSL123 certificate, OU=Domain Validated, CN=secure.abc.co.uk
INSTANCE_ID 2
INSTANCE_META_PATH /LM/W3SVC/2
LOCAL_ADDR xxx.xxx.xxx.xxx
LOGON_USER
PATH_INFO /https:/secure.abc.co.uk/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
验证请求中是否确实发送了引荐来源网址。
如果实际没有传递引用者,ELMAH 将不会显示 HTTP_REFERER 行。
这可能是由于浏览器设置、防病毒软件或您发出请求的方式造成的。
Verify that the referrer is actually being sent in the request.
ELMAH won't display the HTTP_REFERER row if no referrer is actually passed.
This could be because of a browser setting, anti-virus, or the way you're making the request.
是的。
请务必单击您正在查看的错误的“详细信息”链接。它是
HTTP_REFERER
属性。Yes.
Be sure to click on the 'Details' link for the error you're looking at. It's the
HTTP_REFERER
attribute.