httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] Newbie Question: Does mod_dir require mod_mime?
Date Mon, 16 Jun 2003 21:45:07 GMT

On Mon, 16 Jun 2003, Aaron Spike wrote:

> > You don't mention EXACTLY what happened when you tried using
> > DirectoryIndex without mod_mime.
> I get
> "Not Found

You won't get anywhere with apache unless you look in the error log.

> > But you should notice that if you remove
> > mod_mime, then the only way apache has to determine the mime type is
> > DefaultType.  So your index.html file will not be designated as text/html
> > like it is supposed to be.
> What if I change DefaultType from text/plain to text/html? It still
> doesn't work. Same results. Are there any other negative effects of
> this configuration change?

Looking at the code, I see there is actually a dependency through
DIR_MAGIC_TYPE, which mod_mime needs to set for directories.  In 2.0, this
is handled differently and the dependency doesn't exist.

> > In general, mod_mime (or a similar module) will almost always be required
> > to do anything useful with apache.
> I figured as much, but what if I only serve html. That is only one
> mime type, right? Do I hit problems with my first <img> tag?


You really can't run a server without mod_mime, unless, perhaps, you plan
to serve only a single file.

It is a good exercise to go through and figure out what all the modules
do, but in general, you should expect weird things to happen unless you
include the ones labled as "base" in the docs.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message