We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
nginx not resolving floating ip
nginx not resolving floating ip
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??).
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: nginx not resolving floating ip
I guess you need to setup NAT IP
pls check this thread:
Why VestaCP use local IP address instead of external IP address...
pls check this thread:
Why VestaCP use local IP address instead of external IP address...
Re: nginx not resolving floating ip
great I got it working.
I had to add the local IP, then NAT that to the floating ip.
I had to add the local IP, then NAT that to the floating ip.