[GRASS5] Some strange HTML online output
Glynn Clements
glynn.clements at virgin.net
Thu Jan 24 09:11:23 EST 2002
Glynn Clements 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".
Yes and no.
Yes: the server treats p.map.html as in imagemap (mod_imap).
No: you don't actually have to do anything special to get this
behaviour. I have exactly the same problem here, with a default Apache
1.3.14 setup.
The Apache documentation mentions the problem:
http://httpd.apache.org/docs/mod/mod_mime.html#multipleext
I found that adding:
AddHandler default-handler .html
to httpd.conf solves the problem, although it *might* interfere with
other uses of multiple extensions, e.g. as multi-language support (I
don't have anything like this here to test with).
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-dev
mailing list