httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Terbush <ra...@zyzzyva.com>
Subject Re: WWW Form Bug Report: "Including a text file doesn't work as expected" on Solaris 2.x (fwd)
Date Thu, 27 Jun 1996 17:36:55 GMT
That's what it looks like. I am surprised that included
documents get typed. should that be the behavior?
I think this violates the "least astonishment" rule.


> > 
> > THis is a strange one...can someone help this guy?
> 
> 	Well, since I'm not entirely sure that I'm right, I'll just
> 	bounce this idea off of you guys, and if it sounds reasonable,
> 	someone can forward it to him..  
> 
> 	It looks like mod_include is looking up the content-type for the
> 	file that it includes, and if it isn't text/<foo> then it's
> 	spewing an error.  If he has AddType application/x-httpd-imap map
> 	in his srm.conf then the type is _not_ going to be text/<foo>
> 	for the files ending in .map .. make sense?
> 
> 	-mark
> 
> > ---------- Forwarded message ----------
> > Date: Thu Jun 27  9:29:14 1996
> > From: cschanzle@nist.gov
> > To: cliff@organic.com
> > Subject: WWW Form Bug Report: "Including a text file doesn't work as
> > expected" on Solaris 2.x 
> > 
> > Submitter: cschanzle@nist.gov
> > Operating system: Solaris 2.x, version: 5.4
> > Version of Apache Used: 1.03, 1.05, 1.1b4
> > Extra Modules used: mod_include
> > URL exhibiting problem: http://zing.ncsl.nist.gov/~chris/cgi-tips.html
> > 
> > Symptoms:
> > --
> > I'm trying to include a simple, brain-dead ASCII file into
> > one of my HTML documents using the #include directive
> > of SSI, but I must be doing something stupid to make 
> > it not work.  Other directives work fine (see tail of
> > http://zing.ncsl.nist.gov/~chris/tips.html )
> > 
> > 1.03 and 1.05 give errors on the html code:
> > 
> > <!--#include file="imagemap/vette.map" -->
> > or
> > <!--#include virtual="imagemap/vette.map" -->
> > 
> > Such as:
> > 
> > [Thu Jun 27 10:59:08 1996] unable to include imagemap/vette.map in\
> >  parsed file /home/chris/html/cgi-tips.html
> > 
> > I have tried many variations on the virtual -vs- file
> > with relative paths, explict, virtual and real.  No luck.
> > 
> > 
> > The browser sees 'error processing directive'.
> > 
> > What I want is to simply include the ASCII text from the vette.map
> > file into the HTML source (which is surrounded with <PRE>).
> > The vette.map file really is in /home/chris/html/imagemap/vette.map
> > and is readable by the world (so is the directory).
> > 
> > This worked on NCSA 1.3 -> 1.5.
> > 
> > Apache 1.1b4 gives interesting HTML output in the form of
> > a menu.  The vette.map file is a 3-line imagemap that contains the
> > following three lines:
> > 
> > default /~chris/imagemap/vdef.html
> > rect /~chris/imagemap/vsky.html 0,0 304,64
> > poly /~chris/imagemap/vcar.html 25,140 145,111 300,146 280,190 167,221
> > 24,182 
> > 
> > Viewing the browser's source I see:
> > 
> > <html>
> > <head><title>Menu for /~chris/imagemap/vette.map</title></head>
> > 
> > <body>
> > <h1>Menu for /~chris/imagemap/vette.map</h1>
> > <hr>
> > 
> > <pre>(Default) <a
> >
> href="http://zing.ncsl.nist.gov/~chris/imagemap/vdef.html">/~chris/imagemap/vdef.html</a></pre>
> <pre>          <a
> href="http://zing.ncsl.nist.gov/~chris/imagemap/vsky.html">/~chris/imagemap/vsky.html</a></pre>
> > <pre>          <a
> >
> href="http://zing.ncsl.nist.gov/~chris/imagemap/vcar.html">/~chris/imagemap/vcar.html</a></pre>
> 
> > 
> > 
> > </body>
> > </html>
> > 
> > So, how do I get what I want?  :-)
> > 
> > --
> > 
> > Backtrace:
> > --
> > 
> > --




Mime
View raw message