You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Richard Freilich <rf...@vertex.tor.hookup.net> on 1996/03/18 01:56:14 UTC

MIME types

Sent this to apache-users first, got no answer, so I'll try you guys.

A customer asked me to add a MIME type to the server for him (Apache 
1.0.3), however after adding the lines below to my srm.conf file and 
sending SIGHUP to the server, the files continued to be served as 
text/plain.  Is this a bug?  A feature that isn't implemented?  Any 
comments/suggestions would be appreciated.  The lines are below.

AddType application/x-director .dcr
AddType application/x-director .dxr
AddType application/x-director .dir

TIA for any help.


--
************************** Richard Freilich ***************************
E-mail: rfreilic@hookup.net	       HookUp Communication Corporation 
Webmaster				 Ontario, Canada (905) 847-8000

******* The more things change, the more they stay the same... ********


Re: MIME types

Posted by Brian Behlendorf <br...@organic.com>.
On Mon, 18 Mar 1996, Richard Freilich wrote:
> This DOES however bring up a strange point.  Weird as it MAY be, as soon
> as I remove the executable bits from the file, (tried this on receipt of
> your message), the server serves it as an x-director file.  Does ANYBODY
> know what's going on here?  :)  If anybody wants a summary to try to 
> (guess) figure out what's going on, I'll provide one.

This makes purrfect sense - a well known "bug" (hopefully no one's 
relying upon this as a feature, oy!) is that when Xbithack is enabled, 
*any* file with X bits set (except for CGI files, yes?) is assumed to be 
a file for the server to parse for SSI includes.  

If this is what caused it, then I submit to the developer's group that we 
might as well swallow the "it's a hack anyways" opinion and make it do a 
content-type check to make sure only files designated "text/html" get the 
bithack applied.

	Brian


Re: MIME types

Posted by Richard Freilich <rf...@vertex.tor.hookup.net>.
On Mon, 18 Mar 1996, Brian Behlendorf wrote:

> On Sun, 17 Mar 1996, Richard Freilich wrote:
> > Sent this to apache-users first, got no answer, so I'll try you guys.
> > 
> > A customer asked me to add a MIME type to the server for him (Apache 
> > 1.0.3), however after adding the lines below to my srm.conf file and 
> > sending SIGHUP to the server, the files continued to be served as 
> > text/plain.  Is this a bug?  A feature that isn't implemented?  Any 
> > comments/suggestions would be appreciated.  The lines are below.
> > 
> > AddType application/x-director .dcr
> > AddType application/x-director .dxr
> > AddType application/x-director .dir
> 
> Do you have XBITHACK turned on, and are the files executable?  Though 
> that wouldn't explain why they are text/plain I suppose... the only other 
> freakish thing I can think of is that the files don't end with ".dcr", 
> they end with ".dcr ", which is possible on a Mac.  I currently have 
> entries in my mime.types file for this.  (Anybody mind, by the way, if I 
> learn my way with CVS by first editing the mime.types file to update it?)

XBITHACK is on, and the file is executable.  Nope.  Tried pico 
"filename.dcr " and it brought up a new file, so that's not the answer 
either.  It's weird, because the lines are there, the server is 
restarted, and the file is STILL being served as text.

This DOES however bring up a strange point.  Weird as it MAY be, as soon
as I remove the executable bits from the file, (tried this on receipt of
your message), the server serves it as an x-director file.  Does ANYBODY
know what's going on here?  :)  If anybody wants a summary to try to 
(guess) figure out what's going on, I'll provide one.



--
************************** Richard Freilich ***************************
E-mail: rfreilic@hookup.net	       HookUp Communication Corporation 
Webmaster				 Ontario, Canada (905) 847-8000

******* The more things change, the more they stay the same... ********

Re: MIME types

Posted by Brian Behlendorf <br...@organic.com>.
On Sun, 17 Mar 1996, Richard Freilich wrote:
> Sent this to apache-users first, got no answer, so I'll try you guys.
> 
> A customer asked me to add a MIME type to the server for him (Apache 
> 1.0.3), however after adding the lines below to my srm.conf file and 
> sending SIGHUP to the server, the files continued to be served as 
> text/plain.  Is this a bug?  A feature that isn't implemented?  Any 
> comments/suggestions would be appreciated.  The lines are below.
> 
> AddType application/x-director .dcr
> AddType application/x-director .dxr
> AddType application/x-director .dir

Do you have XBITHACK turned on, and are the files executable?  Though 
that wouldn't explain why they are text/plain I suppose... the only other 
freakish thing I can think of is that the files don't end with ".dcr", 
they end with ".dcr ", which is possible on a Mac.  I currently have 
entries in my mime.types file for this.  (Anybody mind, by the way, if I 
learn my way with CVS by first editing the mime.types file to update it?)

	Brian

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com  brian@hyperreal.com  http://www.[hyperreal,organic].com/