• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue centos 6.9 custom nginx settings being ignored

KazimierasS

New Pleskian
hi,
i have disabled apache support for my application and added custom directives via "Additional nginx directives"
but byt the look of it they're being ignored and i can directly go into http://blablabla.com/application/secret.php and i would expect to get denied by rule
2017/11/02 23:26:01 [error] 4712#0: *1 access forbidden by rule, client
but instead i receive 200 No direct script access allowed

Code:
[root@vps463584 conf]# pwd
/var/www/vhosts/system/blablabla.com/conf

[root@vps463584 conf]# cat vhost_nginx.conf
location / {
        try_files $uri $uri/ /index.php;
}

location ~ /__misc/(.*)\.(conf|sql|zip|gz|rar)$ {
        deny  all;
}

location ~ /system/(.*)\.php$ {
        deny  all;
}

location ~ /application/(.*)\.php$ {
        deny  all;
}

location ~ \.php$ {
        fastcgi_index  index.php;
        fastcgi_pass   unix:///var/www/vhosts/system/blablabla/php-fpm.sock;
        try_files $uri =404;


is there any way to workaround this and make it work as expected ?
 
Back
Top