I tried to forward port 80 & 443 to 8080 on a server that I am working on https://www.neptos.io
My Angular Universal app is running on 8080 but my default angular app is running on port 80 & 443 (https)
I forwarded both port 80 and 443 to 8080 via iptables using:
iptables -t nat -A OUTPUT -o lo -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables -t nat -A OUTPUT -o lo -p tcp --dport 443 -j REDIRECT --to-port 8080
Now when I ssh into the remote machine and run curl localhost, I get the desired result which is the angular universal app but when I open, it in a browser https://www.neptos.io I get the default angular app.
Am i doing something wrong here?
Any help would be appreciated.