HostRat
07-28-2001, 12:11 PM
Hi,
I was just wondering how do you add a subdomain to your cobalt...
I have tried something but it doesnt work.
Best regards,
Pingu
07-28-2001, 12:20 PM
The procedure is exactly the same as setting up a virtual site:
1 Create a virtual site
2 Use "subdomain" for hostname and "domain.com" for domainname
3 Add the subdomain to your DNS (and wait up to 48 hours)
That's about it :)
Aloha
can someone correct me if wrong
but I read somewhere that ya have to be using IP based hosting not name based hosting to use the subdomain feature
if this is so
a question
does each subdomain have to be on its own IP or can just the parent domain be on a ip and hte sub would share that
so if you had 5 dominas and wanted 5 subs each
would you need 25 ip's or just 5
I am just editing my htaccess file on a raq cause the gui would not allow due to name based hosting
diyoha
07-28-2001, 08:03 PM
how do I point multiple sub domains at the same virtual account in the raq4i
ie
test.com -> 111.11.11.11
www.test.com -> 111.11.11.11
cool.test.com -> ??
how would this work?
thanks
David
Originally posted by diyoha
how do I point multiple sub domains at the same virtual account in the raq4i
It is certainly possible to have several subdomains (or even regular domains) on the same IP address on a RaQ.
You need to edit the /etc/httpd/conf/httpd.conf and find the VirtualHost block for the site that you want the subdomain on. Then add the names of the subdomains on the ServerAlias line (seperate with spaces).
Then reload Apache with this command:
/etc/rc.d/init.d/httpd reload
And that should be it!
(you of course need to setup DNS correctly for the subdomains, but that's another matter)
hitspot
07-28-2001, 11:25 PM
You can setup sub domains on like or different ips from the main domain (at least it works on my server).
To setup a sub domain, create a "virtual site" with the host (normally www. in full domains) whatever you want as the sub, and yourdomain.com in the domain field.
When setting up each sub domain virtual site, you need to uncheckmark "Accept Email for Domain" & "Web Access by Domain" in the "Add new virtual site" menu. - email & web access will still work on the sub-domains, but for some reason you have to uncheck them.
Lastly, you have to setup different DNS records for each sub-domain. Go to DNS server parameters and add an A record for host (whatever sub-domain you want) and domain :yourname.com. Have it point to whatever ip address you selected when setting up the virtual site. (sub domains can be on different ips from the main domain) Also add an MX record if you want mail recieved by the sub-domain.
And don't forgot, before the sub-domain will work, you need to reset the server. Either restart the server from your maintenance control panel menu, or telnet to your server and type:
cd /etc/rc.d/init.d
./httpd
That will also shut down your server without doing a cold boot, which is much better for your system.
Hope any of this makes sense, if you have questions feel free to write at hitspot@hitspot.net.
hitspot
07-28-2001, 11:30 PM
Made a mistake in the last message:
To restart the server from telnet,
cd /etc/rc.d/init.d
and type:
./httpd restart