Web Hosting Talk







View Full Version : Index.cgi prob


bubblehost.com
09-16-2001, 02:52 PM
Hello how do i enable index.cgi to be the index for one of my sites? I cant figure out where it is written that only index.htm and index.html can be the index.

Thanks

Chicken
09-16-2001, 05:44 PM
Two ways...

One upload an .htaccess file in the directory with this one line:
DirectoryIndex index.cgi index.html index.htm index.shtml

or the other...

Telnet (or ssh) into box as admin, su to root
pico /etc/httpd/conf/srm.conf

Look for:
DirectoryIndex index.html index.htm index.shtml

Change to:
DirectoryIndex index.html index.htm index.shtml index.cgi

Save/exit/restart apache

bubblehost.com
09-16-2001, 05:46 PM
thanks so much for the fast reply!

Peeps
09-16-2001, 09:43 PM
Chicken, even though he uses pico instead of vi, gives some good information. :)

Chicken
09-16-2001, 10:51 PM
Bah! I'm just trained like a dog listening to a bell... I'll attempt to make a consious effect to use vi one day, see the light... :D