Annotation of embedaddon/lighttpd/tests/var-include-sub.conf, revision 1.1
1.1 ! misho 1: # file to be included
! 2: $HTTP["host"] =~ "^" + server.name + "$" {
! 3: url.redirect = (
! 4: "^/include$" => "/good_include",
! 5: "^/concat$" => "/good_" + "concat",
! 6: "^/servername1$" => "/good_" + server.name,
! 7: "^/servername2$" => server.name + "/good_",
! 8: "^/servername3$" => "/good_" + server.name + "/",
! 9: "^/var.myvar$" => "/good_var_myvar" + var.myvar,
! 10: "^/myvar$" => "/good_myvar" + myvar,
! 11: "^/number1$" => "/good_number" + one,
! 12: "^/number2$" => one + "/good_number",
! 13: "^/env$" => "/" + env.env_test,
! 14: )
! 15: num = 1
! 16: num2 = 2
! 17: num2 += 1
! 18: # without var prefix
! 19: mystr = "string"
! 20: mystr += "_append"
! 21: # from parent
! 22: one += 1
! 23: url.redirect += (
! 24: "^/array_append$" => "/good_array_append",
! 25: "^/string_append$" => "/good_" + mystr,
! 26: "^/number_append$" => "/good_" + one,
! 27: )
! 28:
! 29: cmd = "echo cmd_ok=456"
! 30: include_shell cmd
! 31: url.redirect += (
! 32: "^/include_shell$" => "/good_include_shell_" + cmd_ok,
! 33: )
! 34: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>