Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Jun 20, 2014 5:18 pm 
Offline
Newbie

Joined: Wed Jun 18, 2014 11:41 pm
Posts: 3
Hello and my apologies in advance if this is a Level1 noob question:

I have a compadre which is hosting elsewhere and has his DNS managed through his hosting company. We would like to have one of his subdomains pointing to my server so I can build a site on my server and manage it through my set up. We don't want a simple redirect but have the subdomain fully implemented on my server.

I know how to use DNS manager but I am confused if I suppose to make any entries on the main domain's zone file (I have several ones) or if this is something I need to configure at the server level with virtual hosts or both.

Any kind soul could hint me at to what is the proper way to go about this?

THanks


Top
   
PostPosted: Fri Jun 20, 2014 7:15 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Whoever owns the main domain, needs to setup the subdomain record. That record can point to anywhere, including your LINODE Public IP. Then you setup a Virtual Host for that Subdomain.

_________________
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: Fri Jun 20, 2014 7:15 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
First, have your friend add the DNS entry with his provider so the desired domain name resolves to your server's IP address.

Second, configure your server (as appropriate for the web server and/or application you're using) to service that domain name. For a web server, that would be a standard "virtual host" configuration.

The first bit takes care of resolving the name people use so that they contact your server, and the second takes care that your server does the right thing when those people access it.

-- David

PS: Under some circumstances, and depending on the capabilities of your friend's DNS provider, it is theoretically possible for your friend to delegate the actual DNS administration for the subdomain to you (at which point you could do the first part yourself through whatever DNS provider you use, or Linode's own DNS manager), but that can get complicated and for simply acting as the host for a single domain name is unlikely to be needed/desired.


Top
   
PostPosted: Sat Jun 21, 2014 12:26 am 
Offline
Newbie

Joined: Wed Jun 18, 2014 11:41 pm
Posts: 3
Thanks you very much for the assistance on this. I truly appreciate it.


Top
   
PostPosted: Sat Jun 21, 2014 10:09 pm 
Offline
Newbie

Joined: Wed Jun 18, 2014 11:41 pm
Posts: 3
I almost have this working but for one small thing: The external subdomain points to its root folder at Linode just fine, so If I type http://subdomain.domain.com , it happily goes to to root. However, any directory/file below that will not work unless I include the root directory into url path again:

subdomain.domain.com-> DocumentRoot is /var/www/topdirectory. Inside I have a directory and a file: /var/www/topdirectory/somedirectory/index.html

if I visit http://subdomain.domain.com, the root at /var/www/topdirectory loads fine.
if I go to http://subdomain.domain.com/somedirectory/index.html I get an error (URL not found)
if I go to http://subdomain.domain.com/topdirectory/somedirectory/index.html I get no error, but the root path should not be there.

I know this is gonna be a Rewrite module thing but I cannot figure out what. I am guessing I need to write a rewrite rules on the apache file OR make an .htaccess file for that directory.

Any chance you your may have a a hint as of what I need to do?


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


Who is online

Users browsing this forum: No registered users and 2 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