Index: [Article Count Order] [Thread]

Date:  Wed, 21 May 2008 20:17:42 +0200
From:  "Steffan" <snoord (at mark) planet.nl>
Subject:  [coba-e:13017] Re: Web Server Alias not deleting in codb
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <035a01c8bb6e$f637d530$7800000a@pc11>
In-Reply-To:  <200805211906.57183.bq (at mark) solarspeed.net>
References:  <4831D9E5.4020803 (at mark) virtbiz.com> <004501c8ba8a$fb689f10$0101a8c0 (at mark) systemax> <01fd01c8bb22$a23df230$7800000a (at mark) pc11> <200805211906.57183.bq (at mark) solarspeed.net>
X-Mail-Count: 13017

thanks seems that the alias that i see there was the email alias
when I removed that the name was gone
but still the site keeps redirecting to the main site
it was  a .tv site that points to a .nl site
I did a 
grep -R domain.tv /etc/httpd/*
but nothing there

so I don$BCU(B know why the server keeps serving the name 
it$BCT(B a shared ip so the first site should come up if nothing is created
looks like there is somewhere a internal db that keeps the webalias or
something
(I did a httpd restart) even did a reboot



Steffan



-----Oorspronkelijk bericht-----
Van: Michael Stauber [mailto:bq (at mark) solarspeed.net] 
Verzonden: woensdag 21 mei 2008 19:07
Aan: coba-e (at mark) bluequartz.org
Onderwerp: [coba-e:13012] Re: Web Server Alias not deleting in codb

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ñÆ 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