webmcp

changeset 93:075ab292653d

Updated apache.sample.conf to include simplified configuration
author jbe
date Wed Oct 10 18:23:40 2012 +0200 (2012-10-10)
parents 774a891dc74f
children eeea5b7f31d4
files doc/apache.sample.conf
line diff
     1.1 --- a/doc/apache.sample.conf	Wed Oct 10 17:57:40 2012 +0200
     1.2 +++ b/doc/apache.sample.conf	Wed Oct 10 18:23:40 2012 +0200
     1.3 @@ -4,16 +4,8 @@
     1.4  RewriteEngine on
     1.5  # do not rewrite static URLs
     1.6  RewriteRule ^/webmcp-demo/static/(.*)$ /webmcp-demo/static/$1
     1.7 -# base URL
     1.8 -RewriteRule ^/webmcp-demo/(\?(.*))?$ /webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=0&_webmcp_module=index&_webmcp_view=index&$2
     1.9 -# module base URLs
    1.10 -RewriteRule ^/webmcp-demo/([^/\?]+)/(\?(.*))?$ /webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_view=index&$3
    1.11 -# actions
    1.12 -RewriteRule ^/webmcp-demo/([^/\?]+)/([^/\.\?]+)(\?(.*))?$ /webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_action=$2&$4
    1.13 -# views without numeric id or string ident
    1.14 -RewriteRule ^/webmcp-demo/([^/\?]+)/([^/\.\?]+)\.([^/\?]+)(\?(.*))?$ "/webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_view=$2&_webmcp_suffix=$3&$5
    1.15 -# views with numeric id or string ident
    1.16 -RewriteRule ^/webmcp-demo/([^/\?]+)/([^/\?]+)/([^/\.\?]+)\.([^/\?]+)(\?(.*))?$ /webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=2&_webmcp_module=$1&_webmcp_view=$2&_webmcp_id=$3&_webmcp_suffix=$4&$6
    1.17 +# dynamic URLs
    1.18 +RewriteRule ^/webmcp-demo/([^\?]+)/(\?(.*))?$ /webmcp-demo/webmcp-wrapper.lua?_webmcp_path=$1&$2
    1.19  
    1.20  # Directly serve static files
    1.21  Alias /webmcp-demo/static /__INSERT_LOCAL_FILE_PATH_TO_DEMO_APPLICATION_HERE__/static

Impressum / About Us