Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
</LocationMatch>
share|improve this question

1 Answer 1

Try removing Match from the directive and changing to php_value.

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

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

share|improve this answer

Your Answer

 
discard

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.