webmcp
diff doc/lighttpd.sample.conf @ 91:2f8d8edd1836
URL parsing inside WebMCP to simplify webserver configuration
| author | jbe |
|---|---|
| date | Wed Oct 10 17:41:46 2012 +0200 (2012-10-10) |
| parents | 9fdfb27f8e67 |
| children | db4bf2e6513c |
line diff
1.1 --- a/doc/lighttpd.sample.conf Tue Aug 21 00:59:08 2012 +0200 1.2 +++ b/doc/lighttpd.sample.conf Wed Oct 10 17:41:46 2012 +0200 1.3 @@ -29,25 +29,9 @@ 1.4 "^/webmcp-demo/static/(.*)$" => 1.5 "/webmcp-demo/static/$1", 1.6 1.7 - # base URL 1.8 - "^/webmcp-demo/(\?(.*))?$" => 1.9 - "/webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=0&_webmcp_module=index&_webmcp_view=index&$2", 1.10 - 1.11 - # module base URLs 1.12 - "^/webmcp-demo/([^/\?]+)/(\?(.*))?$" => 1.13 - "/webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_view=index&$3", 1.14 - 1.15 - # actions 1.16 - "^/webmcp-demo/([^/\?]+)/([^/\.\?]+)(\?(.*))?$" => 1.17 - "/webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_action=$2&$4", 1.18 - 1.19 - # views without numeric id or string ident 1.20 - "^/webmcp-demo/([^/\?]+)/([^/\.\?]+)\.([^/\?]+)(\?(.*))?$" => 1.21 - "/webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_view=$2&_webmcp_suffix=$3&$5", 1.22 - 1.23 - # views with numeric id or string ident 1.24 - "^/webmcp-demo/([^/\?]+)/([^/\?]+)/([^/\.\?]+)\.([^/\?]+)(\?(.*))?$" => 1.25 - "/webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=2&_webmcp_module=$1&_webmcp_view=$2&_webmcp_id=$3&_webmcp_suffix=$4&$6", 1.26 + # dynamic URLs 1.27 + "^/webmcp-demo/([^\?])(\?(.*))?$" => 1.28 + "/webmcp-demo/webmcp-wrapper.lua?_webmcp_path=$1&$2", 1.29 1.30 ) 1.31