Question

SSL Certificate showing on all sites.

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!


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This is the only thing in the .htaccess of the site that is showing up as the SSL cert on every other site on the server:

BEGIN WordPress

<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>

END WordPress

I’m completely stumped!

I wonder if you put something in the .htaccess of the SSL site that will redirect https for the other domains.

I did have mod_rewrite enabled as I have a bunch of Wordpress sites on this server. But when I added the rule above it didn’t change anything. I checked to make sure that the site in question had

<Directory /var/www/>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride all
		Order allow,deny
		allow from all
	</Directory>

in the VH and it does. Also checked to make sure that AllOverride All was in the default-ssl, and it was. But the rewrite rule is not redirecting to http. What could I be missing?

Thanks for the suggestions.