title: How do I setup yourls URL re-director to use only HTTPS
body: <p>I have successfully installed yourls, but I want to make the site https only. How do I do that? I am running it successfully on Ubuntu 16.04, but I want to make it all HTTPS in the setup. Unfortunately, the yourls site doesn't explain how to do this at all.</p>
  
  <p>I have configured apache2...</p>
  
  <p>1.a2enmod ssl</p>
  
  <p>2.service apache2 restart</p>
  
  <p>3.mkdir /etc/apache2/ssl
  openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt</p>
  
  <p>I changed the default :80 site to redirect to 443. </p>
  
  <pre><code>&lt;VirtualHost 192.168.0.100:80&gt;
      ServerName  example.com/
      Redirect / https://example.com/
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I have changed the default-ssl to include</p>
  
  <pre><code>&lt;VirtualHost *:443&gt;
  
          ServerAdmin webmaster@example.com
  
  
          ServerAlias example.com
          ServerAlias example.com
  
          DocumentRoot "/var/www/html"
                  &lt;Directory "/var/www/html/"&gt;
                          Require all granted
                          Options FollowSymLinks
                          AllowOverride All
                          Order allow,deny
                          Allow from all
                  &lt;/Directory&gt;
  
  
          SSLEngine on
          SSLCertificateFile /etc/apache2/ssl/apache.crt
          SSLCertificateKeyFile /etc/apache2/ssl/apache.key
  
          ErrorLog ${APACHE_LOG_DIR}/error.log
          CustomLog ${APACHE_LOG_DIR}/access.log combined
  
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>and changed the url site home in /user/config.php to <a href="https://example.com" rel="nofollow noreferrer">https://example.com</a></p>
  
  <p>but yourls will not load. It redirects to https fine. but no site.</p>
  
  <p>Has anyone setup this up before? Thanks in advance for any guidance.</p>