# Apache modules cgi_module, env, rewrite and alias must be loaded before # Take a look in your main apache configuration! RewriteEngine on # do not rewrite static URLs RewriteRule ^/webmcp-demo/static/(.*)$ /webmcp-demo/static/$1 # dynamic URLs RewriteRule ^/webmcp-demo/([^\?]*)(\?(.*))?$ /webmcp-demo/webmcp-wrapper.lua?_webmcp_path=$1&$3 # Directly serve static files Alias /webmcp-demo/static /__INSERT_LOCAL_FILE_PATH_TO_DEMO_APPLICATION_HERE__/static # Connect extarnal path to the webmcp cgi interface ScriptAlias /webmcp-demo/ /__INSERT_LOCAL_FILE_PATH_TO_WEBMCP_FRAMEWORK_HERE__/cgi-bin/ # Allow CGI execution for the webmcp CGI interface AllowOverride None Options ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all # Configure environment for demo application SetEnv WEBMCP_APP_BASEPATH '/__INSERT_LOCAL_FILE_PATH_TO_DEMO_APPLICATION_HERE__' SetEnv WEBMCP_CONFIG_NAME 'demo'