I am not even sure if this is possible, what I am trying to accomplish, but I ask the Gurus anyways. I have a VPS on which I plan to host a few Wordpress sites (please no bashing of Wordpress, gggg). Instead of placing htaccess files in each /home/www/user/wp-content/uploads folder, and since wordpress can be in it's own subdirectory, I was wondering, if there is a regex solution I could put into the httpd.conf that would prevent any kind of script execution on any folder named "uploads" ? I hope this made some sense. Any help is greatly appreciated.
Why not just change the file permissions to not allow script executions? I'm assuming you're doing this as a security step Depends on your web server config, but you should be able to set the permissions to 644 using chmod and that will stop execution but keep them readable (again, it might not work as it depends on the specific config of your webserver)
And how, exactly, is that going to prevent a php or javascript from running? Scriptprevention, not "running files on the server" - anything in those folders, be it html,js, php or other web-server parseable code will still run at the level the webserver is running.