Hi, I'm trying to figure out why my Apache2 serves up my web page using https but not regular http. I verified that Apache is listening on 80 as well as 443, that I have an active DNS record in my Linode Manager, and that reverse DNS is setup as well.
The default virtual host in sites-available directory has a correct entry for document root setting. I have three files in sites-available:
Code:
default default-ssl laftechsecure.net
laftechsecure.net is the site I am trying to get up and running. I noticed earlier that default and default-ssl had the default /var/www entries for document root so I went ahead and changed those to the correct value and restarted Apache using:
Code:
sudo service apache2 restart
but still have the same problem. I also noticed that all of the directories under sites-available had become owned by root (I have a bad habit of doing things under root) and I was pretty sure they were owned by my user account earlier so I ran:
chown -R steve:steve sites-available
And just to straighten out any potential problems with permissions, I ran chmod 775 on these directories and re-ran chmod a+rx on my home directory and chmod -R a+rx ~/public (on the directory hosting my web files per Linode instructions).
And of course, I'm still having the same problem! So once again I turn to you good people. Please, can anyone point me in the right direction? Thanks.
Edit: The site that is working is https://www.laftechsecure.net
Site that is not working is http://www.laftechsecure.net (same site just standard http).
In case it may help, here is my conf for laftechsecure.net. Please let me know if you need any other files:
Code:
# domain: example.com
# public: /home/example_user/public/example.com/
<VirtualHost 198.58.111.161:443>
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/www.laftechsecure.net.crt
SSLCertificateKeyFile /etc/apache2/ssl/www.laftechsecure.net.key
SSLCACertificateFile /etc/apache2/ssl/ca.txt
# SSLCACertificateFile /etc/apache2/ssl/positivessl.cer
ServerAdmin webmaster@laftechsecure.net
ServerName www.laftechsecure.net
DocumentRoot /home/steve/public/laftechsecure.net/public
ErrorLog /home/steve/public/laftechsecure.net/log/error.log
CustomLog /home/steve/public/laftechsecure.net/log/access.log combined
</VirtualHost>