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: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx