Page Not Found - All https requests

September 2, 2013 3.3k views
Hi, I've installed ufw and fail2ban and now notice that all https connections return a page not found. This may or not be related to the install of the ufw or fail2ban because I just noticed it. Is there a way to get https working properly? Is there an article already written? DO droplet ubuntu, 4 GB, 60 GB SSD.
9 Answers
Do they return a page not found (404) error or does it simply not load at all?
"Firefox can't establish a connection to the server at www.tuxreports.com."
I believe it's because of the firewall. What's the output of sudo ufw status?
Does this help? I thought 443 allow would be okay? ah - so much to learn :)

ufw status
Status: active

To Action From
-- ------ ----
22/tcp ALLOW Anywhere
80 ALLOW Anywhere
3306 ALLOW Anywhere
22 ALLOW Anywhere
21 ALLOW Anywhere
443 ALLOW Anywhere
22/tcp ALLOW Anywhere (v6)
80 ALLOW Anywhere (v6)
3306 ALLOW Anywhere (v6)
22 ALLOW Anywhere (v6)
21 ALLOW Anywhere (v6)
443 ALLOW Anywhere (v6)
Your firewall setup should work. Apparently there isn't anything listening on port 443. What's the output of this command? (it lists all processes listening on port 443)

sudo netstat -plutn | grep :443
This is going to read like a really silly question - but I'm learning - shouldn't there be a virtual host file somewhere for HTTPS? I only have the one for wordpress ... /home/wordpress/publilc_html

Is there an article somewhere on properly setting up Apache to use HTTPS?
Did you set up SSL/HTTPS on your droplet?

I recommend duplicating /etc/apache2/sites-enabled/yourdomain.com's first virtualhost's config in the same file and setting it up to work with SSL:

https://www.digitalocean.com/community/articles/how-to-create-a-ssl-certificate-on-apache-for-ubuntu-12-04
by Etel Sverdlov
This tutorial explains how to create a self-signed SSL certificate, how to add it to your server, and how to configure the SSL file to display the certificate to the world. A SSL certificate is a way to encrypt a site's information and create a more secure connection. Certificate Authorities can issue SSL certificates that verify the server's details while a self-signed certificate has no 3rd party corroboration. This tutorial is written for Apache on an Ubuntu server.
Thank you for the suggestion. I followed the steps, except copying the one virtual host below and changing the port to 443. Now the site just spins and never loads when trying https;//www.tuxreports.com.

Please pastebin all of your virtualhost config files.
Have another answer? Share your knowledge.