webmcp
annotate doc/lighttpd.sample.conf @ 110:0c4841af07a5
String truncating by counting Unicode codepoints in format.string(...)
(grapheme cluster boundary detection not implemented)
(grapheme cluster boundary detection not implemented)
author | jbe |
---|---|
date | Sun Jan 12 03:57:47 2014 +0100 (2014-01-12) |
parents | c92bd1ec1130 |
children |
rev | line source |
---|---|
jbe/bsw@0 | 1 # Lighttpd modules needed by WebMCP |
jbe/bsw@0 | 2 server.modules += ( |
jbe/bsw@0 | 3 "mod_cgi", |
jbe/bsw@0 | 4 "mod_alias", |
jbe/bsw@0 | 5 "mod_setenv", |
jbe/bsw@0 | 6 "mod_rewrite", |
jbe/bsw@0 | 7 "mod_redirect", |
jbe/bsw@0 | 8 ) |
jbe/bsw@0 | 9 |
jbe/bsw@0 | 10 # Enable CGI-Execution of *.lua files through lua binary |
jbe/bsw@0 | 11 cgi.assign += ( ".lua" => "/__INSERT_LOCAL_FILE_PATH_TO_LUA_BINARY_HERE__/lua" ) |
jbe/bsw@0 | 12 |
jbe/bsw@0 | 13 # Connect external URLs to server static files and the webmcp cgi interface |
jbe/bsw@0 | 14 alias.url += ( |
jbe/bsw@0 | 15 "/webmcp-demo/static/" => "/__INSERT_LOCAL_FILE_PATH_TO_DEMO_APPLICATION_HERE__/static/", |
jbe/bsw@0 | 16 "/webmcp-demo/" => "/__INSERT_LOCAL_FILE_PATH_TO_WEBMCP_FRAMEWORK_HERE__/cgi-bin/" ) |
jbe/bsw@0 | 17 |
jbe/bsw@0 | 18 # Configure environment for demo application |
jbe/bsw@0 | 19 $HTTP["url"] =~ "^/webmcp-demo/" { |
jbe/bsw@0 | 20 setenv.add-environment += ( |
jbe/bsw@0 | 21 "WEBMCP_APP_BASEPATH" => "/__INSERT_LOCAL_FILE_PATH_TO_DEMO_APPLICATION_HERE__", |
jbe/bsw@0 | 22 "WEBMCP_CONFIG_NAME" => "demo") |
jbe/bsw@0 | 23 } |
jbe/bsw@0 | 24 |
jbe/bsw@0 | 25 # URL beautification |
jbe/bsw@0 | 26 url.rewrite-once += ( |
jbe/bsw@0 | 27 |
jbe/bsw@0 | 28 # do not rewrite static URLs |
jbe/bsw@0 | 29 "^/webmcp-demo/static/(.*)$" => |
jbe/bsw@0 | 30 "/webmcp-demo/static/$1", |
jbe/bsw@0 | 31 |
jbe@91 | 32 # dynamic URLs |
jbe@96 | 33 "^/webmcp-demo/([^\?]*)(\?(.*))?$" => |
jbe@98 | 34 "/webmcp-demo/webmcp-wrapper.lua?_webmcp_path=$1&$3", |
jbe/bsw@0 | 35 |
jbe/bsw@0 | 36 ) |
jbe/bsw@0 | 37 |
jbe/bsw@0 | 38 # Redirects for URLs without trailing slashes |
jbe/bsw@0 | 39 url.redirect += ( |
jbe/bsw@0 | 40 # base URL without trailing slash |
jbe/bsw@0 | 41 "^/webmcp-demo$" => "/webmcp-demo/", |
jbe/bsw@0 | 42 # module base URL without trailing slash |
jbe/bsw@0 | 43 "^/webmcp-demo/([^/\?]+)$" => "/webmcp-demo/$1/", |
jbe/bsw@0 | 44 ) |