I followed the instructions of these documentations meticulously:
However, my site is still unresponsive when entering the following in URL:
But the following does work:
Using HTTPS, in Firefox I get the timeout message "The connection has timed out".
I tried some troubleshooting. There is nothing in /var/log/apache2/error.log that is related to this, and since the request is never acknowledged by my site, there is nothing in its logger either.
When I run sudo netstat -tulpn, I do notice this entry:
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 3911/apache2
That makes me think apache2 is listening on 443.
So I think I need to do more than what the above instructions provided. This is what I did so far on my ubuntu server:
openssl genrsa -des3 -out server.key 1024 openssl rsa -in server.key -out server.key.insecure mv server.key server.key.secure mv server.key.insecure server.key openssl req -new -key server.key -out server.csr openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt sudo cp server.crt /etc/ssl/certs sudo cp server.key /etc/ssl/private /etc/ssl/certs $ ls -l | grep "server.crt" -rw-r--r-- 1 root root 1001 Jun 26 00:39 server.crt /etc/ssl $ sudo su ➜ ssl cd private ➜ private ls server.key ssl-cert-snakeoil.key sudo a2ensite default-ssl sudo /etc/init.d/apache2 restart
This is what my virtual host looks like:
/etc/apache2/sites-enabled $ cat mysite.com <VirtualHost *:80> ServerName mysite.com DocumentRoot /home/guarddoggps/public_html/mysite.com/current/public <Directory /home/guarddoggps/public_html/mysite.com/current/public> AllowOverride all Options -MultiViews </Directory> <LocationMatch "^/assets/.*$"> Header unset ETag FileETag None # RFC says only cache for 1 year ExpiresActive On ExpiresDefault "access plus 1 year" </LocationMatch> </VirtualHost>
Am I missing any steps?