Feature #1194
closedPartial matching in mod_evhost patterns
Description
mod_evhost currently doesn't support matching parts in avaliable patterns such as "%2.1". This feature should make it easier for larger and "older" setups of mass vhosting in style with {{{/var/www/%3.1/%3.2/%3/ => /var/www/t/e/test/}}}
For a more detailed description; see apache's mod_vhost_alias. Additionally - apache also accepts negative 'counting' - but i'd say it's a separate ticket.
-- Lfe
Files
Updated by Anonymous over 17 years ago
"This feature should make it easier .... to migrate into lighttpd" is what i meant anyway :)
-- Lfe
Updated by Daniel-Brandt over 17 years ago
This is a first stab at the requested functionality.
This is written after spending about 20h reading through sourcecode and docs, so there might be stuff you want to change or make better.. at least it's a start.. =)
Updated by stbuehler about 16 years ago
- defect != enhancement
- syntax not clear, %{2.1} instead of %2.1 would be better
Updated by gstrauss about 8 years ago
- Description updated (diff)
- syntax not clear, %{2.1} instead of %2.1 would be better
Any subscribers interested in testing this out?
Since there might possibly be existing usage of mod_evhost which uses literal dots and digits in the template, perhaps there should be a directive to enable this feature if we provide the syntax without {} (which is how Apache supports it). However, literal {} in the template is unlikely, so if we provide the functionality and require surrounding {}, then those migrating from Apache syntax would need to make simple, straightforward changes to surround those specifiers with curly brackets {}.
Updated by gstrauss about 8 years ago
- Status changed from New to Patch Pending
- Target version set to 1.4.43
implemented requiring %{2.1} instead of %2.1
Updated by gstrauss about 8 years ago
- Status changed from Patch Pending to Fixed
- % Done changed from 0 to 100
Applied in changeset a3bba43b301ff03200599d0cff6a04bfbc305909.
Also available in: Atom