Correction to guide SSL Certificates with Apache on Debian & Ubuntu

In the guide SSL Certificates with Apache on Debian & Ubuntu, after the line:

a2enmod ssl

I had to also:

a2ensite default-ssl.conf

in order to get the website to work via https. I'm not sure if this is the right place for corrections like this or not or even if this was already widely known.

3 Replies

You only need to do that if you put your virtualhost config in default-ssl.conf instead of the file you were using before in step 1 of that guide.

  • Les

Yeah ideally you would have your virtualhost in a file of its own like````
/etc/apache2/sites-available/example.com.conf

Then you would do````
a2ensite example.com

Here is a nice guide

https://www.linode.com/docs/security/ss … ian-ubuntu">https://www.linode.com/docs/security/ssl/ssl-apache2-debian-ubuntu

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct