I am currently trying to get NGINX accessable over the internet. I have installed NGINX on my raspi 3, configured and got it up and running on port 81.
I am using the default config for NGINX. I have just changed the port number.
If I use the local ipv4 or ipv6 address on my computer to access the website, everything works fine. But if I try to access the site over my public IP-Address Chrome throws me the error "Connection refused".
I have forwarded the port 81 on my fritz.box to the raspi, but it doesn't work. To check if the port forwarding works, I have installed an apache server on my main computer and forwarded everything to port 82, which worked. I can access the website hosted on my computer, but not the website hosted on the pi.
I have checked the iptables if something got blocked and flushed them, but still no success.
I have tried to analyze my network traffic through Wireshark but got no results that could help me. Furthermore I have tried to analyze the traffic over my fritz.box via the traffic monitor, but still no results..
I hope someone can give me some hints at what I can look at to investigate more.