php - apache disable script execution access in sub foldersGet the solution ↓↓↓
How do you configure apache vhost to disallow execution for files under a particular location?
e.g. for the folder
/var/www/some/path/to/script/ I want
/var/www/some/path/to/script/somescript.php to be able to execute, but
/var/www/some/path/to/script/somefoldername/foobar.php to forbidden.
(I would not know
somefoldername ahead of time)
I'd also like to prevent any
.htaccess files from executing in subfolders of
/var/www/some/path/to/script/.htaccess WOULD apply, while
/var/www/some/path/to/script/somefolder/sub/folder/.htaccess to forbidden.
Share solution ↓
Link To Answer People are also looking for solutions of the problem: a non well formed numeric value encountered
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.