summaryrefslogtreecommitdiff
path: root/data/lighttpd/lighttpd-1.4.53/tests/var-include-sub.conf
diff options
context:
space:
mode:
Diffstat (limited to 'data/lighttpd/lighttpd-1.4.53/tests/var-include-sub.conf')
-rw-r--r--data/lighttpd/lighttpd-1.4.53/tests/var-include-sub.conf38
1 files changed, 38 insertions, 0 deletions
diff --git a/data/lighttpd/lighttpd-1.4.53/tests/var-include-sub.conf b/data/lighttpd/lighttpd-1.4.53/tests/var-include-sub.conf
new file mode 100644
index 000000000..d8f169697
--- /dev/null
+++ b/data/lighttpd/lighttpd-1.4.53/tests/var-include-sub.conf
@@ -0,0 +1,38 @@
+# 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,
+ )
+}