websavers
Regular Pleskian
After enabling HTTP/2 on a server, quick previews fail to function. This is because HTTP/2 requires a TLS channel, thus enforcing HSTS. However the Quick Preview URL does not present a matching certificate, so the TLS connection fails in most modern browsers that try to negotiate over https.
We're using quick preview on a domain. It's set up as an external domain, but it actually matches the server hostname.
There are two possible solutions to this that I can think of:
1. Plesk could include the following to disable HSTS:
add_header Strict-Transport-Security "max-age=0";
It would probably be best to wrap that in a conditional that checks to see if the request hostname contains the quick preview URL.
2. Plesk could fix this by using the right certificate
It would be great if the Website Preview feature could opt to work on the server hostname, then automatically apply the SSL certificate used to secure the panel to all preview URLs.
There's one other issue with this, and that is that the preview URL contains too many '.' chars, meaning most wildcard SSL certificates will not apply to it. I suggest a slight change in the preview URL format from this:
domain.tld.149-*-*-*.[preview_domain]
To this:
domain-tld-149-*-*-*-[preview_domain]
This way it becomes a subdomain of the hostname's primary domain, thusly applying to any wildcard certs used to secure the panel.
We're using quick preview on a domain. It's set up as an external domain, but it actually matches the server hostname.
There are two possible solutions to this that I can think of:
1. Plesk could include the following to disable HSTS:
add_header Strict-Transport-Security "max-age=0";
It would probably be best to wrap that in a conditional that checks to see if the request hostname contains the quick preview URL.
2. Plesk could fix this by using the right certificate
It would be great if the Website Preview feature could opt to work on the server hostname, then automatically apply the SSL certificate used to secure the panel to all preview URLs.
There's one other issue with this, and that is that the preview URL contains too many '.' chars, meaning most wildcard SSL certificates will not apply to it. I suggest a slight change in the preview URL format from this:
domain.tld.149-*-*-*.[preview_domain]
To this:
domain-tld-149-*-*-*-[preview_domain]
This way it becomes a subdomain of the hostname's primary domain, thusly applying to any wildcard certs used to secure the panel.