Project

General

Profile

Actions

Bug #436

closed

$HTTP["host"] =~ does not seem to support look-behind

Added by Anonymous over 19 years ago. Updated over 16 years ago.

Status:
Invalid
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:

Description

I am attempting to use the following configuration to catch 'checkit.myphotos.cc' and 'www.checkit.myphotos.cc' and direct them to one doc root, and 'simon.checkit.myphotos.cc' and 'manyothernames.checkit.myphotos.cc' and direct them to another.

$HTTPhost =~ "^(www\.)?checkit\.myphotos\.cc$" { ## Set document root etc.
}

$HTTPhost =~ "^(?<!www)\.checkit\.myphotos\.cc$" { ## Set document root etc.
}

At the very least it would be nice if there was some documentation describing what regex features are supported.

Keep up the good work!

-- Patrick Brennan

Actions #1

Updated by moo about 19 years ago

  • Status changed from New to Fixed
  • Resolution set to invalid

lighttpd handle regex with pcre, it is suggested u test it with pcre in shell, or preg_match() in php. and u can use "else" in 1.4.x. resolved as invalidate unless u can figure out the pcre support it while lighttpd can't

Actions #2

Updated by stbuehler over 16 years ago

  • Status changed from Fixed to Invalid
Actions

Also available in: Atom