Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have about 200 wordpress installations on my server. i want to disable script execution in /uploads folders. i have written this rule in apache global configuration but its not working. is there anything else i should do to accomplish this task? i dont want any scripts to run in uploads folder, and in any subfolder in it.

<LocationMatch "/wp-content/uploads">
php_flag engine off
share|improve this question

Try removing Match from the directive and changing to php_value.

<LocationMatch "/wp-content/uploads">
    php_value engine off

You could also set this in .htaccess to make it more clear.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.