summaryrefslogtreecommitdiff
path: root/tests/var-include-sub.conf
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2005-08-08 14:40:47 +0000
committerJan Kneschke <jan@kneschke.de>2005-08-08 14:40:47 +0000
commit6e78c2c8dfb69684adee82ee28b38c137156bca9 (patch)
tree09f561df82237dc0b2a159557b1f4428ded2156f /tests/var-include-sub.conf
parent8073d5fe9f720a0564dbced1fdef187f5c19ffa3 (diff)
downloadlighttpd1.4-6e78c2c8dfb69684adee82ee28b38c137156bca9.tar.gz
lighttpd1.4-6e78c2c8dfb69684adee82ee28b38c137156bca9.zip
user defined variable, compute on parsing: string+string, int+int, array+array, var+=expression.
"include" sub configuration file. (merged ([308], [309], [306], [305]) git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@520 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/var-include-sub.conf')
-rw-r--r--tests/var-include-sub.conf24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/var-include-sub.conf b/tests/var-include-sub.conf
new file mode 100644
index 00000000..4ec85d35
--- /dev/null
+++ b/tests/var-include-sub.conf
@@ -0,0 +1,24 @@
+# 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,
+ )
+}