lighttpd 1.4.x https://www.lighttpd.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lighttpd1.4/tests/var-include-sub.conf

25 lines
769 B

# file to be included
$HTTP["host"] =~ "^" + server.name + "$" {
url.redirect = (
"^/include$" => "/good_include",
"^/concat$" => "/good_" + "concat",
"^/servername1$" => "/good_" + server.name,
"^/servername2$" => server.name + "/good_",
"^/servername3$" => "/good_" + server.name + "/",
"^/var.myvar$" => "/good_var_myvar" + var.myvar,
"^/myvar$" => "/good_myvar" + myvar,
"^/number1$" => "/good_number" + one,
"^/number2$" => one + "/good_number",
)
# without var prefix
mystr = "string"
mystr += "_append"
# from parent
one += 1
url.redirect += (
"^/array_append$" => "/good_array_append",
"^/string_append$" => "/good_" + mystr,
"^/number_append$" => "/good_" + one,
)
}