Remove fritz from webNodes, remove mire from slave dns
[hcoop/domtool2.git] / lib / web_apps.dtl
CommitLineData
18f63ec1
AC
1{{Configuring common web applications}}
2
3val addWordPress = \ loc : (location) ->
4 location loc with
1a86b2d3 5 phpVersion php5;
18f63ec1
AC
6 rewriteCond "%{REQUEST_FILENAME}" "!-f" [];
7 rewriteCond "%{REQUEST_FILENAME}" "!-d" [];
8 rewriteRule "." "/index.php" [last]
9 end;
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.}}
12
13val wordPress = \ host : (host) ->
14 web host with
15 addWordPress "/"
16 end;
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>.}}
19
20val addMoinMoin = begin
21 htdocs <- Htdocs;
22 prefix <- Prefix;
23 script <- Script;
24
25 alias htdocs "/usr/share/moin/htdocs";
b0963032 26 scriptAlias prefix (end_in_slash script)
18f63ec1
AC
27end;
28{{Add a MoinMoin wiki to a vhost.}}
29
30val moinMoin = \ host : (host) ->
31 web host with
32 addMoinMoin where
4e38d526 33 Htdocs = "/moin";
18f63ec1
AC
34 Prefix = "/"
35 end
36 end;
37{{Create a new vhost with just a MoinMoin wiki.}}