Item12537: add support to disable/enable specific domains via configure

pencil
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: VirtualHostingContrib
Branches: trunk
Reported By: MichaelDaum
Waiting For:
Last Change By: MichaelDaum
... 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
 

ItemTemplate edit

Summary add support to disable/enable specific domains via configure
ReportedBy MichaelDaum
Codebase
SVN Range
AppliesTo Extension
Component VirtualHostingContrib
Priority Enhancement
CurrentState Closed
WaitingFor
Checkins VirtualHostingContrib:fa87f9d424eb
ReleasedIn n/a
CheckinsOnBranches trunk
trunkCheckins VirtualHostingContrib:fa87f9d424eb
Release01x01Checkins
I Attachment Action Size Date Who Comment
vhc.patchpatch vhc.patch manage 3 K 01 Jul 2013 - 12:58 MichaelDaum  
Topic revision: r6 - 10 Jul 2013, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy