I am attempting to disable php in a directory and it is not working. Can anyone please show me the error of my ways as this "should work"!?
.htaccess
php_flag engine off
deny from all
<Files ~ "^[a-zA-Z0-9_-]+\.(gif|jpe?g|png|xls|docx?|pdf)$">
order deny,allow
allow from all
</Files>
This is plesk 11.09 #28 on Centos 5.8
nginx reverse proxy to apache running mod_php (doesn't work with FastCGI either)
Any help is greatly appreciated as I have tried everything to get this to work. The basic idea is that I have a directory where uploaded files are copied (yes, i know i should be performing better validation, filtering - this is coming, in the mean time i need to ensure no PHP can be served).
.htaccess
php_flag engine off
deny from all
<Files ~ "^[a-zA-Z0-9_-]+\.(gif|jpe?g|png|xls|docx?|pdf)$">
order deny,allow
allow from all
</Files>
This is plesk 11.09 #28 on Centos 5.8
nginx reverse proxy to apache running mod_php (doesn't work with FastCGI either)
Any help is greatly appreciated as I have tried everything to get this to work. The basic idea is that I have a directory where uploaded files are copied (yes, i know i should be performing better validation, filtering - this is coming, in the mean time i need to ensure no PHP can be served).