Web Hosting Talk







View Full Version : After deleting virtual host, won't let me administer my other sites!


addady
03-20-2001, 10:50 AM
We just got a brand new RaQ4i. I setup a whole bunch of websites, they were
all working fine. I decided to delete a test one that we didn't need any
more. So I went into the Site Management page, and clicked on the trash can
next to that virtal host. I confirmed that I wanted to delete it.


The screen didn't refresh and show it missing, so I manually refreshed the
page and it disappeared. When I immediately went to click ont he green
icon to administer one of my other sites it came back with:

http://xxx.xxx.xxx.xxx:81/.cobalt/siteManage/webserver.xxx.com/

File Not Found
The requested URL was not found on this server.

When I tried to administer any of the other sites I get the same thing. It's
like when I deleted that one virtual host, it screwed up something that's
preventing me from being able to administer my server! I rebooted the server
thinking that when it was booting up it might re-build or detect and fix any
problems with the virtual host config file or whatever it uses for
management...but I still can't do anything with my server now. All the sites
respond fine if I want to access mail from them or access them via the web
or FTP into them...so the RaQ still has them setup and running, I just can't
administer them.

Any suggestions?

addady
03-22-2001, 11:25 AM
#!/usr/bin/perl
# creates the admin server pages for all domains on a RaQ 3 or RaQ 4
# except for the home site

require Cobalt::Layout;
require Cobalt::Admserv;
require Cobalt::Vsite;
require Cobalt::Meta;
use Cobalt::Product;

foreach my $vhost (Cobalt::Vsite::vsite_list()) {
next unless ($$vhost[1]);
my $fqdn = $$vhost[1];
my ($group) = Cobalt::Meta::query("type" => "vsite",
"keys" => ["name"],
"where" => ["name", "<>", "default",
"and", "fqdn", "=", "$fqdn"]);
# next if($group eq "home");
if($group) {
warn "creating admserver pages for group: $group sitename: $fqdn";
Cobalt::Layout::layout_siteManage($group, $fqdn);
Cobalt::Admserv::admserv_set_access(qq[$AdminPages_dir/siteManage/$group], 'require', 'group', $group);
unlink("$AdminPages_dir/siteManage/$fqdn") if ("$AdminPages_dir/siteManage/$fqdn");
symlink("$AdminPages_dir/siteManage/$group",
"$AdminPages_dir/siteManage/$fqdn");
} else {
warn "unkown fqdn: $fqdn or group: $group";
}
}