Symptoms
-
Domain example.com was created in Plesk 11 or earlier then migrated to a new supported Plesk version;
-
Opening the website via HTTPS returns Plesk Default Page while HTTP returns actual website content;
-
Run the website in compatibility mode for the legacy option “Separate SSL/TLS and non-SSL/TLS content” option is enabled in Domains > example.com > Hosting Settings:
Cause
The domain is running in “Separate SSL/TLS and non-SSL/TLS content” compatibility mode.
Domains in Plesk 11 and earlier used to store HTTP and HTTPS content in separate directories:
-
/var/www/vhosts/example.com/httpdocs
– HTTP content -
/var/www/vhosts/example.com/httpsdocs
– HTTPS content
The HTTPS directory contains only the Plesk Default Page files, which is why it is shown when accessing https://example.com
Resolution
Apply one of the following 2 options:
-
Disable the Run the website in compatibility mode for the legacy option “Separate SSL/TLS and non-SSL/TLS content” option in Domains > example.com > Hosting Settings
Note: It will not be possible to turn it back on. Consider a different solution if you are planning to keep different versions of the website for HTTP and HTTPS.
-
Or copy the files from
/var/www/vhosts/example.com/httpdocs
directory to/var/www/vhosts/example.com/httpsdocs