LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-12-2007, 11:25 PM   #1
tehkaao
Member
 
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.

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

Rep: Reputation: 73
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
justkeny2k
Member
 
Registered: Oct 2005
Posts: 34

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

Rep: Reputation: 48
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:
sub1.domain.com.      IN        CNAME          domain.com.
sub2.domain.com.       IN       CNAME          domain.com.
or get everything done in one fell swoop with
Code:
*.domain.com.      IN       CNAME         domain.com.
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 domain.com is unimportant, just have your server set to read the request, ie sub1.domain.com, and sub2.domain.com, and serve away.

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

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

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


Reply


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


All times are GMT -5. The time now is 08:41 PM.

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