Question

Page Not Found - All https requests

  • Posted September 2, 2013

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.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Please pastebin all of your virtualhost config files.

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. <br> <br>

Did you set up SSL/HTTPS on your droplet? <br> <br>I recommend duplicating <code>/etc/apache2/sites-enabled/yourdomain.com</code>'s first virtualhost’s config in the same file and setting it up to work with SSL: <br> <br>https://www.digitalocean.com/community/articles/how-to-create-a-ssl-certificate-on-apache-for-ubuntu-12-04

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 <br> <br>Is there an article somewhere on properly setting up Apache to use HTTPS?

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) <br> <br><pre>sudo netstat -plutn | grep :443</pre>

Does this help? I thought 443 allow would be okay? ah - so much to learn :) <br> <br>ufw status <br>Status: active <br> <br>To Action From <br>-- ------ ---- <br>22/tcp ALLOW Anywhere <br>80 ALLOW Anywhere <br>3306 ALLOW Anywhere <br>22 ALLOW Anywhere <br>21 ALLOW Anywhere <br>443 ALLOW Anywhere <br>22/tcp ALLOW Anywhere (v6) <br>80 ALLOW Anywhere (v6) <br>3306 ALLOW Anywhere (v6) <br>22 ALLOW Anywhere (v6) <br>21 ALLOW Anywhere (v6) <br>443 ALLOW Anywhere (v6)

I believe it’s because of the firewall. What’s the output of <code>sudo ufw status</code>?

“Firefox can’t establish a connection to the server at www.tuxreports.com.”

Do they return a page not found (404) error or does it simply not load at all?