Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

nginx not resolving floating ip

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
bhc
Posts: 6
Joined: Wed Dec 07, 2016 12:31 pm

nginx not resolving floating ip
  • Quote

Post by bhc » 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??).
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: nginx not resolving floating ip
  • Quote

Post by mehargags » Sun Feb 05, 2017 8:16 am

I guess you need to setup NAT IP
pls check this thread:

Why VestaCP use local IP address instead of external IP address...
Top

bhc
Posts: 6
Joined: Wed Dec 07, 2016 12:31 pm

Re: nginx not resolving floating ip
  • Quote

Post by bhc » Wed Feb 08, 2017 6:03 pm

great I got it working.

I had to add the local IP, then NAT that to the floating ip.
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password