Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 35 lines (33 sloc) 0.971 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
# 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",
"^/env$" => "/" + env.env_test,
)
num = 1
num2 = 2
num2 += 1
# 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,
)

cmd = "echo cmd_ok=456"
include_shell cmd
url.redirect += (
"^/include_shell$" => "/good_include_shell_" + cmd_ok,
)
}
Something went wrong with that request. Please try again.