setup SSL for ubuntu

  1. open you default-ssl.conf file and paste this code (inside VirtualHost *:443)
  2. <Directory /var/www/html> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all Require all granted </Directory>

your default-ssl.conf should like this:

<IfModule mod_ssl.c>
        <VirtualHost *:443>
                ServerAdmin webmaster@localhost
                ServerName zumidia.com:443
                DocumentRoot /var/www/html
        <Directory /var/www/html>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
                        Require all granted
        </Directory>

..... REST OF THE FILE CODE .....

Save the fie and exit editor

  1. disable site like: a2dissite default-ssl.conf
  2. Restart apache like: service apache2 reload
  3. Now enable site like: a2ensite default-ssl.conf 5 Restart apache again like: service apache2 reload

About Damon Luong

San Jose, California
This entry was posted in ubuntu. Bookmark the permalink.