[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Web Sites for multidomains
- Subject: RE: [cobalt-users] Web Sites for multidomains
- From: "Donna" <webmaster@xxxxxxxxxxxxxxx>
- Date: Tue Dec 12 22:22:01 2000
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> Rodolfo J. Paiz
> Sent: Wednesday, 13 December 2000 4:30
>
> So I want indahaus.(com|net|org), with or without the "www,"
> all to resolve
> to www.indahaus.com. After a @!$#%$%# lot of reading, it
> appears I may have
> mistakenly stumbled over some Truth. I have this in my
> httpd.conf file...
>
> <VirtualHost www.indahaus.com>
> ServerName www.indahaus.com
> ServerAlias indahaus.com
> ServerAdmin webmaster@xxxxxxxxxxxx
> DocumentRoot /home/sites/www.indahaus.com/html
> ErrorLog /home/sites/www.indahaus.com/logs/error_log
> TransferLog /home/sites/www.indahaus.com/logs/access_log
> </VirtualHost>
>
> <VirtualHost www.indahaus.net>
> ServerName www.indahaus.net
> ServerAlias indahaus.net
> Redirect permanent / http://www.indahaus.com
> </VirtualHost>
This will work just as well
<VirtualHost www.indahaus.com>
ServerName www.indahaus.com
ServerAlias indahaus.com indahaus.net indahaus.org
ServerAdmin webmaster@xxxxxxxxxxxx
DocumentRoot /home/sites/www.indahaus.com/html
ErrorLog /home/sites/www.indahaus.com/logs/error_log
TransferLog /home/sites/www.indahaus.com/logs/access_log
</VirtualHost>
I usually just add the .com using the GUI, then add the extra
server aliases to the .conf file when I need them.
>
> ...and (drum roll) oh my God I think it actually works.
> However, I have no
> idea what sendmail will make of this mess. Could someone take
> a look at what
> I've posted here and give me their opinions? Will the mail go
> through? Is
> there perhaps a better way?
It's the apache web server conf file, sendmail won't make
anything of it. You'll need to edit your etc/mail/virtusertable
to include catch-alls for the alaised domains, and also be sure
to add both the www.xyz.net and xyz.net into the mail GUI for
relaying/accepting mail.
>
> I have a full set of DNS records for each domain, pointed at
> the same IP
> address (name-based hosting only for all my sites), and with
> MX records for
> each site all pointing to smtp.indahaus.com.
If the DNS is set up right (and sounds like it is) it should work
fine.
>
> At this point, I'm doing this on a vanilla RedHat 7.0 box, so
> I can ensure
> that whatever gets trashed doesn't kill a production server.
> Once it works,
> then I'll port over to the production machine.
Well, my metioning the GUI won't help on RH7, but the end result
is the same on either machine.
--
Donna Lever
Smart Artist Web Services
http://www.smartartist.com.au/