From: Fergus Donohue (Fergus.Donohue at domain eolach.com)
Date: Fri 17 Aug 2001 - 12:04:27 IST
There are two things you need to do here, one is enable the cgi handler
for all .cgi files and the second is to have the server serve index.cgi
if it exists in the directory. Ok, here's a rough, untested cut....
1). CGI handler.
# If you want to use server side includes, or CGI outside
# ScriptAliased directories, uncomment the following lines.
AddHandler cgi-script .cgi
You may have to load the mod_cgi.so or recompile if you have a very
trimmed down server, you may also want to look at suexec if this feature
is to be available for shell account users.
2). To serve index.cgi
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
DirectoryIndex index.shtml index.html index.htm index.cgi
I think that should do it, let me know how you get on.
All the best,
"RYAN, SHANE(DUBLIN)" wrote:
> just wondering, if I have apache
> set up on a box, can I have index.cgi
> as the main-page to my site and
> have it execute (rather than just display
> its contents...)?
> It would be handier for me to do this
> in cgi than php or anything else (because
> I have *some* basic knowledge of
> cgi but none of php).
-- Eolach - Ireland's leading Open Source consultancy email: info at domain eolach.com web: http://www.eolach.com tel: (+353) 1 874 0510 fax: (+353) 1 874 0515 Win U2 Tickets for Slane http://www.eolach.com/draw
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:11:43 GMT