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

RE: [cobalt-users] Web Sites for multidomains



> Yeah, this is a good way to do it and preserve the domain's email
> capabilities for all four domains. BUT David needs that IP address to
> assign to the sites. You could also just do a set of soa records
> without a site (again, you need the specific IP) or just hack the
> httpd.conf file to make those domains aliases of the receiving site
> (works even with name-based hosting) but those two latter solutions
> would not permit email service. On the Raq, you need an actual site
> for that. So you're right, this is probably the best way to do it --
> follow Carrie's advice, David. :-)

However, and since we're on the subject, two of my new-found customers have
reserved all three TLD variants (com, net, org) of their names but only
expect to use one. They would like anything that arrives at the others to be
automatically redirected and served by the .com variant. Having the name
change from .net to .com is a non-issue.

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>

...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?

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.

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.

I know this is technically an Apache question, but since I do at least own
some Cobalt gear, maybe someone will take pity on me.  :)  Besides, if I'm
right, then this might help some other guy/gal just as lost as I...

--
Rodolfo J. Paiz
rpaiz@xxxxxxxxxxxxxx <mailto:rpaiz@xxxxxxxxxxxxxx>