By Steve Lack
I installed a couple of self-signed SSL certificates following a tutorial on DO. They are working fine but there are other sites on the same droplet that do not have SSL certificates assigned to them. If you visit one of these site via https:// you get the browser warning and when you click on technical details it says the certificate is issued for one of the sites I set up an SSL cert for. How can I set it up so that the default is no SSL for sites that don’t have a cert? What have I set up incorrectly that the first cert installed on the server is showing for all domains on the server?
The droplet is Ubuntu 12.04
Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
probably the fastest easiest solution is to enable mod_rewrite for your sites,
https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_rewrite
and then add this to the .htaccess for each site:
#force http
RewriteEngine On
RewriteCond %{SERVER_PORT} 443
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
if someone types in https for your site, that should redirect them to http
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.