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

Issue HSTS issue with www forward

klowet

Basic Pleskian
Server operating system version
Debian 11
Plesk version and microupdate number
18.0.46
Hi

I have a question / problem with the SSL-IT HSTS implementation. When I test the hosted websites on ssllabs.com, then the result is that HSTS is not configured and OCSP stapling is not active. When I test on hstpreload.org, I get two errors:

Code:
Error: No HSTS header

Response error: No HSTS header is present on the response.

Error: HTTP redirects to www first

`http://example.com` (HTTP) should immediately redirect to `https://example.com` (HTTPS) before adding the www subdomain. Right now, the first redirect is to `https://www.example.com`. The extra redirect is required to ensure that any browser which supports HSTS will record the HSTS entry for the top level domain, not just the subdomain.

1662038180342.png
 
Please check your domain with the following command:

Code:
# curl -s -D- https://domain.com | grep -i Strict
strict-transport-security: max-age=63072000; includeSubDomains

If you see the same output, that means HSTS is really enabled for your domain.
 
There is no output.
Without strict: 301 Moved Permanently. And a location header to forward to the domain including www.
 
Back
Top