webmcp
view doc/apache.sample.conf @ 122:ff39d4a310b9
Float parser for JSON library (non strict)
| author | jbe | 
|---|---|
| date | Fri Jul 25 22:50:12 2014 +0200 (2014-07-25) | 
| parents | c92bd1ec1130 | 
| children | 
 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&$3
    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>
