Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Nov 22, 2014 9:30 pm 
Offline

Joined: Sat Nov 22, 2014 9:21 pm
Posts: 1
Hello,

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 http://www.example.com registered with Gandi and changed it's nameservers to point to the Linode VPS and setup nginx and everything is working great! Now however; I would like to add a subdomain and I've tried to set it up but I"m not sure what I've done wrong.

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:

Quote:
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 :)


Top
   
PostPosted: Sat Nov 22, 2014 11:53 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
If it doesn't resolve to a valid ip, it's not getting to your server for nginx to render a page.

Double check your DNS setup.

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
PostPosted: Sun Nov 23, 2014 10:57 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
and as vonskippy's signature says, give us your domain name. there's no reason not to and we can probably help you more if you tell us what it is.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group