|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
What is the recommended procedure to allow/disallow PHP files to run in certain directories?
I have successfully implemented this like this in httpd.conf: # PHP not allowed by default <Files *.php> order allow, deny deny from all </Files> # PHP allowed in /php <Directory /home/httpd/html/php> <Files *.php> order allow, deny allow from all </Files> </Directory> Are there other ways of doing this? Or should I be happy with my solution? -Bjarte- [Edited by Bjarte on 03-16-2001 at 04:36 AM] |
|
#2
|
|||
|
|||
|
>> should I be happy with my solution?
Yes. You may also want to change it to: <FilesMatch "\.php$"> order deny, allow deny from all </FilesMatch> |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Allow PHP based on directories |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|