View Single Post

  #3 (permalink)  
Old 08-14-2003
rach
 
Posts: n/a
Default Re: Trying to make CGI work from anywhere


"Wes Groleau" <groleau@freeshell.org> wrote in message
news:VdednWMnXKQnOqaiU-KYgw@gbronline.com...
> rach wrote:
> > Have you added this to your directory statement?
> >
> > Options Indexes +ExecCGI

>
> No, I haven't. Not sure what it means.
> I know I don't want indexes on--I prefer
> to explicitly offer selected files.
>
> The second one is required for any directory
> that contains a script?
>
> I'll try it. Security risks?
> (None here, since port 80 is blocked
> to the outside, but I'd still like to know)


Yes, that was a typo, I meant to remove indexes from that line but neglected
to. And I forgot to mention the add handler. So do it like:

Options +ExecCGI
AddHandler cgi-script cgi pl

This will then allow cgi to be executed in any folder as long as the files
are chmod a+x.

Rach