I want to disable php in a specific directory on my server. I thought that setting Options -ExecCGI in httpd.conf would prevent php scripts from being executed, but obviously I am 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 being executed in a specific folder? Can in be done in httpd.conf or do I have to use a .htaccess file?