Skip to content

Instantly share code, notes, and snippets.

@sveitser
Last active August 29, 2015 14:03
Show Gist options
  • Save sveitser/a801fa9d9af12e8d4028 to your computer and use it in GitHub Desktop.
Save sveitser/a801fa9d9af12e8d4028 to your computer and use it in GitHub Desktop.
liquid democracy apache test
<VirtualHost *:80>
ServerName fascism.dimsumlabs.com
DocumentRoot /opt/lf/liquid_feedback_frontend
RewriteEngine on
RewriteRule ^/$ /lf/ [R]
RewriteRule ^/lf/static/(.*)$ /lf/static/$1 [L,PT]
RewriteCond %{QUERY_STRING} (.*)?
RewriteRule ^/lf/$ /lf/webmcp-wrapper.lua?_webmcp_urldepth=0&_webmcp_module=index&_webmcp_view=index&%1 [PT]
RewriteCond %{QUERY_STRING} (.*)?
RewriteRule ^/lf/([^/]+)/$ /lf/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_view=index&%1 [PT]
RewriteCond %{QUERY_STRING} (.*)?
RewriteRule ^/lf/([^/]+)/([^/\.]+)$ /lf/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_action=$2&%1 [PT]
RewriteCond %{QUERY_STRING} (.*)?
RewriteRule ^/lf/([^/]+)/([^/\.]+)\.([^/]+)$ /lf/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_view=$2&_webmcp_suffix=$3&%1 [PT]
RewriteCond %{QUERY_STRING} (.*)?
RewriteRule ^/lf/([^/]+)/([^/]+)/([^/\.]+)\.([^/]+)$ /lf/webmcp-wrapper.lua?_webmcp_urldepth=2&_webmcp_module=$1&_webmcp_view=$2&_webmcp_id=$3&_webmcp_suffix=$4&%1 [PT]
Alias /lf/static /opt/lf/liquid_feedback_frontend/static
ScriptAlias /lf/ /opt/lf/webmcp/framework/cgi-bin/
<Directory "/opt/lf/webmcp/framework/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
<Location /lf>
SetEnv WEBMCP_APP_BASEPATH '/opt/lf/liquid_feedback_frontend'
SetEnv WEBMCP_CONFIG_NAME 'myconfig'
</Location>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment