X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/fec6c9c4b9c4cccad963d6c918a83bb522fca969..5ea8643aeccc72893077726f7cb0c1ddb09a870e:/lib/web_apps.dtl diff --git a/lib/web_apps.dtl b/lib/web_apps.dtl index 0ae5222..5d4da16 100644 --- a/lib/web_apps.dtl +++ b/lib/web_apps.dtl @@ -17,12 +17,15 @@ val wordPress = \ host : (host) -> {{Create a WordPress blog with just the standard set-up code. The WordPress blog should be rooted at the vhost's DocumentRoot.}} +val moin_default_htdocs : (location) = "/moin_static196"; +{{Alias for static content used by the system-wide MoinMoin.}} + val addMoinMoin = begin htdocs <- Htdocs; prefix <- Prefix; script <- Script; - alias htdocs "/usr/share/moin/htdocs"; + alias htdocs "/afs/hcoop.net/common/app/moin/installed/moin19/lib/python2.6/site-packages/MoinMoin/web/static/htdocs"; scriptAlias prefix (end_in_slash script) end; {{Add a MoinMoin wiki to a vhost.}} @@ -30,8 +33,29 @@ end; val moinMoin = \ host : (host) -> web host with addMoinMoin where - Htdocs = "/moin"; + Htdocs = moin_default_htdocs; Prefix = "/" end end; {{Create a new vhost with just a MoinMoin wiki.}} + +(* Legacy version of moin macros *) + +val addMoinMoinOld = begin + htdocs <- Htdocs; + prefix <- Prefix; + script <- Script; + + alias htdocs "/usr/share/moin/htdocs"; + scriptAlias prefix (end_in_slash script) +end; +{{Add a MoinMoin wiki to a vhost.}} + +val moinMoinOld = \ host : (host) -> + webAt "mire" host with + addMoinMoinOld where + Htdocs = "/moin"; + Prefix = "/" + end + end; +{{Create a new vhost with just a MoinMoin wiki.}} \ No newline at end of file