nginx not resolving floating ip
Posted: Sat Feb 04, 2017 10:37 pm
Hi all,
So I got a VPS on digitalocean, added the IP address, I then added a DNS record (subdomain test), updated nginx.conf to have the IP address in, and checked if the site loads. I keep on getting "connection refused".
I checked the IP works, as I can SSH, and access vestacp admin using it, but nginx doesnt want to resolve.
I have also tried setting a user/site to the ip, and had same results. (pushed rebuild to rebuild all config)
I can see nginx is listening to correct IP with netstat -plnt..
I want to use the floating IP as my static IP address, so everything goes through this IP (nameserver/nginx). Apart from mail, as digitalocean doesn't support PTR records. (I guess I have to manually edit the dns records to point mail to the floating ip??).
So I got a VPS on digitalocean, added the IP address, I then added a DNS record (subdomain test), updated nginx.conf to have the IP address in, and checked if the site loads. I keep on getting "connection refused".
I checked the IP works, as I can SSH, and access vestacp admin using it, but nginx doesnt want to resolve.
I have also tried setting a user/site to the ip, and had same results. (pushed rebuild to rebuild all config)
I can see nginx is listening to correct IP with netstat -plnt..
I want to use the floating IP as my static IP address, so everything goes through this IP (nameserver/nginx). Apart from mail, as digitalocean doesn't support PTR records. (I guess I have to manually edit the dns records to point mail to the floating ip??).