为什么Apache对包含.map的文件做些奇怪的事情。 在名字里?

当我试图使用一个名为blah.map.foo.js的JavaScript文件时,它保持失败,语法错误。 经过很多努力追查为什么,事实certificate,当我打开一个名为blah.map.foo.html的空文件,我得到这个输出到我的浏览器:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <html><head> <title>Menu for /blah.map.foo.html</title> </head><body> <h1>Menu for /blah.map.foo.html</h1> <hr /> </body> </html> 

只要我改变.map。 在文件名到别的,我只是得到一个空白页,我所期望的。 我通过我们的“.map”的apacheconfiguration文件进行了快速search,但没有发现任何可能导致这种行为的东西。

这是一种标准function吗? (谷歌search“菜单”得到了很多餐馆…)

如果不是标准的话,我应该在哪里看看发生了什么事?

背景:我在一个企业环境中工作,总部负责设置许多Apacheconfiguration,尽pipe我可以添加自己的自定义configuration文件并且可以完全访问configuration文件。 由于工作人员的动作,这种行为可能以前由某人build立,不再由现在的工作人员了解。

我知道的唯一的Apache指令与map是有关系的

http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritemap

但这当然不是你的问题。

我认为这很有可能是你有一个贪婪的重写捕获该URL。 发布.htaccess和vhostconfiguration的内容(如有必要)。

看看这个http://www-01.ibm.com/support/docview.wss?uid=swg21255474

例如。

 # ImapMenu can be none, formatted, semiformatted, unformatted ImapMenu semiformatted # ImapDefault can be error, nocontent, map, referer, or some useful URL. # The .map file overrides this. ImapDefault map # ImapBase can be map, referer, URL. The .map file overrides this. ImapBase referer