Feature #1194
closed
Partial matching in mod_evhost patterns
Added by Anonymous almost 18 years ago.
Updated over 8 years ago.
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
"This feature should make it easier .... to migrate into lighttpd" is what i meant anyway :)
-- Lfe
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.. =)
- defect != enhancement
- syntax not clear, %{2.1} instead of %2.1 would be better
- Target version deleted (
1.5.0)
- 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 {}.
- Status changed from New to Patch Pending
- Target version set to 1.4.43
implemented requiring %{2.1} instead of %2.1
- Status changed from Patch Pending to Fixed
- % Done changed from 0 to 100
Also available in: Atom
[mod_evhost] partial matching patterns (fixes #1194)
"%%" "%_" "%x" "%{x.y}" where x and y are single digit 0 - 9
and y is the 1-indexed position of a single char to add, similar to
http://httpd.apache.org/docs/2.4/mod/mod_vhost_alias.html
(but not supporting the entire Apache mod_vhost_alias syntax)
The lighttpd syntax for adding a single char at a give position requires
that the "%{x.y}" syntax, including the curly braces, which is different
from the Apache mod_vhost_alias syntax.
x-ref:
"Partial matching in mod_evhost patterns"
https://redmine.lighttpd.net/issues/1194