ELMAH - 它是否记录引用 URL

发布于 2024-12-02 19:10:49 字数 707 浏览 3 评论 0原文

我刚刚在我的一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

紫竹語嫣☆ 2024-12-09 19:10:50

验证请求中是否确实发送了引荐来源网址。

如果实际没有传递引用者,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.

无尽的现实 2024-12-09 19:10:50

是的。

请务必单击您正在查看的错误的“详细信息”链接。它是 HTTP_REFERER 属性。

Yes.

Be sure to click on the 'Details' link for the error you're looking at. It's the HTTP_REFERER attribute.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文