To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > Linux/Unix Help

Linux/Unix Help Help with server-side Linux and Unix issues

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-26-2002, 04:45 PM   #1
gutlass
Junior Member
 
Join Date: Aug 2002
Location: Canada
Posts: 20
Subdomains in Apache

Ok, I've been trying to setup some virtual hosts for my domain.
Let's say I want to have:

I already have the following Virtual Hosts setup:

www.domain1.ca -> /var/www/htdocs/domain1/
www.domain2.ca -> /var/www/htdocs/domain2/

etc...

but how do I setup something like:

www.domain1.ca -> /var/www/htdocs/domain1/joe/

joe.domain1.ca?

We our hosting the boxes internally. Do I have to tell our Provider to setup come CNAMES or something like that to get this to work?
gutlass is offline   Reply With Quote
Old 08-26-2002, 06:49 PM   #2
jstarkey
Civilian
 
jstarkey's Avatar
 
Join Date: Jul 2002
Location: 9500 ft
Posts: 1,104
Might be best to check out this link, first:



http://httpd.apache.org/docs/vhosts/index.html



It provides just about everything you need to get started, include common examples.
jstarkey is offline   Reply With Quote
Old 08-27-2002, 05:33 PM   #3
frigidman
Internet Programmer
 
frigidman's Avatar
 
Join Date: Nov 2001
Location: USA
Posts: 197
Re: Subdomains in Apache

Quote:
joe.domain1.ca?
We are hosting the boxes internally. Do I have to tell our Provider to setup come CNAMES or something like that to get this to work?
Yes. The zone record needs the subdomain added and pointing to your webserver. If you get tired of asking for sub domains of a particular domain, ask them to make a wildcard doamin of *.domain1.ca.

That is, if the zone file handler for your domains supports that *heh*. Depends on the software they use. I know for sure BIND9 supports it correctly, and so does DJBDNS. I've no experience with any others, and I would be skeptical of any windows-based dns server software, hehe *chuckle*.

Then on apache's side, just read up on that link posted by jstarkey. Its really a simple thing, as a subdomain website is basically another virtualhost directive (not something under another virtualhost).
__________________
-Randall Shaw
The Web Choice (resellers welcome)
Wonderful web technology at your fingertips,
without the burden of knowing how to do it.
frigidman is offline   Reply With Quote
Old 08-27-2002, 10:19 PM   #4
yelvington
Senior Member
 
Join Date: Dec 2000
Location: USA
Posts: 1,012
And if your provider can't handle it, get one that can. I host my own site, and outsource the DNS. I use EasyDNS, which gives me a Web-based form for managing all my DNS entries.
yelvington is offline   Reply With Quote
Old 08-28-2002, 12:35 PM   #5
frigidman
Internet Programmer
 
frigidman's Avatar
 
Join Date: Nov 2001
Location: USA
Posts: 197
Another free (up to so many limit) DNS web based host is "zoneedit.com". Fairly good, simple, free for a few domains etc. (although a friend had like 9 domains under it and they never charged him).
__________________
-Randall Shaw
The Web Choice (resellers welcome)
Wonderful web technology at your fingertips,
without the burden of knowing how to do it.
frigidman is offline   Reply With Quote
Old 08-28-2002, 01:42 PM   #6
gutlass
Junior Member
 
Join Date: Aug 2002
Location: Canada
Posts: 20
Post

thanks for the info. I figured that the zone record needed to be updated to be able to have subdomains.

Too bad my provider doesn't seem to think that you can use wildcards in the zone file.

Looks like we are going to be switching providers.
gutlass is offline   Reply With Quote
Old 08-28-2002, 02:09 PM   #7
frigidman
Internet Programmer
 
frigidman's Avatar
 
Join Date: Nov 2001
Location: USA
Posts: 197
Good idea

Claiming that DNS records cannot have wildcards is like claiming you don't know what you are doing and SHOULDN'T be a provider to begin with
__________________
-Randall Shaw
The Web Choice (resellers welcome)
Wonderful web technology at your fingertips,
without the burden of knowing how to do it.
frigidman is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Forum Jump


All times are GMT -4. The time now is 06:54 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.