Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-12-2007, 11:25 PM   #1
Registered: Mar 2007
Location: Canada
Distribution: Debian Lenny AMD64
Posts: 44

Rep: Reputation: 15
Setting up webhosting server

Hi, I'm running a server currently on my Cable Connection with a dynamic IP address. I am using a dynamic DNS domain name. I was wondering how do I setup sub-domains etc. If anyone could point me in the direction of a how to that would be great.

Old 03-13-2007, 05:18 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Moved: This thread is more suitable in Linux Server and has been moved accordingly to help your thread/question get the exposure it deserves.
Old 03-13-2007, 08:27 AM   #3
Registered: Oct 2005
Posts: 34

Rep: Reputation: 15
Maybe rsync
Old 03-13-2007, 10:13 AM   #4
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
I don't see how rsync would help with subdomains in any case.

You need to do two things to get this working. First off, you need to add a subdomain record to the DNS, which is done by the ddns service. You can either create specific subdomains, like:
Code:      IN        CNAME       IN       CNAME
or get everything done in one fell swoop with
*      IN       CNAME
The second method would require your webserver to sort out the requests, and if somebody requests a subdomain that doesn't exist, your server would either need to have a default sub selected, or return an error. I would use the first method, where each subdomain has its own record.

Then on your webserver, you need to create sites for each of the subs. If they are "true" sundomains with different data, or just redirects back to is unimportant, just have your server set to read the request, ie, and, and serve away.

Old 03-14-2007, 04:49 AM   #5
Registered: Oct 2005
Posts: 34

Rep: Reputation: 15
sorry, i read wrong the title
Old 03-14-2007, 09:24 AM   #6
LQ Newbie
Registered: Sep 2005
Posts: 26

Rep: Reputation: 15
I'd do it by installing bind, but since you have a dynamic IP that would not be the best solution.


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best cheap server for linux webhosting linuxNewbie143 Linux - Hardware 13 02-07-2007 03:23 PM
Webhosting on an old Netfinity Server with Debian bence8810 Linux - General 4 10-06-2006 04:06 PM
VPN Server: need help setting up a public server accessible by win xp clients hamish Linux - Networking 6 09-20-2006 02:39 AM
LXer: Building A Low-Cost LAMP Server For Your Webhosting Business With CentOS 4.3 LXer Syndicated Linux News 0 05-03-2006 02:54 PM
problems setting up apache and vsftp server behind a router that serves as a server xone Linux - Security 1 04-08-2004 10:46 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration