[ic] mod_interchange and index.html

Kevin Walsh kevin at cursor.biz
Sun Oct 1 16:26:09 EDT 2006


"Oleg Raskin" <oleg at eville.us> wrote:
> I seem to be having a rather strange problem, although I am sure it is
> something quite simple.  I've got a catalog set up using mod_interchange
> which maps to the root directory of a domain using <Location />. 
> Everything works fine except for the actual index.html page in my
> catalog's pages directory.  The browser displays the directory listing of
> my public_html folder if I just go to domain.com, yet it works when I
> specifically add index or index.html to the address
> (domain.com/index.html).
> 
> For now I've created a workaround by actually putting an index.html file
> in my public_html folder which basically does nothing but redirect the
> browser to domain.com/index.html but I really need to understand what is
> causing the problem in the first place.
> 
A zero-byte index.html file will do the trick;  There's no need to put
any redirect code in the file.

The problem is known and appears to be to do with Apache's DirectoryIndex
directive.  As far as I can tell (without looking too hard), Apache will
check for the existence of an index.html file before redirecting users
from / to /index.html.  Essentially, if the file doesn't exist then
there's no need Apache to redirect the user.

That's my take on it.  Someone can correct me if I'm wrong and there's
something I should be doing about it.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin at cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/


More information about the interchange-users mailing list