• 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.

Question nginx returns 404 on URLs with trailing slash

surfgatinho

New Pleskian
I have looked into this and couldn't find a solution that dealt with wildcard urls followed by trailing slash, was Plesk specific or that I could understand.

Basically I have a few sites that have a directory style structure for locations. E.g. /europe/paris/france/ and that trailing slash is at all levels.
This works fine until I enable "Smart static files processing" on the Domains > Apache & nginx Settings page.

Once I do this I get a nginx 404 on any page with a trailing slash.

This issue affects both bespoke code and some Wordpress sites I run.

Any ideas how I can override this behaviour?

Many thanks,
Chris
 
Back
Top