When I tried to use a javascript file with a name blah.map.foo.js it kept failing with a syntax error. After much effort tracking down why, it turns out that when I open an empty file called blah.map.foo.html I get this output to my browser:

<title>Menu for /blah.map.foo.html</title>
<h1>Menu for /blah.map.foo.html</h1>
<hr />


As soon as I change the .map. in the filename to something else, I just get a blank page as I would expect. I did a quick search through our apache config files for ".map" but didn't find anything that might cause the behaviour.

Is this some kind of standard functionality? (Googling "menu for" gets a whole lot of restaurants...)

If not standard, where should I look to find out what's going on?

Background: I work in a corporate environment with a head office that sets up much of the Apache configuration, though I can add my own customisations and have full access to the config files. Thanks to staff movements, this behaviour may have been previously built by someone and no longer known about by current staff.


The only Apache directive I'm aware of that has anything to do with map is


But that is certainly not your issue.

I think it is much more likely you have a greedy rewrite that is capturing that URL. Post the contents of your .htaccess and vhost config (if necessary).

Have a look at this 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
| improve this answer | |
  • 2
    Imap is the problem. "Menu for" appears in the apache source in ./modules/mappers/mod_imagemap.c – Mark Wagner Mar 9 '12 at 0:11
  • @MarkWagner, I think that's the answer I want - would you care to shift it to an answer as I can't accept a comment. As I understand it, your answer is substantially different to sonassi's. – Highly Irregular Mar 14 '12 at 20:57
  • @HighlyIrregular - no, he is stating my answer IS correct. mod_imagemap.c contains the directives I mentioned, look at the opening comments here - opensource.apple.com/source/apache/apache-747.3/httpd/modules/… – Ben Lessani - Sonassi Mar 15 '12 at 17:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.