PDA

View Full Version : How do I use "index.cgi" as my main page?


jjr512
11-12-2000, 06:55 PM
According to information at AOTA, avaiable through FutureQuest's Resources page (http://www.aota.net/HTML/homepage.php3), I should be able to use a file named "index.cgi" as my main page (instead of "index.html"). However, CGI files are required to be in the cgi-bin directory. Even so, since the above-referenced info said I could do it, I gave it a try. But "index.cgi" in the www directory only gave a 500 error (Internal server error - Page cannot be displayed).

I know the file works, because if it's in the cgi-bin directory, it works fine.

So, my question is, how can I arrange for a CGI file to be the file that loads if someone only types in my URL (www.jjr512.com (http://www.jjr512.com)), without specifying the file (without the user having to type in www.jjr512.com/index.cgi) (http://www.jjr512.com/index.cgi))?
------------------
Justin J. "JJR512" Rebbert
JJR512.com (http://www.jjr512.com/)
ICQ: 52675695

Justin
11-12-2000, 09:12 PM
index.cgi will need to be in a CGI enabled directory (eg, within your cgi-bin). Another option might be to use index.shtml, and include the CGI script output...

------------------
Justin Nelson
FutureQuest (http://www.FutureQuest.net/index.php) Support

jjr512
11-12-2000, 10:08 PM
So then it would appear the information in the link I used above is incorrect. This is information meant to be helpful to FutureQuest subscribers.

Can you please point me in the direction of a good tutorial on SHTML? I have absolutely no idea what it is. Thanks!
------------------
Justin J. "JJR512" Rebbert
JJR512.com (http://www.jjr512.com/)
ICQ: 52675695

Justin
11-13-2000, 05:58 AM
My previous post was incorrect, index.cgi will in fact work in your /www/ tree. I wasn't aware of this before now, and 'index.cgi' is treated differently. No other CGI can run (with the default configuration) in your /www/ tree, but an 'index.cgi' is in fact allowed.

Make sure you have correct permissions on the file (must be executable, eg mode 755), and make sure the script was uploaded in ASCII mode.

Also make sure you do not have an 'index.html' or any other 'index.*' files in the directory, otherwise the server may see that first...

------------------
Justin Nelson
FutureQuest (http://www.FutureQuest.net/index.php) Support
[This message has been edited by Justin (edited 11-14-00@01:30 am)]