File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / tests / var-include-sub.conf
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 10:32:47 2013 UTC (10 years, 8 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_35p0, v1_4_35, v1_4_33, HEAD
1.4.33

# 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,
			)
}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>