Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

<title>Menu for /</title>
<h1>Menu for /</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.

share|improve this question
up vote 5 down vote accepted

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


# 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
share|improve this answer
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 -… – Ben Lessani - Sonassi Mar 15 '12 at 17:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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