This is what is happening at the moment:
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:8081 0.0.0.0:* LISTEN -
That's of no use to me whatsoever, since I need to be able to work on this server from anywhere and it is headless.
I attach nginx.conf. I've tried the obvious things without any success.
listen X.X.X.X:80;
tcp6 0 0 :::443 :::* LISTEN 600/apache2
tcp6 0 0 :::80 :::* LISTEN 600/apache2
Surely you've already tried this, so mention why this didn't work + provide the exact error you're seeing.Indeed I did. I found netstat's output to have not changed in any way. I'll try it again to confirm I haven't lost the plot
You must specify a specific (different) IP, else NGINX will always listen on localhost.If it's the 'listen' directive, specifying 0.0.0.0:80 doesn't help. I wonder if it could be soemthing perhaps with line 30…
upstream app {
server 192.168.2.194:8080;
}
server {
listen 192.168.2.194:80;
…
The address cannot be changed. All web servers listen on 127.0.0.1 or "localhost."
The port number can be changed using the "listen" directive. See the commentary at the link below:
https://www.tecmint.com/change-nginx-port-in-linux/