From: Jamie C. <jca...@we...> - 2004-11-11 22:18:40
|
On Fri, 2004-11-12 at 04:23, paddy wrote: > On Thu, Nov 11, 2004 at 10:43:25AM +1100, Jamie Cameron wrote: > > Yes, Virtualmin does respect existing configuration files. When you add > > a domain, it will simply append to httpd.conf, named.conf and so on. The > > files in /etc/webmin/virtual-server contain information about domains > > managed by Virtualmin, which may be a subset of all the domains on the > > system. It won't touch those that it doesn't manage .. > > Okay, so what is 'manage'. > > I create a new virtual-server with the button on /virtual-server/. > I select 'yes' for 'Web virtual server enabled?' it correctly edits > the releveant apache configuration, and I get an apache virtual server. > Great! > > Then I go to Apache in webmin, and I delete the virtual server. > I go back to the virtualmin virtual server and it still says > > 'Web virtual server enabled?' yes > > Then I press back on my browser a few times get worried that I might be > repeating my POSTs, repeat myself a bit, and finally admit to my > confusion and go to the commandline to find out what's going on. > Which is great for me, because I'm happy at the command line, but the > gui is not primarily for me. > > So I call up the virtualmin virtual server details, and its quite sure > that the website is enabled. I check in the /etc/webmin/virtual-server/domains > file because I can count the bytes more easily, and that's reassuring. > In the webmin log it says: > > virtual-server domain_setup.cgi "create" "domain" ... web=1 > virtual-server save_domain.cgi "modify" "domain" ... web=0 > virtual-server save_domain.cgi "modify" "domain" ... web=1 > apache save_vserv.cgi "virt" "delete" ... > virtual-server save_domain.cgi "modify" "domain" ... web=1 > > But there's no Web virtual server really, I've been and grepped httpd.conf > its not there. webmin apache knows its not there. So, its enabled, but > it's not there. Presumably, it could be 'not enabled', and yet be there > and working (although, perhaps not 'managed'?). > > So I imagine that if I 'save_domain.cgi "modify" "domain" ... web=0' > and then 'save_domain.cgi "modify" "domain" ... web=1', I'll get one ... > just a minute I'll just try that ... > > I'm not the only one that's confused ... > > > Deleting virtual website .. > > .. no Apache virtual host found! > > Okay, now I've got one. > > Am I missing something? The problem here is, you have confused Virtualmin by deleting the <virtualhost> for a domain that it still expects to exist. For each server, it keeps track of which features are supposed to be enabled in the domain's file in /etc/webmin/virtual-server/domains . Theoretically it could determine what features are active automatically by scanning httpd.conf, named.conf and so on, but this would be rather slow.. Unfortunately, it means that major changes made outside of Virtualmin will not be detected. However, you could still edit directives in that <virtualhost> or records in the DNS domain without causing any problems. - Jamie |