Hey since I have attempted to install SSL onto my site I am unable to restart without removing it from the config.
I am running Ubuntu Ubuntu 18.04 x64
Changes for SSL:
<VirtualHost *:443>
DocumentRoot /var/www/html
ServerName my_site_name.com -- I have the actual site name here
SSLEngine on
SSLCertificateFile /ssl-files/site_name.com.crt # I have the actual cert here
SSLCertificateKeyFile /ssl-files/site_name.key # I have the actual key name here
</VirtualHost>
However when I run this I in the conf I get
See "systemctl status apache2.service" and "journalctl -xe" for details.```
For some reason when I remove the SSL parts it works fine, I have tried purging and reinstalling apache2, with no luck.
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!
Can you post the output of the command “journalctl -xe” when this happens? It will likely contain some clues. But generally when the Apache service fails right after an SSL directive or cert change, it means two things:
The SSL cert is invalid (corrupted, cert doesn’t match the key and vice versa)
The files don’t exist or are not permissioned correctly
I’d check those two things and with the actual error from the log, I’m sure you’ll be able to figure out the culprit.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.