[ILUG] short apache question

bscanlan at irish-times.com bscanlan at irish-times.com
Fri Aug 17 12:09:37 IST 2001


Hey!

On Fri, Aug 17, 2001 at 11:47:00AM +0100, 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...)?

http://httpd.apache.org/docs/mod/mod_dir.html#directoryindex

> the cgi in question will format a html
> page and have some variables which
> will print as part of the formatted page
> without needing javascript etc (date
> and there is also a logging system
> which I may try to use).

Hmm. Are you sure you really need to use CGI for what you
want to do? Would Server Side Includes not suffice?

http://httpd.apache.org/docs/howto/ssi.html

What logging do you want to do exactly?

Most likely Apache can take care of it.

http://httpd.apache.org/docs/mod/mod_log_config.html

> 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).

You're better off using something like an Apache module
rather than CGI... 

Hope this helps. :)

Brian.
-- 
Brian Scanlan, Systems Administrator.
Irish Times New Media - http://www.ireland.com




More information about the ILUG mailing list