[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Making a serverwide alias



"Robbert Hamburg (HaVa Web- & Procesdesign)" wrote:

> Question
> 
> i want every user be able to do http://mail.domain.com (for his own domain)
> 
> using
> 
> Alias /mail /home/mail/data

Nope.  That would alias /www.example.com/mail to the right directory,
but not mail.example.com.

> wont work in httpd.conf or srm.conf.

Not as easily done as said.

For name-based hosting this probably isn't too hard, but you need the
following for each IP# for which you serve websites:

You need a single VirtualHost block for each IP, with a ServerName
pointing to one of the domains on that IP# (as mail.example.com), and
then a ServerAlias entry for all the other domains on that IP#, (as
mail.example.com, for each domain).

You should also make sure that /home/mail/data is world-readable; you
may also need a directory container for the /mail/home/mail/data
directory.

Good luck <smile>.

Jeff
-- 
Jeff Lasman, nobaloney.net, P. O. Box 52672, Riverside, CA  92517 US
Internet & Unix/Linux/Sun/Cobalt Consulting +1 909 778-9980
Our jblists address used on lists is for list email only
To contact us offlist: "http://www.nobaloney.net/contactus.html";