make site https enabled with new ssl certificates

November 23, 2014 636 views

ok, please bear with me . question can be stupid.

the droplet enabled. ubuntu 14.04 lts.

i have the domain.( naturalgassupplydata.com) pointed to the droplet.

apache is default configuration.

i nano'ed /etc/host file and the setup is default. only local host. (

i checked sites-enabled , only 000-enabled.conf, local host port 443

I went through the SSL process and bought a certificate from godaddy. i have the certificates and will place them at the location /etc/apache2/ssl

now the main question ;

do i need to setup a name based virtual host for naturalgassupplydata.com

or will the default configuration do /var/www/html



1 Answer

That depends on where the default-ssl config points.

You need to enable the default-ssl virtualhost and make sure it has the ServerName set correctly and is pointing to the correct document root.

What are the contents of /etc/apache2/sites-available/default-ssl ?

Have another answer? Share your knowledge.