webmcp
annotate doc/lighttpd.sample.conf @ 11:d76a8857ba62
Added ui.partial and other functions, which allow partial content replacement using XMLHttpRequests; Image support for ui.link
Also includes following changes:
- Fix for rocketcgi library to accept POST data content-types, which contain additional charset information.
- Support arrays passed as params to encode.url (only for keys ending with "[]")
- Version information changed to "1.0.7"
Documentation for added functions is not yet complete.
Also includes following changes:
- Fix for rocketcgi library to accept POST data content-types, which contain additional charset information.
- Support arrays passed as params to encode.url (only for keys ending with "[]")
- Version information changed to "1.0.7"
Documentation for added functions is not yet complete.
author | jbe/bsw |
---|---|
date | Fri Feb 12 18:40:22 2010 +0100 (2010-02-12) |
parents | 9fdfb27f8e67 |
children | 2f8d8edd1836 |
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/bsw@0 | 32 # base URL |
jbe/bsw@0 | 33 "^/webmcp-demo/(\?(.*))?$" => |
jbe/bsw@0 | 34 "/webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=0&_webmcp_module=index&_webmcp_view=index&$2", |
jbe/bsw@0 | 35 |
jbe/bsw@0 | 36 # module base URLs |
jbe/bsw@0 | 37 "^/webmcp-demo/([^/\?]+)/(\?(.*))?$" => |
jbe/bsw@0 | 38 "/webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_view=index&$3", |
jbe/bsw@0 | 39 |
jbe/bsw@0 | 40 # actions |
jbe/bsw@0 | 41 "^/webmcp-demo/([^/\?]+)/([^/\.\?]+)(\?(.*))?$" => |
jbe/bsw@0 | 42 "/webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_action=$2&$4", |
jbe/bsw@0 | 43 |
jbe/bsw@0 | 44 # views without numeric id or string ident |
jbe/bsw@0 | 45 "^/webmcp-demo/([^/\?]+)/([^/\.\?]+)\.([^/\?]+)(\?(.*))?$" => |
jbe/bsw@0 | 46 "/webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_view=$2&_webmcp_suffix=$3&$5", |
jbe/bsw@0 | 47 |
jbe/bsw@0 | 48 # views with numeric id or string ident |
jbe/bsw@0 | 49 "^/webmcp-demo/([^/\?]+)/([^/\?]+)/([^/\.\?]+)\.([^/\?]+)(\?(.*))?$" => |
jbe/bsw@0 | 50 "/webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=2&_webmcp_module=$1&_webmcp_view=$2&_webmcp_id=$3&_webmcp_suffix=$4&$6", |
jbe/bsw@0 | 51 |
jbe/bsw@0 | 52 ) |
jbe/bsw@0 | 53 |
jbe/bsw@0 | 54 # Redirects for URLs without trailing slashes |
jbe/bsw@0 | 55 url.redirect += ( |
jbe/bsw@0 | 56 # base URL without trailing slash |
jbe/bsw@0 | 57 "^/webmcp-demo$" => "/webmcp-demo/", |
jbe/bsw@0 | 58 # module base URL without trailing slash |
jbe/bsw@0 | 59 "^/webmcp-demo/([^/\?]+)$" => "/webmcp-demo/$1/", |
jbe/bsw@0 | 60 ) |