[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Mapping subdomains to subdirectory?
- Subject: Re: [cobalt-users] Mapping subdomains to subdirectory?
- From: Isaac <cobalt@xxxxxxxxxxxxxxx>
- Date: Thu Nov 16 08:08:13 2000
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> Is it possible to map a subdomain, foo.domain.com, to a subdirectory of the
> main domain, eg /home/sites/domain.com/web/foo/
>
Should be possible.
>
> I know that I just need to make a dns entry that points to the main ip
> address but what changes do I need to make for apache to redirect this
> correctly?
You need to settup dns like you would for any other site. Then edit your
/etc/httpd/conf/httpd.conf to add a virtual site with its main directory equal
to /home/sites/domain.com/web/foo/. You can find how to setup virutal domains
at apache.org. THe only problem is that you also could access the same pages
from domain.com/foo. If you setup home/sites/domain.com/foo/ you could have
it just show up on foo.domain.com
-Isaac