• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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