[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] [raq] Pointing Subdomain At A Directory
- Subject: [cobalt-users] [raq] Pointing Subdomain At A Directory
- From: Joe Kerns <joe@xxxxxxxxxxxxx>
- Date: Tue May 30 16:12:57 2000
- Organization: JoltinJoe.Com
I was looking through the archives for the procedure on how to do this and didn't
find anything definitive. So I thought I'd nub with it and figure it out. I bought
"Professional Apache" for cryin out loud, how hard could it be. Anyway, here's what
I came up with:
For this example we will point caelie.joltinjoe.com at /home/sites/home/web/caelie
1. Open /etc/httpd/conf/httpd.conf with your favorite editor
2. copy the virtual host container for www.joltinjoe.com (from <virtualhost> to
</virtualhost>)
3. paste in the copy after the </virtualhost> for www.joltinjoe.com
4. edit it so that caelie.joltinjoe.com is substituted in for www.joltinjoe.com
5. change documentroot to reflect the appropriate directory
(/home/sites/home/web/caelie)
6. save httpd.conf
Add an A record with caelie.joltinjoe.com pointing to the IP of the original domain
and restart DNS. I do this by:
1. editing /etc/named/records
2. add the following on it's own line (no quotes) "a caelie joltinjoe.com
209.0.84.127 xx" where xx is your subnet mask.
3. Click on Save Changes in the DNS section of the GUI
Then restart Apache /etc/rc.d/init.d/httpd.init restart
Your done!
This worked for me on a RAQ2, but don't see why it wouldn't work on any other
machine, since it's Apache/DNS. I added a site after doing this and the GUI did NOT
mess up my configuration edits in httpd.conf
HTH,
Joe