Web Hosting Talk







View Full Version : Index.cgi quick question - thanks!


Crazy
09-12-2001, 09:44 PM
Heya..

How do i make the index.cgi a default page when going into a directory( like index.htm, index.html, index.shtml, and index.php)

Thanks in advance..

-Crazy

The Prohacker
09-12-2001, 09:56 PM
First telnet/ssh to your box, and then type:

pico /etc/httpd/conf/srm.conf



Next scroll down to the line:

DirectoryIndex index.html index.htm index.shtml home.html home.htm



And at the end of it add this:

index.cgi

So it looks like this:

DirectoryIndex index.html index.htm index.shtml home.html home.htm index.cgi

Crazy
09-12-2001, 09:58 PM
GREAT! thanks

-Crazy