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

Re: [cobalt-users] [Raq2] Sendmail - infinite recursion problems...



Shaun Masterman wrote:

> Thanks for the reply Jeff. I've tried switching off the 'collect email for
> domain' for a test site, and when I try and browse it without the www, I
> just get the default cobalt page - at my server address.
> 
> http://www.headsetresearch.org
> http://headsetresearch.org

I just checked; you're right <frown>.

> In the little help box on the GUI - it says under the option for 'Accept
> email for Domain'..: "configure this site (host.domain.com) to accept email
> addressed to user@xxxxxxxxxxxxxxx and user@xxxxxxxxxxx Also configure the
> webserver to respond to http://host.domain.com and http://domain.com";

My RaQ2 didn't say that.  However, I left the Raq2 platform before the
latest upgrades.

Did the latest upgrades add that?  Anyone?

Used to be it just made the change for email and the RaQ, by default,
always enabled access both by "www.domain.com" and by "domain.com"; it
was only the RaQ3 (and above) that let you set it off or on.

> Is there a way outside of the GUI to de-couple these functions?

Of course.

Are the IP#s pointed to by both www.headsetresearch.org and
headsetresearch.org the same... YES.

So the problem is in the /etc/httpd/conf/httpd.conf file.

In the virtual host block for www.headsetresearch.org, under the line...

ServerName www.headsetresearch.org

should be:

ServerAlias headsetresearch.org

And this should be all you need to make it work.

It's possible that changes to "site settings" in the gui will delete the
SiteAlias directive; you should check for it after each change to site
settings.

> The reason I thought DNS problems is that, at one point in the past, for
> just one domain, the setup worked - but only for a few weeks - Then my ISP
> changed the DNS from whatever magical configuration was giving the desired
> result, to 'their standard settings' during an audit of their DNS servers.
> Unfortunately we can't replicate what the magic settings were... and I don't
> know enough (anything!) about DNS to give them a clue...

Here's the way apache decides which site to show on the RaQs:

A request comes in with both a site IP# and a site name.

Apache scans through all the sites with a matching IP#, looking for a
ServerName or ServerAlias directive pointing at the site name.  If it
finds one, that's the site it serves.  If it doesn't find one, then it
serves the first site for the IP#, no matter what the name.

So things that work once may fail later, when more sites are added to
the RaQ.

You can move virtual host blocks around inside
/etc/httpd/conf/httpd.conf, so that Apache will find the proper site
first under the IP#; the problem I have with doing it that way is that I
really don't know if the gui will reorder the virtual host blocks or
not.

Jeff
-- 
Jeff Lasman <jblists@xxxxxxxxxxxxx>
nobaloney.net
P. O. Box 52672
Riverside, CA  92517
voice: (909) 787-8589  *  fax: (909) 782-0205