Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Sep 06, 2012 10:06 am 
Offline
Senior Member

Joined: Thu Apr 12, 2012 6:26 am
Posts: 62
Location: Earth
Hi friends,

We have created an application to run on our server but which interfaces with a web application on another organization's server.
We got the the other organization to create a subdomain which point to our server's IP address.
(by the way, if you typed in our server's IP address, you''ll land on a default Apache/centOS page).

They pointed their subdomain to our server's IP address and now if a user goes to the subdomain, xyz.mydomain3.com, you'll be looking at our default Apache/CentOS page.

On our Linode server, the destination/where we have built the web application which the subdomain should be pointing to is mydomain2.com.

How can we point the subdomain, xyz (in xyz.mydomain3.com) to mydomain2.com?


Here's what our Linode DNS manager looks like:


Code:
DNS Manager ยป xyz.mydomain3.com
SOA Record
Primary DNS   Email   Default TTL   Refresh Rate   Retry Rate   Expire Time   Options
ns1.linode.com   myemail@gmail.com   Default   Default   Default   Default   Settings


NS Records
Name Server   Subdomain   TTL   Options
ns1.linode.com   xyz.mydomain3.com   Default   Edit | Remove
ns2.linode.com   xyz.mydomain3.com   Default   Edit | Remove
ns3.linode.com   xyz.mydomain3.com   Default   Edit | Remove
ns4.linode.com   xyz.mydomain3.com   Default   Edit | Remove
ns5.linode.com   xyz.mydomain3.com   Default   Edit | Remove
Add a new NS record


MX Records
Mail Server   Preference   Subdomain   TTL   Options
mail.xyz.mydomain3.com   10      Default   Edit | Remove

Add a new MX record


A/AAAA Records
Hostname   IP Address   TTL   Options
   123.45.68.90   Default   Edit | Remove

mail   123.45.68.90   Default   Edit | Remove

www   123.45.68.90   Default   Edit | Remove

Add a new A record


CNAME Records
Hostname   Aliases to   TTL   Options
Add a new CNAME record


TXT Records
Name   Value   TTL   Options
Add a new TXT record


SRV Records
Service   Domain   Priority   Weight   Port   Target   TTL   Options
Add a new SRV record

NOTE: Changes made to a master zone will take effect in our nameservers every quarter hour.


We would appreciate any helpful response.

Thanks.


Top
   
PostPosted: Thu Sep 06, 2012 11:23 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
In the Apache configuration section for mydomain2.com, you would add a line:

Code:
ServerAlias xyz.mydomain3.com


If you wished, you could instead use HTTP redirection (so that all requests for xyz.mydomain3.com get redirected to mydomain2.com) by setting up another VirtualHost just for xyz.mydomain3.com and using mod_rewrite.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Mon Sep 10, 2012 12:14 am 
Offline
Senior Member

Joined: Thu Apr 12, 2012 6:26 am
Posts: 62
Location: Earth
Thanks @hoopycat.
Worked just fine.


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


Who is online

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