Hi,
 
Assuming domain1.com is your servername, thcan you check 
your configuration looks something like this:
XWiki.XWikiServerXwiki - the "server" field points to 
xwiki.domain1.com (or www.domain1.com; 
although not required for www. it's best to be safe). 
XWiki.XWikiServerDomain2 - the "server" field points 
to [xwiki2].domain1.com where [xwiki2] is a identification of your second wiki 
(eg public.domain1.com)
The above assumes you have a database called Domain2; and 
[xwiki2.domain1.com] points to domain1.com in your CNAME 
records.
 
In other words, drop domain2.com altogether from 
thought
..if that makes sense.
 
From: Neighborhood Org 
[mailto:neighborhoodorg@gmail.com] 
Sent: 12 March 2007 
05:49
To: xwiki-users@objectweb.org
Subject: Re: 
[xwiki-users] Problems setting up multiple servers
Sorry to keep sending follow-ups, but just to explain, I went to 
edit
XWiki.XWikiServerDomain2
and set the "server" field to
domain2.domain2.com
Then, I added a 
CNAME record in DNS to point domain2.domain2.com to that 
box.
Then navigated my browser to
http://domain2.domain2.com:8080/xwiki/bin/view/Main/ 
and it redirected me to 
the no such wiki 
page.
Thanks.