• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

Completely disable SSL for domains

kenneth-vkd

Basic Pleskian
Hi
In our hosting environment we are getting bad hits on SEO as many sites were allowing HTTPS connections with an invalid certificate (Plesk default self-signed) and have now disabled SSL support.
However if we now try to visit https://domain.tld it shows the default server page.
http://domain.tld still works fine and shows the correct website.

Is there a way for us to completely disable SSL unless it has been enabled for the specific domain, so that the server just refuses the connection when no SSL vhost is enabled?
 
This will of course handle the redirection, but we will still get the certificate warning or is Plesk/Apache smart enough to handle this?
 
Try to do it with something like this:

# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/domain -u $i -ssl false; done
 
Sorry for my late reply to this.
The suggested solutions fix the problem in #2 fixes the issue, but the user first has to click past the certificate warning.
The solution in #4 just bulk disables SSL, but does not fix the actual issue.

It must be possible to have Plesk completely deny https access if SSL support is disabled for the given domain, even in situations where we run with shared IP.
 
I've tried solution #2 by Alvin_Allen by inserting his code in /var/www/vhosts/default/htdocs/.htaccess and it works but indeed the issue remain of being asked about the invalid certificate.

I'm wondering if that is the correct place to put such a hack: We have nginx acting as a proxy in front of Apache, so a similar solution should probably be applied at the nginx level. I guess, but I don't know how, and I'm not even sure we wouldn't be asked about the invalid certificate as well... :rolleyes: so.... just a speculation...

BTW, I've just tried to access an handful of well known sites that I know for sure are not using https with a valid certificate: all of them ask for a confirmation about the invalid certificate and if granted they serve through https, with the invalid certificate.

Redirecting https -> http is probably not a good idea...

Edit: Giving a 400 (or 501...) could be an alternative solution...

Edit 2: But at the end of the day the best solution (obviously beside correctly implementing https with a valid certificate) would probably be to do what all others are doing and just enable https even if you don't have a valid certificate.
 
Last edited:
Back
Top