X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/5ea8643aeccc72893077726f7cb0c1ddb09a870e..58f4ce3bac23ceef3d84ab97144d1b4b50f27606:/lib/web_apps.dtl diff --git a/lib/web_apps.dtl b/lib/web_apps.dtl index 5d4da16..5f783c8 100644 --- a/lib/web_apps.dtl +++ b/lib/web_apps.dtl @@ -3,9 +3,13 @@ val addWordPress = \ loc : (location) -> location loc with phpVersion php5; + rewriteRule "^(.*/)?\.svn/" "-" [forbidden, last]; + rewriteRule "^(.*/)?\.git/" "-" [forbidden, last]; + rewriteCond "%{REQUEST_FILENAME}" "!-f" []; rewriteCond "%{REQUEST_FILENAME}" "!-d" []; - rewriteRule "." "/index.php" [last] + + rewriteRule "." "/index.php" [last]; end; {{Add a standard WordPress blog set-up code to a virtual host. The WordPress files should be rooted at the location you specify.}} @@ -49,13 +53,4 @@ val addMoinMoinOld = begin 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 +{{Add a MoinMoin wiki to a vhost.}} \ No newline at end of file