I had to set up a Wikimedia Wiki once, and it needs the same feature for certain directories for security reasons. I had to put the following lines in the virtual host container in my httpd.conf:
Code:
<IfModule !mod_php4.c>
<Files ~ '.php$'>
Order allow,deny
Deny from all
Allow from none
</Files>
<Files ~ '.phps'>
Order deny,allow
Allow from all
</Files>
</IfModule>
That's for Apche 1.3 and PHP4. If you use Apache 2.0, use
Code:
<IfModule !sapi_apache2.c>
instead of
Code:
<IfModule !mod_php4.c>
And don't forget to restart your Apache!
jojo
Recent comments
19 hours 35 min ago
22 hours 31 min ago
23 hours 44 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 4 hours ago
1 day 5 hours ago
1 day 21 hours ago
1 day 22 hours ago
2 days 2 hours ago