Commit | Line | Data |
---|---|---|
18f63ec1 AC |
1 | {{Configuring common web applications}} |
2 | ||
3 | val addWordPress = \ loc : (location) -> | |
4 | location loc with | |
1a86b2d3 | 5 | phpVersion php5; |
a052bc91 CE |
6 | rewriteRule "^(.*/)?\.svn/" "-" [forbidden, last]; |
7 | rewriteRule "^(.*/)?\.git/" "-" [forbidden, last]; | |
8 | ||
18f63ec1 AC |
9 | rewriteCond "%{REQUEST_FILENAME}" "!-f" []; |
10 | rewriteCond "%{REQUEST_FILENAME}" "!-d" []; | |
a052bc91 CE |
11 | |
12 | rewriteRule "." "/index.php" [last]; | |
18f63ec1 AC |
13 | end; |
14 | {{Add a standard WordPress blog set-up code to a virtual host. The WordPress | |
15 | files should be rooted at the location you specify.}} | |
16 | ||
17 | val wordPress = \ host : (host) -> | |
18 | web host with | |
3fbbc260 CE |
19 | addWordPress "/"; |
20 | diskCache "/wp-content" | |
18f63ec1 AC |
21 | end; |
22 | {{Create a WordPress blog with just the standard set-up code. The WordPress blog should | |
23 | be rooted at the vhost's <tt>DocumentRoot</tt>.}} | |
24 | ||
9ae07226 | 25 | val moin_default_htdocs : (location) = "/moin_static198"; |
5ea8643a CE |
26 | {{Alias for static content used by the system-wide MoinMoin.}} |
27 | ||
18f63ec1 AC |
28 | val addMoinMoin = begin |
29 | htdocs <- Htdocs; | |
30 | prefix <- Prefix; | |
31 | script <- Script; | |
32 | ||
5ea8643a | 33 | alias htdocs "/afs/hcoop.net/common/app/moin/installed/moin19/lib/python2.6/site-packages/MoinMoin/web/static/htdocs"; |
3fbbc260 CE |
34 | diskCache htdocs; |
35 | scriptAlias prefix (end_in_slash script); | |
18f63ec1 AC |
36 | end; |
37 | {{Add a MoinMoin wiki to a vhost.}} | |
38 | ||
39 | val moinMoin = \ host : (host) -> | |
40 | web host with | |
41 | addMoinMoin where | |
5ea8643a | 42 | Htdocs = moin_default_htdocs; |
18f63ec1 AC |
43 | Prefix = "/" |
44 | end | |
45 | end; | |
46 | {{Create a new vhost with just a MoinMoin wiki.}} | |
5ea8643a CE |
47 | |
48 | (* Legacy version of moin macros *) | |
49 | ||
50 | val addMoinMoinOld = begin | |
51 | htdocs <- Htdocs; | |
52 | prefix <- Prefix; | |
53 | script <- Script; | |
54 | ||
55 | alias htdocs "/usr/share/moin/htdocs"; | |
56 | scriptAlias prefix (end_in_slash script) | |
57 | end; | |
660f5874 | 58 | {{Add a MoinMoin wiki to a vhost.}} |