Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Subdomain pointing to another server
Old 06-04-2009, 11:24 AM Smile Subdomain pointing to another server
Novice Talker

Posts: 8
Name: Shouvik
Trades: 0
Hi

First of all I am sorry if I am posting this in the wrong section, mods pls move it to the right section if so.


I have a domain name say www.abc.com hosted on a server say "Server1"

I have created a subdomain for that domain say http://chat.abc.com

Now, what I want is, I want to host chat.abc.com to another server say "Server2", which means chat.abc.com should point to another Server2 instead of Server1.

Please tell me the steps to do this (changing DNS records etc).


I will be highly greateful to you. Please?


Thank you so much in advance.
__________________

Please login or register to view this content. Registration is FREE
- Cheapest Web Hosting

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
cancer10 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-06-2009, 10:26 PM Re: Subdomain pointing to another server
Skilled Talker

Posts: 55
Name: Brian
Trades: 0
Hello,

Your correct, you would do this with via DNS.

In your DNS zone for 'abc.com' just create an 'A' record called 'chat' pointing to the IP of the server hosting chat.abc.com.
bmp99 is offline
Reply With Quote
View Public Profile
 
Old 06-06-2009, 11:45 PM Re: Subdomain pointing to another server
Novice Talker

Posts: 8
Name: Shouvik
Trades: 0
How do I do this without using a control panel?
__________________

Please login or register to view this content. Registration is FREE
- Cheapest Web Hosting

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
cancer10 is offline
Reply With Quote
View Public Profile
 
Old 06-08-2009, 05:49 AM Re: Subdomain pointing to another server
Skilled Talker

Posts: 55
Name: Brian
Trades: 0
If your not using a control panel you will just have to add a virtualhost to your apache configuration file for the sub domain. Here is an example below:

<VirtualHost xx.xx.xxx.xxx:80>
ServerAdmin webmaster@chat.abc.com
DocumentRoot /path/to/chat.abc.com/
ServerName chat.abc.com
ErrorLog /var/www2/logs/chat.abc.com_error_log
CustomLog /var/www2/logs/chat.abc.com_access_log common

<Directory /path/to/chat.abc.com/cgi-bin/>
Options +ExecCGI
AddHandler cgi-script cgi pl
</Directory>

</VirtualHost>

Now you just restart apache and modify the DNS. In your DNS zone for 'abc.com' just create an 'A' record called 'chat' pointing to the IP of the server hosting chat.abc.com.
bmp99 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Subdomain pointing to another server
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13765 seconds with 12 queries