Question

Problem with Installing SSL on Ubuntu 14.04

Posted August 26, 2015 3.5k views
Ubuntu Apache Security DigitalOcean Articles

Hi, I’m trying to install ssl on my ubuntu 14.04 apache2 droplet using this tutorial:
https://www.digitalocean.com/community/tutorials/how-to-install-an-ssl-certificate-from-a-commercial-certificate-authority

I have downloaded all files from godaddy and uploaded them in etc/ssl and my
apache2/sites-available is exactly like tutorial:

<VirtualHost *:80>
ServerName xxxxxx.com
Redirect permanent / https://xxxxxx.com/
</VirtualHost>

<VirtualHost *:443>
ServerName xxxxxx.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
SSLEngine on
SSLCertificateFile /etc/ssl/xxxxxx.com.crt
SSLCertificateKeyFile /etc/ssl/xxxxxx.com.key
SSLCACertificateFile /etc/ssl/intermediate.crt   

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined 
</VirtualHost>

But when I go to to my website i get “This webpage has a redirect loop” message on chrome!

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.

1 answer

Hey, I don’t know much about ssl,
But I want to say You can not get any solution until 7days from here.
I’m also harass nobody here to help except confusing you.

  • @zafarmd if you got something not working, and aren’t giving a proper explenation thats not the fault of the community. The community is here to help you out as much as possible, you shouldn’t get angry about that.

    I am not sure if it will work for your setup, each apache environment could use a different configuration. But try this for the rewriting:

    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    
  • even when I remove the VH *80 my https does not work and it redirects me to the normal http page. I don’t see that green lock. How can I know what is the problem I looked at apache error log and nothing is there

Submit an Answer