Index: [Article Count Order] [Thread]

Date:  Wed, 26 Oct 2005 10:02:46 -0400 (EDT)
From:  "Brian N. Smith" <brian (at mark) nuonce.net>
Subject:  [coba-e:03343] Re: Site name rejected if same as host
To:  coba-e (at mark) bluequartz.org
Message-Id:  <Pine.LNX.4.56.0510260955170.23924 (at mark) mail.nuonce.net>
In-Reply-To:  <200510252142.j9PLgsgf094603 (at mark) info.eis.net.au>
References:  <200510252142.j9PLgsgf094603 (at mark) info.eis.net.au>
X-Mail-Count: 03343

> How come you can't set up a virtual site with the same name as your hostname?
> When I try I get the error: The specified host name and domain name
> combination, '<hostname>', is in use by system"

This functionality was stripped out of Blue Quartz.  If you really want it
back, it is not hard to add.

The script that handles this is:

/usr/sausalito/handlers/base/vsite/unique.pl

Remove these lines:

my @oids= $cce->find("System");
my ($ok, $system) = $cce->get($oids[0]);

# don't allow system FQDN as the vsite FQDN
my $system_fqdn = lc($system->{hostname} . "." . $system->{domainname});
my $vsite_fqdn = lc($vsite_new->{fqdn});
if ($system_fqdn eq $vsite_fqdn) {
      $cce->bye('FAIL',
"[[base-vsite.systemFqdnNotAllowed,fqdn='$vsite_new->{fqdn}']]");
      exit(1);
}


When you do that, you can add in a vhost that has the same name as your
box.  This way you dont have to do any nasty hacking on the Sausalito DB,
or any additional symlinking.

Thanks!
Brian