I cannot access my public ip via Nginx
I really need your help! i’m on the brink of losing my mind…
So after a few solid weeks of work i was able to get my flask app running and everything setup using Nginx / Gunicorn etc…everything looked really good and pretty much optimized to the way i wanted it…
Until a few hours ago i started playing around with my ufw settings to see where i could improve by cutting out access to unnecessary ports… low and behold i accidentally copied the sudo ufw reset line of code and my entire setup was reset. At the time i didn’t think too much of it, i thought i could just quickly set everything up again, easy.
But now i cannot access my ip-server (public ip / wan ) anymore… Nginx works fine for localhost, 127.0.0.1, 0.0.0.0…etc…
Now i’ve traversed the whole web looking for answers…some of the solutions came from nginx.conf not being configured correctly, some of the solutions came from the isp not allowing port 80 etc… I’m open to exploring these as possiblities, but i just can’t imagine that being the case.....
I can’t even access my public ip with UFW disabled.
I’ve tried pinging nginx and i get 404 error.
I know it has something to do with my ufw reset…can anyone point me in the right direction as to where to look?
Thank you in advance.
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.×