logging - Symfony2 日志中由 "OPTIONS"http 请求引起的 404 错误

标签 logging symfony http-status-code-404

我们不久前在生产环境中交付了一个 Symfony2 项目。在 prod.log 文件中,我们经常出现 404 错误:

[2012-10-17 13:10:03] request.ERROR: Symfony\Component\HttpKernel\Exception\NotFoundHttpException: 
No route found for "OPTIONS /bundles/mythemes/css/" 
(uncaught exception)at /data/apps/project/webapp/version/app/cache/prod/...

这是正常的,因为用户无法解析CSS目录,有效的URL例如:

/bundles/mythemes/css/ie7.css

我在 Symfony2 跟踪器上发现了一个问题,该问题也与错误的 http“OPTIONS”查询有关:

https://github.com/FriendsOfSymfony/FOSRestBundle/issues/142

我只是想知道是什么导致了这个错误。

最佳答案

我找到了问题的根源,在这些情况下,引用者是“Microsoft Office Protocol Discovery”。这一切都在这篇文章中进行了解释:

What are "Microsoft Office Protocol Discovery" and "OfficeLiveConnector" and why do they access invalid URLs?

关于logging - Symfony2 日志中由 "OPTIONS"http 请求引起的 404 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13031114/

相关文章:

javascript - 有没有办法用一个函数包装所有的 JavaScript 方法?

spring - 在 wildfly 中获取 spring 框架登录

php - Symonfy2 验证 : define constraints in yml, 并验证一个数组

Spring MVC 映射-未找到 404 错误-使用 Gradle 和 Jetty

php - Magento 不正确的 404 重定向

java - 在处理开始时而不是在结束时调用 MDC.clear() 有什么缺点吗?

scala - Apache Flink:STDOUT文件在TaskExecutor上不可用

Symfony + JMSSerializer 抛出 500 -handleCircularReference

php - Doctrine ORM : use interface as relation for different entities?

jsf - 如果 f :viewParam/converter returns null?,如何将某人发送到 404 页面