1 {{Configuring common web applications}}
3 val addWordPress = \ loc : (location) ->
5 rewriteCond "%{REQUEST_FILENAME}" "!-f" [];
6 rewriteCond "%{REQUEST_FILENAME}" "!-d" [];
7 rewriteRule "." "/index.php" [last]
9 {{Add a standard WordPress blog set-up code to a virtual host. The WordPress
10 files should be rooted at the location you specify.}}
12 val wordPress = \ host : (host) ->
16 {{Create a WordPress blog with just the standard set-up code. The WordPress blog should
17 be rooted at the vhost's <tt>DocumentRoot</tt>.}}
19 val addMoinMoin = begin
24 alias htdocs "/usr/share/moin/htdocs";
25 scriptAlias prefix (end_in_slash script)
27 {{Add a MoinMoin wiki to a vhost.}}
29 val moinMoin = \ host : (host) ->
36 {{Create a new vhost with just a MoinMoin wiki.}}