httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rich Bowen <rbo...@rcbowen.com>
Subject Re: Disable multiple file extension support?
Date Mon, 29 May 2006 13:07:29 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Ionescu wrote:
> Rich Bowen wrote:
>> Joshua Slive wrote:
>>> <FilesMatch \.php$>
>>> SetHandler php-script
>>> </FilesMatch>
>>> (in place of any other method of activating php)
> [...]
>> That only works if you happen to be the server administrator. If,
>> however, you are renting web space from someone who has php enabled
>> globally (this appears to be the normal Drupal user) that's not going to
>> solve anything.
> 
> And what about
> 
> RemoveHandler .php
> <FilesMatch \.php$>
> SetHandler php-script
> </FilesMatch>
> 
> That works at least for me while something.php.bar displays now as
> text/plain.

Note that the php example was only one of many possible examples. Any
solution will also need to cover .pl .cgi. .py .sh and on and on and on.
Solutions that only address .php aren't really solutions. I just used
that as an example.

- --Rich
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEevIQXP03+sx4yJMRAqhJAKDFvvjYe2OAsJ6Ml4JphIpnAaTsPgCg9IOY
rzJ/wouj9bKMZpUwHanfIps=
=UUQK
-----END PGP SIGNATURE-----


Mime
View raw message