• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Additional nginx directives

pintalabios

New Pleskian
Hi

I have a plesk 12.5 on CentOS 6.7 (Final)

FPM application served by nginx is active on domain

I'm trying to set rules for nginx on Additional nginx directives field but is not working

I want to block php execution on uploads folder for security

I tried some diferents rules

location ~* ^/img/.*.(php|js|swf)$ {
types { }
default_type text/plain;
}

and this

location /img/*{
location ~ .php$ { deny all; } }

and some more, but none of these rules are working

no errors in applying the rule, but not working

i tried too server{ } http{ } and gave errors

What rules can apply in Additional nginx directives field?

How I can block with nginx php in a directory?

Thanks
 
Back
Top