1 {{Configuring common web applications}}
3 val addWordPress = \ loc : (location) ->
6 rewriteCond "%{REQUEST_FILENAME}" "!-f" [];
7 rewriteCond "%{REQUEST_FILENAME}" "!-d" [];
8 rewriteRule "." "/index.php" [last]
10 {{Add a standard WordPress blog set-up code to a virtual host. The WordPress
11 files should be rooted at the location you specify.}}
13 val wordPress = \ host : (host) ->
17 {{Create a WordPress blog with just the standard set-up code. The WordPress blog should
18 be rooted at the vhost's <tt>DocumentRoot</tt>.}}
20 val moin_default_htdocs : (location) = "/moin_static196";
21 {{Alias for static content used by the system-wide MoinMoin.}}
23 val addMoinMoin = begin
28 alias htdocs "/afs/hcoop.net/common/app/moin/installed/moin19/lib/python2.6/site-packages/MoinMoin/web/static/htdocs";
29 scriptAlias prefix (end_in_slash script)
31 {{Add a MoinMoin wiki to a vhost.}}
33 val moinMoin = \ host : (host) ->
36 Htdocs = moin_default_htdocs;
40 {{Create a new vhost with just a MoinMoin wiki.}}
42 (* Legacy version of moin macros *)
44 val addMoinMoinOld = begin
49 alias htdocs "/usr/share/moin/htdocs";
50 scriptAlias prefix (end_in_slash script)
52 {{Add a MoinMoin wiki to a vhost.}}
54 val moinMoinOld = \ host : (host) ->
55 webAt "mire" host with
61 {{Create a new vhost with just a MoinMoin wiki.}}