• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Stop using default-domain for non-ssl?

Azurel

Silver Pleskian
When I have a subscription with not enabled SSL and go to https:// than its show the default-domain /var/www/vhosts/default/htdocs like http://server-ip with output "404 – Page Not Found"

How I can stop this?

Here a example. This website have no SSL https://www.golem.de and return "Error: Connection failed" in browser. Is this with plesk 12.5 possible for subscription that not have SSL enabled?
 
There is no good solution for this, because the user will probably receive a browser bad_cert_domain error and display an SSL warning before a configuration directive can influence the action. You can try to place this code in your .htaccess file in the document root of the website:

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}

This should redirect all https:// requests to http://, if users pass the bad_cert_domain error by adding an exception to their browser.
 
Thanks for your answer. I have test it with a domain that have not a valid SSL certif and add your code in "Additional directives for HTTPS". That not work for me. Nothing redirect to HTTP. Maybe here I must add this as nginx directives? But thats not possible in Plesk, because here is no SSL directive for nginx. That input is for both, http and https.
 
Last edited:
Back
Top