Plesk for Linux
kb: technical
ABT: Group A
Applicable to:
- Plesk for Linux
Symptoms
-
A website has been migrated to Plesk from a legacy Plesk version.
-
When opening this website in a web-browser, it loads the real content over HTTP, but different over HTTPS. For HTTPS, it also can be a Plesk default page or Apache test page.
-
Opening other pages of the website over HTTPS result in "404 Not Found" or "403 Forbidden".
Cause
The domain is running in "Separate SSL/TLS and non-SSL/TLS content" compatibility mode.
Domains in Plesk 11 and earlier releases had their content stored in separate directories for HTTP and HTTPS:
-
/var/www/vhosts/example.com/httpdocs
- for HTTP content -
/var/www/vhosts/example.com/httpsdocs
- for HTTPS content
Resolution
-
Connect to the Plesk server via SSH.
-
Disable the compatibility mode in the Plesk database:
# plesk db "UPDATE hosting set same_ssl='true' WHERE same_ssl='false';"
-
Repair web-server configuration:
# plesk repair web -y
Comments
1 comment
This option is not available anymore in newer Plesk versions. How can I still resolve this for a customer on a server?
Please sign in to leave a comment.