Page Not Found - All https requests

Posted September 2, 2013 7.5k 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.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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"
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/'s first virtualhost's config in the same file and setting it up to work with SSL:
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;//

Please pastebin all of your virtualhost config files.
Submit an Answer