annotate doc/apache.sample.conf @ 53:a1c77838c2e5
Documentation for "attr", "a_attr" and "form_attr" arguments to function ui.link{...}
author |
jbe |
date |
Fri Jun 10 15:32:29 2011 +0200 (2011-06-10) |
parents |
9fdfb27f8e67 |
children |
075ab292653d |
rev |
line source |
jbe/bsw@0
|
1 # Apache modules cgi_module, env, rewrite and alias must be loaded before
|
jbe/bsw@0
|
2 # Take a look in your main apache configuration!
|
jbe/bsw@0
|
3
|
jbe/bsw@0
|
4 RewriteEngine on
|
jbe/bsw@0
|
5 # do not rewrite static URLs
|
jbe/bsw@0
|
6 RewriteRule ^/webmcp-demo/static/(.*)$ /webmcp-demo/static/$1
|
jbe/bsw@0
|
7 # base URL
|
jbe/bsw@0
|
8 RewriteRule ^/webmcp-demo/(\?(.*))?$ /webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=0&_webmcp_module=index&_webmcp_view=index&$2
|
jbe/bsw@0
|
9 # module base URLs
|
jbe/bsw@0
|
10 RewriteRule ^/webmcp-demo/([^/\?]+)/(\?(.*))?$ /webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_view=index&$3
|
jbe/bsw@0
|
11 # actions
|
jbe/bsw@0
|
12 RewriteRule ^/webmcp-demo/([^/\?]+)/([^/\.\?]+)(\?(.*))?$ /webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_action=$2&$4
|
jbe/bsw@0
|
13 # views without numeric id or string ident
|
jbe/bsw@0
|
14 RewriteRule ^/webmcp-demo/([^/\?]+)/([^/\.\?]+)\.([^/\?]+)(\?(.*))?$ "/webmcp-demo/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_view=$2&_webmcp_suffix=$3&$5
|
jbe/bsw@0
|
15 # views with numeric id or string ident
|
jbe/bsw@0
|
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
|
jbe/bsw@0
|
17
|
jbe/bsw@0
|
18 # Directly serve static files
|
jbe/bsw@0
|
19 Alias /webmcp-demo/static /__INSERT_LOCAL_FILE_PATH_TO_DEMO_APPLICATION_HERE__/static
|
jbe/bsw@0
|
20
|
jbe/bsw@0
|
21 # Connect extarnal path to the webmcp cgi interface
|
jbe/bsw@0
|
22 ScriptAlias /webmcp-demo/ /__INSERT_LOCAL_FILE_PATH_TO_WEBMCP_FRAMEWORK_HERE__/cgi-bin/
|
jbe/bsw@0
|
23
|
jbe/bsw@0
|
24 # Allow CGI execution for the webmcp CGI interface
|
jbe/bsw@0
|
25 <Directory "/__INSERT_LOCAL_FILE_PATH_TO_WEBMCP_FRAMEWORK_HERE__/cgi-bin">
|
jbe/bsw@0
|
26 AllowOverride None
|
jbe/bsw@0
|
27 Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
|
jbe/bsw@0
|
28 Order allow,deny
|
jbe/bsw@0
|
29 Allow from all
|
jbe/bsw@0
|
30 </Directory>
|
jbe/bsw@0
|
31
|
jbe/bsw@0
|
32 # Configure environment for demo application
|
jbe/bsw@0
|
33 <Location /webmcp-demo>
|
jbe/bsw@0
|
34 SetEnv WEBMCP_APP_BASEPATH '/__INSERT_LOCAL_FILE_PATH_TO_DEMO_APPLICATION_HERE__'
|
jbe/bsw@0
|
35 SetEnv WEBMCP_CONFIG_NAME 'demo'
|
jbe/bsw@0
|
36 </Location>
|
jbe/bsw@0
|
37
|