Item12537: add support to disable/enable specific domains via configure
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release:
... without touching the directory structure.
Imho, something like ...
$Foswiki::cfg{VirtualHostingContrib}{ServerEnabled} = {
'some.domain1.com' => 0,
'some.domain2.com' => 0,
'some.domain3.com' => 0,
'some.domain4.com' => 0,
};
seems straight ahead.
Without, you'd have to move the
.../vhosts/some.domain1.com
to
.../vhosts/_some.domain1.com
on the commandline.
A domain is disabled when it is listed in
{ServerEnabled}
and set to zero. Otherwise it is enabled.
Patch attached.
Antonio, what do you think?
--
MichaelDaum - 01 Jul 2013
Please let me know if it is okay when I co-maintain this plugin.
--
MichaelDaum - 04 Jul 2013
If you want the option to explicit list domains which are disabled, why don't you call it
ServerDisabled
and make the configuration a list instead of a hash?
(on runtime you could turn it into a hash for faster lookups, where you only care if a given key exists or not regardless of the value).
--
AntonioTerceiro - 06 Jul 2013
Regarding co-maintainance: yes, please. Just make sure the extension still supports Foswiki 1.0
--
AntonioTerceiro - 06 Jul 2013
Let's call it
DisabledServers
--
MichaelDaum - 10 Jul 2013