Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


DNS Entry? | 11 comments | Create New Account
Click here to return to the 'DNS Entry?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
DNS Entry?
Authored by: timrob on Jul 31, '02 04:55:13PM

Well you can give different names to sections of your server.
If you setup an alias (CName?) in DNS that points to *.yourdomain.tld,
you can have http://foo.yourdomain.tld and http://bar.yourdomain.tld.
You can setup up as many of these Virtual Hosts as you like and refer
to them by name by using the "ServerName" directive in your
Virtual Host configuration.

ie.

NameVirtualHost *

<VirtualHost *>
DocumentRoot /path/to/site/html
ServerName foo.yourdomain.tld
</VirtualHost>

<VirtualHost *>
DocumentRoot /path/to/othersite/html
ServerName bar.yourdomain.tld
</VirtualHost>

You can also do this without touching NetInfo.



[ Reply to This | # ]