Index: [Article Count Order] [Thread]

Date:  Wed, 21 May 2008 19:06:57 +0200
From:  Michael Stauber <bq (at mark) solarspeed.net>
Subject:  [coba-e:13012] Re: Web Server Alias not deleting in codb
To:  coba-e (at mark) bluequartz.org
Message-Id:  <200805211906.57183.bq (at mark) solarspeed.net>
In-Reply-To:  <01fd01c8bb22$a23df230$7800000a@pc11>
References:  <4831D9E5.4020803 (at mark) virtbiz.com> <004501c8ba8a$fb689f10$0101a8c0 (at mark) systemax> <01fd01c8bb22$a23df230$7800000a (at mark) pc11>
X-Mail-Count: 13012

Hi Steffan,

> Yesterday i added e web server alias to a site in the gui
> now I deleted the alias
> it is removed from the gui but not from the server
> I re added the virtual site saved and delete and saved but no luck
> it keeps showing up in /usr/sausalito/codb/objects/XX/.fqdn
> if I deleted there it comes back
>
> I have no id辿e how to get rid of it
> any ideas ?

Do not (like in: NEVER :o) modify files in /usr/sausalito/codb/ directly on 
the command line. That may cause problems in the long run.

Use CCEclient instead:

/usr/sausalito/bin/cceclient 

Lets say your object has the object ID 20, is a vsite and you want to change 
the webAliases of it.

First run "get <OID>" to see if it's really the right object and to see what 
data it contains:

get 20
102 DATA NAMESPACE = ""
102 DATA webAliases = "&example.com&"
102 DATA userwebsDisabled = "0"
102 DATA basedir = "/home/.sites/148/site6"
102 DATA site_preview = "0"
102 DATA CLASSVER = "1.0"
102 DATA mailAliases = "&example.com&"
102 DATA CLASS = "Vsite"
102 DATA siteAdminCaps = ""
102 DATA domain = "example.com"
102 DATA ipaddr = "192.168.11.1"
102 DATA maxusers = "20"
102 DATA emailDisabled = "0"
102 DATA volume = "/home"
102 DATA dns_auto = "0"
102 DATA name = "site6"
102 DATA suspend = "0"
102 DATA OID = "20"
102 DATA fqdn = "www.example.com"
102 DATA mailCatchAll = ""
102 DATA hostname = "www"
201 OK

To add a new webAlias named "example.com" you'd do this:

set 20 webAliases = "&example.com&mail.example.com&"

To remove all webAliasses you'd do this:

set 20 webAliases = ""

If CCEclient gives you an error, report that error back, because that may tell 
us why your transaction didn't work when you attempted it through the GUI.

-- 
With best regards,

Michael Stauber