webmcp
annotate doc/apache.sample.conf @ 98:c92bd1ec1130
Fixed error in example webserver configurations (do not include question mark)
| author | jbe | 
|---|---|
| date | Mon Oct 15 16:57:39 2012 +0200 (2012-10-15) | 
| parents | db4bf2e6513c | 
| 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 |