Eduardo Alves
Eduardo Alves

Reputation: 169

Configure Nginx To Accept Domain Name

I bought a Domain Name today, changed the DNS to match the exact VPS IP and configured Nginx to run my app.

So far, I can connect to my app using the external ip, from any computer, but I still can't connect to it via the Domain Name.

I've set the server_name to be the exact domain name I purchased, is there anything left I must do?

Upvotes: 0

Views: 287

Answers (1)

Jafar Ashkany
Jafar Ashkany

Reputation: 56

it is DNS configuration problem.

for sure about reason open putty and see output about site content by curl or wget or lynx. example:

lynx mysite.com

if it work and returned proper result nginx config is true but it is DNS problem.

dns problems:

  • /etc/hosts
  • /etc/hostname
  • bad configuration

try ping sitename.com on your pc with ms dos. if has timeout then its not nginx problem.

Upvotes: 1

Related Questions