By popescuaf
Hi,
Recently I attached a new domain to my droplet (currently there are two attached). Since then, I cannot reach my droplet through HTTP requests on port 80, the result is always 404 not found.
I tried everything: rules in iptables, setup a firewall in digital ocean UI with enabling rule for HTTP/S.
I tried with nginx, python SimpleHTTPServer module, none of them are reachable.
I cannot tell if the problem arose due to my new domain or not (which BTW has A, CNAME and NS entries), but the SSH(22), K3S(6443) and TCP(8000) ports work, the latter two after I added a rule for them in iptables and firewall.
Probably there’s something wrong with my setup (and not DO’s fault), but this is getting really frustrating because it completely blocks me (cannot create new certificates, cannot test, etc.).
Does anyone have any idea what could have gone wrong? The system inside the droplet is Ubuntu 18.04.1LTS, Linux 4.15.0-88-generic #88-Ubuntu SMP Tue Feb 11 20:11:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux.
Thank you! Alex
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!
Hi @popescuaf,
The 404 error is related to your website’s vhost configuration rather than your firewall. If you couldn’t open your website via port 80 or 443 you’ve get a connection refused error rather than 404.
Having said that, please make sure to check your vhost configuration and configure it properly. Depending on the WebService you are using, either Nginx or Apache, you can check the following articles how to configure a vhost file
Regards, KDSys
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.