Help with Subdomain Configuration
I'm sorry but I need some help with configuring a subdomain on my VPS.. I'm not really good with things when it comes to the whole A, CNAME, AAAA records thing - I much prefer to open notepad and start typing up some PHP.
Anyway, so I have my domain at
First I went into Linodes DNS manager and set up a new A record for sub.example.com and pointed it to my Linode VPS ip address.
Then I added the following to my nginx configuration just below my main configuration for my website:
> server {
listen 80;
server_name sub.example.com
location / {
root /path/to/folder;
}
}
Lastly I reloaded the nginx configuration and restarted the nginx service and when I try to navigate to sub.example.com I get a time out error and when I try to ping sub.example.com it resolves to a filler IP address (123.123.123.123). Did I do something wrong or am I missing something? Any help would be greatly apprecaited - thanks
2 Replies
Double check your DNS setup.