HP3000-L Archives

May 2003, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Mark Bixby <[log in to unmask]>
Date:
Fri, 9 May 2003 14:49:53 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (58 lines)
Donna Garverick wrote:
> Mark Bixby wrote:
>>Modern versions of Apache/WebWise should not have stomped on /APACHE/PUB/conf/mime.types.
>
>
> could be....but what got me alerted that i had a problem was when i clicked on a link for a '.hlp' file....apache
> didn't know what to do.  i remember fixing this a long time ago....(it's probably in raven some place :-)...and
> putting the fix into the mime.types file.  i'm sure that repair was made in an old old version of apache....and may be
> part of the problem.
>
> a couple of other notes....
> -- /APACHE/PUB/conf/mime.types points to /APACHE/CURRENT/conf/mime.types and CURRENT points to A0300.

Interesting.  Neither Apache A.02.00 or WebWise A.03.00 would have created
/APACHE/PUB/conf/mime.types as a symlink (I just checked the install jobs/scripts).

The only reference to mime.types in the WebWise A.03.00 install script is:

[ ! -f mime.types ] && die cp mime.types.sample mime.types

So it will only install a new /APACHE/PUB/conf/mime.types file if mime.types
does not already exist as a file.

If mime.types exists as a symlink pointing to an existing file, the copy will
not be done.

If mime.types exists as a symlink pointing to a non-existent file, the copy
will be done, creating the target of the symlink.

So even though you had mime.types as a mysterious symlink apparently not
created by the two most recent web server versions, A.03.00 should not have
overwritten the symlink target file.

BTW, "die" is a script function of mine that executes a command and if the
status is non-zero, does a :TELLOP and terminates script execution.

> -- my apache reference book (which may be sufficiently out of date to no longer be helpful (written when 1.3.9 was the
> latest version....)) discourages the direct modification of mime.types -- because it's going to be overwritten during
> update.  instead, it recommends making changes in httpd.conf using the AddType directive.  (and fwiw -- that's where
> i've added the lines to cover .chm and .hlp)

Your Apache reference book is still current in this regard.

http://httpd.apache.org/docs/mod/mod_mime.html#typesconfig says:

"This file sets the default list of mappings from filename extensions to
content types; changing this file is not recommended. Use the AddType directive
instead."

So the Right Thing To Do is to do your MIME type tweaking via AddType
directives in httpd.conf.
--
[log in to unmask]
Remainder of .sig suppressed to conserve expensive California electrons...

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2