Cannot access my site from http, https or ip

April 6, 2014 2.4k views
Hi, I was followed this tutorial to set up ssl: https://www.digitalocean.com/community/articles/how-to-create-a-ssl-certificate-on-apache-for-ubuntu-12-04 Then followed this one to sign my certificate: https://fang.ws/blog/wp-content/cache/page_enhanced/fang.ws//blog/how-to-install-ssl-certificate-apache-ubuntu/_index.html In my SSL config I have: SSLEngine on SSLCertificateFile /etc/apache2/ssl/sitename_com.crt SSLCertificateKeyFile /etc/var/www/private.key SSLCertificateChainFile /etc/apache2/ssl/sitename_com.ca-bundle Now I am unable to access my site via https://, http and the ip address. When I do sudo service apache2 start I get: apache2: Could not reliably determine the server's fully qualified domain name, using affirium.com for ServerName Action 'start' failed. The Apache error log may have more information. I am using Ubuntu 12.04 What could cause this? Thanks
1 Answer
Check your /etc/hosts. xxx.xxx. is your ip address:

sudo nano /etc/hosts
========================================== localhost.localdomain localhost
xxx.xxx.xxx.xxx yourdomain.com
Have another answer? Share your knowledge.