• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue nginx directives being ignored

nate

Basic Pleskian
Hi,

We've recently updated to version 18.0.25 and for one domain have turned off 'Proxy Mode' so the site is being served by nginx but it seems to be ignoring all additional directives we add. We've tried this on another Plesk server running 18.0.24 which seems to work and can't figure why it's not working (the configs are the same).

Any suggestions?

Thanks
 
Thanks, unfortunately that still doesn't seem to have worked:
Error messages: 0; Warnings: 0; Errors resolved: 0

nginx directive:
location /test {
proxy_pass https://www.google.com;
}

Retults in 404
 
I have the same problem:
location blocks are ignored.

For instance this one is ignored in additional nginx directives with proxy mode off

Code:
location ~ ^/page/[0-9]+/? {
    return 404;
}

Everytime I want to set a locatin block it does not work.

After unchecking Proxy mode, in Apache & nginx Settings > Additional nginx directives,
can someone add the following code and check if it returns a 403 when you go to Best Website Builder Online | Yoursite ?

Code:
location /page321/ {
    deny all;
}

Do you see a 403 error?
 
Last edited:
Back
Top