// Apache
<Directory /website/attachments> php_flag engine off </Directory>// Nginx
location /sites/default/files/ {
location ~ .*\.(php)?$
{
deny all;
}
}
<Directory /website/attachments> php_flag engine off </Directory>// Nginx
location /sites/default/files/ {
location ~ .*\.(php)?$
{
deny all;
}
}
No comments:
Post a Comment