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

Re: [cpx] RE: Conf file poltergeist?



On Thu, 10 Mar 2005 16:04:16 -0000
"Bob Browning" <bob@xxxxxxxxxx> wrote:

> 	In the "CPX method", ServerName is the domain (no www), and "enable
> www" adds "ServerAlias www.client.co.uk".
> 
> OUCH.
> 
> We can't make the assumption that client.co.uk and www.client.co.uk point to
> the same IP address.  

	Technically CPX doesn't do that, only if you check that box.  My
*guess* would be that if you "enable www" for www.client.co.uk you would
get "ServerAlias www.www.client.co.uk"?  (not tested).  If you wanted
those on different vhosts (seems like that could easily confuse visitors!)
you would have to remember to not check the "enable www" for the
client.co.uk virtual host.

> Nor for that matter can we make the assumption that
> these are the only two variants of a domain.  

	I agree (for ex. it's nice to add an alias in for a temp domain
name for testing).  However one can manually edit httpd.conf to add that
and I think CPX just ignores it from what I can tell.  In fact I think
CPX just ignores anything in a virtual host entry that it doesn't
"control."

> Nor can we assume that
> sub-domains are on the same virtual host as each other.

	One can set up separate virtual hosts for different *.domain.com
hostnames...?
 
> Am I right in thinking that CPX has an assumption hard-coded into it that
> there are always one or two domains at level 4 and that if there is a second
> one it is the other prefixed by www.  And that because we can make this
> assumption we can use the domain name as a unique identifier for the virtual
> host (two levels above it).  

	I think so.  However somewhere in the model is one user being
the domain admin for 2+ domains (psst Scott - how does that affect your
quota allocation algorithm?).  Technically each vhost *does* have a
unique identifier, the ServerName.  If that's not unique I bet you'll
have other problems. :)   www2.domain.com and www3.domain.com could be
different vhosts than domain.com.  If you want to use
something.domain.com as a ServerAlias you need to manually add it to
httpd.conf.

 - Steve Yates
 - ITS, Inc.
 - In C++, only your friends can access your private parts.


======================================================================
This is <cpx@xxxxxxxxxxxxx>      <http://www.groupmail.org/lists/cpx/>
Before posting a question, please search the archives (see above URL).


Home | Main Index | Thread Index
Match: Format: Sort by:
Search: