I want to disable php in a directory on my server. I thought setting the -ExecCGI options to httpd.conf would prevent php scripts from executing, but obviously I'm wrong.
So this is what I have in my httpd.conf, which obviously does not work:
<Directory "C:/xampp/htdocs/(path_to_directory)/dirname">
Options -ExecCGI
AllowOverride None
</Directory>
The question is, how can I prevent php scripts from executing in a specific folder? Could it be done in httpd.conf or do I need to use a .htaccess file?
source
share