webmcp
annotate doc/apache.sample.conf @ 262:c3d539e33710
Replaced request.add_initializer(...) and request.add_variable(...) with request.for_each(...) and request.configure(...) which both execute the passed function once in any case when being called
author | jbe |
---|---|
date | Tue Mar 17 11:42:34 2015 +0100 (2015-03-17) |
parents | c92bd1ec1130 |
children |
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@93 | 7 # dynamic URLs |
jbe@98 | 8 RewriteRule ^/webmcp-demo/([^\?]*)(\?(.*))?$ /webmcp-demo/webmcp-wrapper.lua?_webmcp_path=$1&$3 |
jbe/bsw@0 | 9 |
jbe/bsw@0 | 10 # Directly serve static files |
jbe/bsw@0 | 11 Alias /webmcp-demo/static /__INSERT_LOCAL_FILE_PATH_TO_DEMO_APPLICATION_HERE__/static |
jbe/bsw@0 | 12 |
jbe/bsw@0 | 13 # Connect extarnal path to the webmcp cgi interface |
jbe/bsw@0 | 14 ScriptAlias /webmcp-demo/ /__INSERT_LOCAL_FILE_PATH_TO_WEBMCP_FRAMEWORK_HERE__/cgi-bin/ |
jbe/bsw@0 | 15 |
jbe/bsw@0 | 16 # Allow CGI execution for the webmcp CGI interface |
jbe/bsw@0 | 17 <Directory "/__INSERT_LOCAL_FILE_PATH_TO_WEBMCP_FRAMEWORK_HERE__/cgi-bin"> |
jbe/bsw@0 | 18 AllowOverride None |
jbe/bsw@0 | 19 Options ExecCGI -MultiViews +SymLinksIfOwnerMatch |
jbe/bsw@0 | 20 Order allow,deny |
jbe/bsw@0 | 21 Allow from all |
jbe/bsw@0 | 22 </Directory> |
jbe/bsw@0 | 23 |
jbe/bsw@0 | 24 # Configure environment for demo application |
jbe/bsw@0 | 25 <Location /webmcp-demo> |
jbe/bsw@0 | 26 SetEnv WEBMCP_APP_BASEPATH '/__INSERT_LOCAL_FILE_PATH_TO_DEMO_APPLICATION_HERE__' |
jbe/bsw@0 | 27 SetEnv WEBMCP_CONFIG_NAME 'demo' |
jbe/bsw@0 | 28 </Location> |
jbe/bsw@0 | 29 |