httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Howorth <dhowo...@mrc-lmb.cam.ac.uk>
Subject Re: [users@httpd] whatever.cgi.html
Date Tue, 21 Jul 2009 10:41:24 GMT
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message