Disable execution of php-scripts to subdirectories of a virtual host in Apache

0 like 0 dislike
5 views
Poskazhite, please, what to write in your Apache configuration to certain directories of the virtual host was not running php scripts. PHP connected via mod_php5.
by | 5 views

5 Answers

0 like 0 dislike
Then try to .htaccess to register
by
0 like 0 dislike
habrahabr.ru/blogs/php/61842/
Then described and comments are sensible
by
0 like 0 dislike
The first thing that comes to mind .htaccess in the directory with approximately such content
\r
Order Allow,Deny
Deny from all
\r
\r
by
0 like 0 dislike
RemoveHandler .php
AddType text/html .php
by
0 like 0 dislike
All of the above right, but there is one thing: If the internal directory will lie another .htaccess, but it will override the external, careful with that.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Apr 9, 2019 by KuzmenkoArtem
0 like 0 dislike
5 answers
110,608 questions
257,186 answers
0 comments
1,120 users