Answer the question
In order to leave comments, you need to log in
Disable php script execution for Apache virtual host subdirectories
Please tell me what to write in the Apache config so that php scripts are not executed in certain directories of the virtual host. PHP is enabled via mod_php5.
Answer the question
In order to leave comments, you need to log in
habrahabr.ru/blogs/php/61842/
Here it is described and there are sensible comments
The first thing that comes to mind is .htaccess to a directory with something like this
<FilesMatch ".(php) $">
Order Allow,Deny
Deny from all
</FilesMatch>
Everything above is correct, only there is one point: If there is another .htaccess in the internal directory, but it will override the external one, be careful with this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question