summaryrefslogtreecommitdiff
path: root/tests/var-include.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.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.conf')
-rw-r--r--tests/var-include.conf41
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/var-include.conf b/tests/var-include.conf
new file mode 100644
index 00000000..ab8d22c6
--- /dev/null
+++ b/tests/var-include.conf
@@ -0,0 +1,41 @@
+
+debug.log-request-handling = "enable"
+debug.log-condition-handling = "enable"
+
+server.document-root = "/tmp/lighttpd/servers/www.example.org/pages/"
+server.pid-file = "/tmp/lighttpd/lighttpd.pid"
+
+## bind to port (default: 80)
+server.port = 2048
+
+## bind to localhost (default: all interfaces)
+server.bind = "localhost"
+server.errorlog = "/tmp/lighttpd/logs/lighttpd.error.log"
+server.name = "www.example.org"
+server.tag = "Apache 1.3.29"
+
+
+server.modules = ( "mod_redirect",
+ "mod_accesslog" )
+
+######################## MODULE CONFIG ############################
+
+
+accesslog.filename = "/tmp/lighttpd/logs/lighttpd.access.log"
+
+mimetype.assign = ( ".html" => "text/html" )
+
+url.redirect = ("^" => "/default")
+
+$HTTP["host"] == "www.example.org" {
+ server.document-root = "/tmp/lighttpd/servers/www.example.org/pages/"
+ server.name = "www.example.org"
+ url.redirect = ("^" => "/redirect")
+}
+$HTTP["host"] == "test.example.org" {
+ server.document-root = "/tmp/lighttpd/servers/www.example.org/pages/"
+ server.name = "test.example.org"
+ var.myvar = "good"
+ var.one = 1
+ include "var-include-sub.conf"
+}