From: Clinton Ebadi Date: Wed, 2 Apr 2014 20:18:27 +0000 (-0400) Subject: Use mod_disk_cache for wordpress wp-content and moin static files X-Git-Tag: release_20140409~4 X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/commitdiff_plain/3fbbc260d9d2735b48636ff7a48d9edebbe6a73e?ds=sidebyside Use mod_disk_cache for wordpress wp-content and moin static files --- diff --git a/lib/web_apps.dtl b/lib/web_apps.dtl index 5f783c8..76ef7ac 100644 --- a/lib/web_apps.dtl +++ b/lib/web_apps.dtl @@ -16,7 +16,8 @@ val addWordPress = \ loc : (location) -> val wordPress = \ host : (host) -> web host with - addWordPress "/" + addWordPress "/"; + diskCache "/wp-content" end; {{Create a WordPress blog with just the standard set-up code. The WordPress blog should be rooted at the vhost's DocumentRoot.}} @@ -30,7 +31,8 @@ val addMoinMoin = begin script <- Script; 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) + diskCache htdocs; + scriptAlias prefix (end_in_slash script); end; {{Add a MoinMoin wiki to a vhost.}}