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 addMoinMoin = begin
25 alias htdocs "/usr/share/moin/htdocs";
26 scriptAlias prefix (end_in_slash script)
28 {{Add a MoinMoin wiki to a vhost.}}
30 val moinMoin = \ host : (host) ->
37 {{Create a new vhost with just a MoinMoin wiki.}}