André Warnier wrote:
> .. a Very Bad Idea
> .. compounded

No disagreement from me :)

> You could try this :
> 
>> <Directory /toplevel/data>
>>     Options -ExecCGI
>> </Directory>
> 
> but add
> 
> <Files ~ "\.cgi$">
>  SetHandler cgi-script
> </Files>
> 
> (That's assuming that all the legitimate cgi scripts do end in ".cgi",
> and it may also have security implications. Consider this as a "rough
> draft, quick and dirty" solution.)
> 
> Other than that, there might be other ways involving SetEnvIf or
> RewriteCond/RewriteRule.

Thanks for this. While I was waiting, I discovered RemoveHandler and I
found this worked:

<Directory /toplevel/data>
    Options       -ExecCGI
    RemoveHandler .cgi
</Directory>

Hopefully that fixes the immediate problem. I'll look at what
rearrangement of scripts might be possible.

Thanks again,
Dave

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [email protected]
   "   from the digest: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to