PDA

View Full Version : Sub Domains sub.domain.com


twistedtwig
October 17th, 2006, 10:38 AM
Hi guys,

I was hoping someone would be able to point me in the right direction or tell me how to do sub domains on my server.

ie... example.com coudl have sub as a sub domain

sub.example.com

i have no idea how to do this, had a quick search and found virtual hosting with apache which is cool and something i will look into later but not what i want.

any thoughts please.

thx :)

Twiggy

_AA_
October 17th, 2006, 12:56 PM
<VirtualHost *:80>
ServerName sub.domain.com
ServerAdmin email@address.com
DocumentRoot /var/www/htdocs/sub
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>

woorzel
October 17th, 2006, 12:57 PM
hello

can you explain further what you're trying to achieve?
what is this sub-domain going to be pointing to - the same server? what services should be available on it?

twistedtwig
October 17th, 2006, 01:04 PM
at this point i only want to have sub domains for the kids etc. possibly one might be a wap domain nothing too exciting really

Cheers :)

Twiggy

_AA_
October 17th, 2006, 01:12 PM
http://www.uplinkzero.com/apache-virtual-hosting-howto (http://www.uplinkzero.com/apache-virtual-hosting)

There really is not much to it.