Click to See Complete Forum and Search --> : Subdomains
baragon0
09-24-2002, 08:27 PM
Looked at a couple of other threads, but didn't really get it.
How do I make a subdomain (ie www.domain.tld/dir points to dir.domain.tld)?
BIND? Apache?
element-x
09-24-2002, 09:56 PM
Look up mod_rewrite for apache.
macster465
09-25-2002, 12:48 AM
I did it using virtual hosts in apache's conf file.
Example:
<VirtualHost *>
DocumentRoot /document/dir
ServerName sub.yourdomain.com
</VirtualHost>
baragon0
09-25-2002, 01:05 AM
Originally posted by macster465
I did it using virtual hosts in apache's conf file.
Example:
<VirtualHost *>
DocumentRoot /document/dir
ServerName sub.yourdomain.com
</VirtualHost>
Okay, I'm currently using virtual hots. Do I do this in the existing virtual host section or in a brand new one?
Does DNS need reconfiguring?
macster465
09-25-2002, 01:29 AM
Brand new one, and no, VirtualHosts is all handled by apache, so no DNS reconfiguring...