LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-19-2005, 04:43 PM   #1
adcworkslinux
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
Setting up subdomains for development


Hi,

I am developing a website that will require testing of the following domains;

w_w_w. mydomain .co m
sub. mydomain .c om

^^ sorry about all the spaces and underscores, apparently I am not allowed to post urls.

My SuSE linux is connected to the internet but I wish for these 2 domain names to resolve to the local Apache website.

Can anyone help me set this environment up?

Kindest, thanks.
 
Old 09-20-2005, 10:33 AM   #2
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 36
Hi adcworkslinux,
You can use virtual hosting to do this. Add a virtual host entry for each domains and keep the document root same for all the entries. this will do the trick. refer the apache website for documentation on virtual host configuration.
vimal.......
 
Old 09-20-2005, 10:51 AM   #3
adcworkslinux
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Hi,

Thanks for the advice. I think I know how to setup Virtual Hosts, but I thought that in order for Virtual Hosts to work, the machine had to resolve the domain names itself.

For example, if I am on my linux machine with Apache running and I type

w_ww.amazon . c_om

Then that website loads. What I need is for

w_ww.amazon . c_om

and any subdomains thereof, to resolve to my own localhost machine.

Thanks!
 
Old 09-20-2005, 11:04 AM   #4
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 36
Hi adcworkslinux,
you can add entries in your dns records as CNAME directives which helps to configure a canonical name for your existing name. otherwise add entries in your /etc/hosts file.
vimal...
 
  


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
Setting group automatically upon file creation (local web development configuration) jht2k Linux - Newbie 1 02-11-2005 06:05 AM
Subdomains tommytomato Linux - Newbie 5 02-04-2004 09:48 AM
Setting up a Web Development Server w/ Slackware Lohan Slackware 5 01-25-2004 01:32 PM
Networking questions : Setting up domains/vhosts/subdomains/IPs etc. Belize Linux - Networking 1 09-16-2003 03:39 AM
Subdomains setting up - help :) Acid_Burn Linux - General 4 12-15-2002 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:17 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration