1 {{Configuring common web applications}}
3 val addWordPress = \ loc : (location) ->
6 rewriteRule "^(.*/)?\.svn/" "-" [forbidden, last];
7 rewriteRule "^(.*/)?\.git/" "-" [forbidden, last];
9 rewriteCond "%{REQUEST_FILENAME}" "!-f" [];
10 rewriteCond "%{REQUEST_FILENAME}" "!-d" [];
12 rewriteRule "." "/index.php" [last];
14 {{Add a standard WordPress blog set-up code to a virtual host. The WordPress
15 files should be rooted at the location you specify.}}
17 val wordPress = \ host : (host) -> \\ config : Vhost ->
20 diskCache "/wp-content";
23 {{Create a WordPress blog with just the standard set-up code. The WordPress blog should
24 be rooted at the vhost's <tt>DocumentRoot</tt>.}}
26 val moin_default_htdocs : (location) = "/moin_static198";
27 {{Alias for static content used by the system-wide MoinMoin.}}
29 val addMoinMoin = begin
34 alias htdocs "/afs/hcoop.net/common/app/moin/installed/moin19/lib/python2.6/site-packages/MoinMoin/web/static/htdocs";
36 scriptAlias prefix (end_in_slash script);
38 {{Add a MoinMoin wiki to a vhost.}}
40 val moinMoin = \ host : (host) -> \\ config : Vhost ->
43 Htdocs = moin_default_htdocs;
48 {{Create a new vhost with just a MoinMoin wiki.}}
50 (* Legacy version of moin macros *)
52 val addMoinMoinOld = begin
57 alias htdocs "/usr/share/moin/htdocs";
58 scriptAlias prefix (end_in_slash script)
60 {{Add a MoinMoin wiki to a vhost.}}