I installed Let’s Encrypt per the following tutorial:
Works to require a redirect to https but I can no longer reach the index.html web page or any other page on the site. I deleted the lines added by let’s encrypt to the .conf file for my site and now the site is reachable. I was trying to setup a password protection of the site per the following tutorial:
But instead of receiving a prompt for a username and password, I just received the following message in Google Chrome (and also could not reach pages in IE):
Not Found
The requested URL / was not found on this server.
Apache/2.4.18 (Ubuntu) Server at mysitename.com Port 443
the “mysitename.com” is just edited to not include my actual domain.
Any suggestions will be appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
The Let’s Encrypt install shouldn’t mess with the listeners, but if the configuration was a bit off to begin with, then the wizard sometimes does strange things.
Run this command to list which configuration files Apache is using:
sudo apache2ctl -S
And then post each configuration file it lists and /etc/apache2/apache.conf
But the line you’ve posted says that Apache is only listening on 443
with IPv6.
Use the </>
button in the comment editor to insert console output, which doesn’t lose it’s formatting.
Did you check if HTTPS worked before redirecting? If not, then it could just be your firewall.
sudo ufw status
But without seeing your VirtualHost configurations (both), then it’s difficult to know the exact problem. Post them and hide your domain if you don’t want to share it.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.