[GRASS5] Some strange HTML online output

Markus Neteler neteler at itc.it
Thu Jan 24 09:04:12 EST 2002


On Thu, Jan 24, 2002 at 01:50:24PM +0000, Glynn Clements wrote:
> 
> Markus Neteler wrote:
> 
> > while looking at the HTML man pages:
> > http://grass.itc.it/gdp/html_grass5/html/p.map.html
> > http://grass.itc.it/gdp/html_grass5/html/p.map.new.html
> > 
> > some strange output occurs:
> > Menu for /gdp/html_grass5/html/p.map.html
> > 
> >           html
> > [an internal server error occured] 
> > 
> > Obviously these pages are treated as something different
> > (PHP?). 
> > 
> > Any ideas to solve this? The HTML code is o.k., I think.
> 
> It doesn't matter whether or not the HTML code is OK. Even if you give
> a ".html" extension to a file of completely random binary data, it
> shouldn't cause an internal server error.
> 
> My suspicion is that the server has been configured to treat any
> filename which contains[1] the string ".map" as a server-side image
> map.
> 
> [1] as opposed to ending in ".map".

Thanks for the pointer. Looking into the config (not done by me) I
found:

grep map httpd.conf
LoadModule imap_module        modules/mod_imap.so
AddModule mod_imap.c
Alias /tmp/  "/tmp/mapserver/"
<Directory "/tmp/mapserver/">
# AddHandler: allows you to map certain file extensions to "handlers",
# If you wish to use server-parsed imagemap files, use
AddHandler imap-file map

So the latter is suspicious. Next question is if I should
switch that handler off as we have the GRASS "mirrors" map:
http://grass.itc.it/index.html

On the apache docs I read "This module provides for server-side imagemap
processing."

I assume that this has nothing to do with our map, right?
Switching "AddHandler imap-file map" off should be fine?

Sorry for the naive questions,

 Markus



More information about the grass-dev mailing list