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

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

Post by Simon Tneoh Chee-Boo » Thu, 17 Dec 1998 04:00:00



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/

 
 
 

1. <><><> MOUNTING EXTENDED PARTITION <><><>

I have a 10 GB UDMA IDE drive formatted with Windows.  The first partition
is FAT32, and the second is NTFS.  I can successfully mount the first, but
not the second.  Any ideas?

Suse 7.2 on i86
the drive is mounted on /dev/hdc, and I CAN see hda1, but not hda2

2. memory leaks/ HP UX/ C++

3. Wanted: <><><> Unix Specialist <><><>

4. Sony CDU33A - drive not ready

5. LILO help <><><><><><>

6. In need of perfagent for AIX 3.2.5

7. Altering DirectoryIndex in <Directory> or <Location>

8. Number of Disks (HPUX)

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