Altering DirectoryIndex in <Directory> or <Location>

Altering DirectoryIndex in <Directory> or <Location>

Post by Kamil Kuku » Tue, 17 Dec 2002 22:00:06



It seems that setting DirectoryIndex for some <Directory> or
<Location> along with global setting actually means merging the
values. That is:

Directory index.html index.php

<Directory /foo/bar>
   DirectoryIndex foobar.html
</Directory>

results to have for "/foo/bar" index file foobar.html as well as
index.html and index.php. Is there way to supress global setting for
some directory or location?

--
Kamil Kukura

 
 
 

1. Apache->DirectoryIndex in <Location> and <Directory> directives.

Hello,
  Thanks in advance for any replys.
  I have a cgi-bin dir, /cgi-bin/, I want to make it having index.cgi
as its DirectoryIndex. So I did:
<Directory /absolute/path/cgi-bin>
AllowOverrides Indexes
Options None
</Directory>
<Location /cgi-bin/>
DirectoryIndex index.cgi
</Location>
But when I started the apache server, and accessing
http://server/cgi-bin/
It tells me I don't have permission to do this. I checked the error_log,
it shows
me "try to invoke directory as script".
I wonder can I have DirectoryIndex for cgi-bin directory? Currently what
I did is
using Rewrite modules to solve it.
But I like to know can it be done by DirectoryIndex directive?
Thanks.

--
Simon Tneoh Chee-Boon
Application Developer   Hitechniaga Sdn. Bhd.

http://www.tneoh.zoneit.com/simon/

2. fvwm2 questions

3. <><><> MOUNTING EXTENDED PARTITION <><><>

4. Linux for PS/2 (again)

5. Wanted: <><><> Unix Specialist <><><>

6. amd and sun

7. LILO help <><><><><><>

8. One more time : Help installing compressed libs Slackware 2.3

9. <Alt>+<key> = <Esc><key> ?

10. *{<><>}*Linux*Screen*Difficulties*{<><>}*

11. << <<anyone using dyn-html?>> >>

12. (<><>)*Linux*Screen*Difficulties*(<><>)

13. Samba problem: WinXP <-> ADSL <-> Internet <-> Cable <-> Linux