This site can't be reached after SSL Certificate Installation - Apache Linux

Site will display “This site can’t be reached” if using https on my website, but if I use http, its working. I’m using Apache Linux.

DocumentRoot "/var/www/html"                              
ServerAdmin webmaster@localhost                            
ErrorLog /var/log/apache2/error.log                        
CustomLog /var/log/apache2/access.log "combined"           

SSLEngine on                                               
SSLProtocol +TLSv1.1 +TLSv1.2                              
SSLCertificateFile /var/ssl/example.crt         
SSLCertificateKeyFile /var/ssl/example.key      
SSLCACertificateFile /var/ssl/

Hope someone can help me. tnx.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there,

After you installed the certificate, did you restart Apache? Make sure to run a config test before doing so:

sudo apachectl -t

Only if you get Syntax OK then try restarting Apache:

sudo systemctl restart apache2

Let me know how it goes. Regards, Bobby