[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] 2 domains one website
- Subject: Re: [cobalt-users] 2 domains one website
- From: Roger Harrison <cobalt@xxxxxxxxxxxxxxx>
- Date: Fri Jan 26 17:48:07 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On Fri, 26 Jan 2001, Jeff Lasman wrote:
> > If you create a number of users under one virtual host and then map
> > domains to each of these like this:
> > maindomain.com -> maindomain.com
> > domain1.com -> maindomain.com/~user1
> > domain2.com -> maindomain.com/~user2
> > domain3.com -> maindomain.com/~user3
> > (easy to do using an include file in httpd.conf)
>
> Please explain with a sample of the include file. I'm not sure how
> you're "mapping".
>
> If you're creating a whole new domain, then yes, the RaQ should show
> what the user typed into his/her browser when looking for the site, into
> the logfile.
Extract from the include file below. We have one domain, hostabc.com with
about 50 domains mapped to user directories like this:
<VirtualHost 213.165.140.142>
ServerName www.somedomain.co.uk
ServerAdmin admin
DocumentRoot /home/sites/site5/users/somedomain/web
ServerAlias somedomain.co.uk
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
</VirtualHost>
If you go to http://www.hostabc.com/~somedomain/
the hits are logged in the logs for hostabc.com, but if you
go to http://www.somedomain.co.uk they're not. For example, the logs for
hostabc.com for the whole of December show only 188 hits, despite having
50 domains on it (the main hostabc.com site only has 1 holding page).
The hits aren't logged anywhere else as far as I can see, but I'm not sure
about that.
The reason for doing this, by the way, is so that smaller web sites are
kept off the main Site Management screen. They don't get the siteadmin
control panel, but they can still use the personal control panel.
Regards,
Roger Harrison