webmcp
view doc/apache.sample.conf @ 94:eeea5b7f31d4
Bugfix in function param.get_id(...)
| author | jbe | 
|---|---|
| date | Wed Oct 10 18:27:59 2012 +0200 (2012-10-10) | 
| parents | 075ab292653d | 
| children | db4bf2e6513c | 
 line source
     1 # Apache modules cgi_module, env, rewrite and alias must be loaded before
     2 # Take a look in your main apache configuration!
     4 RewriteEngine on
     5 # do not rewrite static URLs
     6 RewriteRule ^/webmcp-demo/static/(.*)$ /webmcp-demo/static/$1
     7 # dynamic URLs
     8 RewriteRule ^/webmcp-demo/([^\?]+)/(\?(.*))?$ /webmcp-demo/webmcp-wrapper.lua?_webmcp_path=$1&$2
    10 # Directly serve static files
    11 Alias /webmcp-demo/static /__INSERT_LOCAL_FILE_PATH_TO_DEMO_APPLICATION_HERE__/static
    13 # Connect extarnal path to the webmcp cgi interface
    14 ScriptAlias /webmcp-demo/ /__INSERT_LOCAL_FILE_PATH_TO_WEBMCP_FRAMEWORK_HERE__/cgi-bin/
    16 # Allow CGI execution for the webmcp CGI interface
    17 <Directory "/__INSERT_LOCAL_FILE_PATH_TO_WEBMCP_FRAMEWORK_HERE__/cgi-bin">
    18     AllowOverride None
    19     Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
    20     Order allow,deny
    21     Allow from all
    22 </Directory>
    24 # Configure environment for demo application    
    25 <Location /webmcp-demo>
    26     SetEnv WEBMCP_APP_BASEPATH '/__INSERT_LOCAL_FILE_PATH_TO_DEMO_APPLICATION_HERE__'
    27     SetEnv WEBMCP_CONFIG_NAME 'demo'
    28 </Location>
