"Oleg Raskin" <suppressed> 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 _/ _/ _/ _/ _/ _/ _/ _/_/ suppressed _/ _/ _/_/_/_/ _/ _/_/_/ _/ _/ _______________________________________________ interchange-users mailing list suppressed http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.