SSLCertificateChainFile support
[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
5ea8643a
CE
20val moin_default_htdocs : (location) = "/moin_static196";
21{{Alias for static content used by the system-wide MoinMoin.}}
22
18f63ec1
AC
23val addMoinMoin = begin
24 htdocs <- Htdocs;
25 prefix <- Prefix;
26 script <- Script;
27
5ea8643a 28 alias htdocs "/afs/hcoop.net/common/app/moin/installed/moin19/lib/python2.6/site-packages/MoinMoin/web/static/htdocs";
b0963032 29 scriptAlias prefix (end_in_slash script)
18f63ec1
AC
30end;
31{{Add a MoinMoin wiki to a vhost.}}
32
33val moinMoin = \ host : (host) ->
34 web host with
35 addMoinMoin where
5ea8643a 36 Htdocs = moin_default_htdocs;
18f63ec1
AC
37 Prefix = "/"
38 end
39 end;
40{{Create a new vhost with just a MoinMoin wiki.}}
5ea8643a
CE
41
42(* Legacy version of moin macros *)
43
44val addMoinMoinOld = begin
45 htdocs <- Htdocs;
46 prefix <- Prefix;
47 script <- Script;
48
49 alias htdocs "/usr/share/moin/htdocs";
50 scriptAlias prefix (end_in_slash script)
51end;
52{{Add a MoinMoin wiki to a vhost.}}
53
54val moinMoinOld = \ host : (host) ->
55 webAt "mire" host with
56 addMoinMoinOld where
57 Htdocs = "/moin";
58 Prefix = "/"
59 end
60 end;
61{{Create a new vhost with just a MoinMoin wiki.}}