[101140] in RedHat Linux List
RE: Activation of scripts on the web server
daemon@ATHENA.MIT.EDU (Charles Galpin)
Tue Nov 24 20:29:41 1998
Date: Tue, 24 Nov 1998 20:26:45 -0500
From: Charles Galpin <cgalpin@lighthouse-software.com>
To: "redhat-list@redhat.com"@smtp3.erols.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Oops, wrong key. I might have accidently sent an unfinished reply to this.
Yes, you need to make the script executable first.
Also, you will need a line like the following in srm.conf to tell apache
that the directory contains scripts:
ScriptAlias /cgi-bin/ /home/aromes/public_html/cgi-bin
and restart the server.
so an URL like http://localhost/cgi-bin/query.pl will run the script
/home/aromes/public_html/cgi-bin/query.pl
scripts can also be identified by extension (and be in any directory) with
the AddHandler directive. There are examples for both of these in the *.conf
files.
hth
charles
===== Original Message from redhat-list@redhat.com at 11/24/98 10:27 pm
>Hi,
>Another question about using CGI with my apache web server.
>I think it's not a question of putting a CGI-script in /cgi-bin directory.
>I should activate it also. Does "activate it" just mean to give it
>executable permissions?? What could "activate a cgi script" also means??
>
>Thanks
-- Charles Galpin <cgalpin@lighthouse-software.com>
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.