document backreference to regex conditional
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@620 152afb58-edef-0310-8abb-c4023f1b3aa9svn/tags/lighttpd-1.4.2
parent
ff8637dee0
commit
f08537ee87
|
@ -254,6 +254,10 @@ static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
|
|||
#### url handling modules (rewrite, redirect, access)
|
||||
#url.rewrite = ( "^/$" => "/server-status" )
|
||||
#url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
|
||||
#### both rewrite/redirect support back reference to regex conditional using %n
|
||||
#$HTTP["host"] =~ "^www\.(.*)" {
|
||||
# url.redirect = ( "^/(.*)" => "http://%1/$1" )
|
||||
#}
|
||||
|
||||
#
|
||||
# define a pattern for the host url finding
|
||||
|
|
|
@ -34,3 +34,6 @@ url.redirect
|
|||
url.redirect = ( "^/show/([0-9]+)/([0-9]+)$" => "http://www.example.org/show.php?isdn=$1&page$2",
|
||||
"^/get/([0-9]+)/([0-9]+)$" => "http://www.example.org/get.php?isdn=$1&page$2" )
|
||||
|
||||
$HTTP["host"] =~ "^www\.(.*)" {
|
||||
url.redirect = ( "^/(.*)" => "http://%1/$1" )
|
||||
}
|
||||
|
|
|
@ -51,3 +51,7 @@ query-string.::
|
|||
|
||||
url.rewrite-once = ( "^/id/([0-9]+)$" => "/index.php?id=$1",
|
||||
"^/link/([a-zA-Z]+)" => "/index.php?link=$1" )
|
||||
|
||||
$HTTP["host"] =~ "^([^.]+)\.(this-is-mass-vhost\.com)" {
|
||||
url.rewrite-once = ( "^/(.*)" => "/%2/%1/$1" )
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue