Articles in this section

Preferred domain redirect does not work when Nginx is not installed in Plesk

Plesk for Linux kb: technical

Applicable to:

  • Plesk for Linux

Symptoms

  • Preferred domain is set to www.example.com in Domains > example.com > Hosting Settings > Preferred Domain, but the redirect does not occur.
  • Tools & Settings > Services Management > Reverse Proxy Server (nginx) is off.

Cause

This has been reported as bug ID PPPM-15358.

Resolution

  1. Log in to Plesk.
  2. Enable Tools & Settings > Services Management > Reverse Proxy Server (nginx)
  3. Navigate to Domains > example.com > Hosting Settings > Preferred Domain, re-select www, and click OK to regenerate the web server configuration.
  4. Verify the redirect is working by navigating to https://example.com
Was this article helpful?

Comments

2 comments
Date Votes
  • We use the “prefered domain” feature in nearly all our projects and it worked for years. This issue causes serious problems. Nginx cannot simply be enabled in any project. This also needs to be fixed for environments that exclusively use Apache.

    0
  • Martin Widemann please update to the latest release as this bug has been fixed: https://docs.plesk.com/release-notes/obsidian/change-log/?18073-mu3#plesk-18077-mu1

    Fixed an issue where, on servers without nginx installed, the “Preferred domain” hosting setting failed to take effect.(PPPM-15358)

     



     

    1

Please sign in to leave a comment.