1 {{Configuring common web applications}}
3 val addWordPress = \ loc : (location) ->
5 rewriteRule "^(.*/)?\.svn/" "-" [forbidden, last];
6 rewriteRule "^(.*/)?\.git/" "-" [forbidden, last];
8 rewriteCond "%{REQUEST_FILENAME}" "!-f" [];
9 rewriteCond "%{REQUEST_FILENAME}" "!-d" [];
11 rewriteRule "." "/index.php" [last];
13 {{Add a standard WordPress blog set-up code to a virtual host. The WordPress
14 files should be rooted at the location you specify.}}
16 val wordPress = \ host : (host) -> \\ config : Vhost ->
19 diskCache "/wp-content";
22 {{Create a WordPress blog with just the standard set-up code. The WordPress blog should
23 be rooted at the vhost's <tt>DocumentRoot</tt>.}}
25 val moin_default_htdocs : (location) = "/moin_static199";
26 {{Alias for static content used by the system-wide MoinMoin.}}
28 val addMoinMoin = begin
33 alias htdocs "/afs/hcoop.net/common/app/moin/installed/moin19/lib/python2.7/site-packages/MoinMoin/web/static/htdocs";
34 (*diskCache htdocs;*) (* disabled 2017-02-01 clinton : don't think this helps after all *)
35 scriptAlias prefix (end_in_slash script);
37 {{Add a MoinMoin wiki to a vhost.}}
39 val moinMoin = \ host : (host) -> \\ config : Vhost ->
42 Htdocs = moin_default_htdocs;
47 {{Create a new vhost with just a MoinMoin wiki.}}
49 (* Legacy version of moin macros *)
51 val addMoinMoinOld = begin
56 alias htdocs "/usr/share/moin/htdocs";
57 scriptAlias prefix (end_in_slash script)
59 {{Add a MoinMoin wiki to a vhost.}}