httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [users@httpd] Disable php in userdir
Date Thu, 11 Mar 2004 16:55:49 GMT


Mario Ohnewald wrote:

>>>Hello!
>>>I want to tighten the seurity in the userdir directory, and i was
>>
>>wondering
>>
>>>how i could disable php.
>>>I played around with
>>><Directory /home/*/public_html>
>>>    RemoveHandler php php3 php4
>>>But i wasnt successful.

What EXACTLY are the path names to the files in question?  The "*" 
matches only a single path segment.

Also, how are you configuring php in the first place?  If you are using 
a magic mime type with AddType, then a RemoveHandler might not work, 
since you never explicitly added the handler in the first place.

In any case, it would seem to make more sense to use something like

<Files .php*>
Order allow,deny
Deny from all
</Files>

Joshua.

---------------------------------------------------------------------
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