I am trying to enable reverse proxying as detailed int this tutorial:
When I use curl to access the mini Flask app created in this tutorial on port 8080, I can do it perfectly fine with curl http://127.0.0.1:8080. However, if I use http://mydomain.com:8080, I get a connection refused error.
I have tried disabling ufw with sudo ufw disable. I’ve disabled iptables. I have no firewall running from the web-based control panel. If I run netstat -plan, I can see that 127.0.0.1:8080 is marked as “LISTEN”.
If I use nmap -sS -O 127.0.0.1, I can see that port 8080 is my proxy. However, if I use nmap -sS -O mydomain.com, I do not see 8080 at all.
What am I missing? How do I open 8080?
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!
Hello, @fadecomic
Yes port 8080 needs to be added in the Apache configuration file in order to set this up, changing it from the default which is 80. Another thing to have in mind is to make sure the port itself is not closed from the Firewall as well.
Regards, Alex
Where is your DNS Hosted? If you’re using a proxy provider like cloudflare, and have the orange cloud enabled, it will only proxy port 80 and 443 traffic.
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.