Project

General

Profile

Actions

Feature #1194

closed

Partial matching in mod_evhost patterns

Added by Anonymous almost 17 years ago. Updated over 7 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_evhost
Target version:
ASK QUESTIONS IN Forums:

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

mod_evhost_dot_notation.patch (1.42 KB) mod_evhost_dot_notation.patch Patch for 1.4.x branch admin, 2007-05-25 12:03
evhost-1.5.patch (2.04 KB) evhost-1.5.patch dot additions patch for evhost in1.5 -- patrickdk Anonymous, 2007-05-25 19:33
mod-evhost_tests.patch (6.99 KB) mod-evhost_tests.patch Testcases for 1.4.x admin, 2007-05-28 14:58

Related issues 1 (0 open1 closed)

Has duplicate Feature #2049: VirtualDocumentroot accept partial parts from subdomains %3.1, %3.2, %3.3 etcDuplicate2009-08-11Actions
Actions #1

Updated by Anonymous almost 17 years ago

"This feature should make it easier .... to migrate into lighttpd" is what i meant anyway :)

-- Lfe

Actions #2

Updated by Daniel-Brandt almost 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.. =)

Actions #3

Updated by stbuehler over 15 years ago

- defect != enhancement
- syntax not clear, %{2.1} instead of %2.1 would be better

Actions #4

Updated by gstrauss over 7 years ago

  • Assignee deleted (jan)
Actions #5

Updated by gstrauss over 7 years ago

  • Target version deleted (1.5.0)
Actions #6

Updated by gstrauss over 7 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 {}.

Actions #7

Updated by gstrauss over 7 years ago

  • Status changed from New to Patch Pending
  • Target version set to 1.4.43

implemented requiring %{2.1} instead of %2.1

Actions #8

Updated by gstrauss over 7 years ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100
Actions

Also available in: Atom