webapps/moin: inject custom config before moin config
authorClinton Ebadi <clinton@unknownlamer.org>
Tue, 31 Jan 2017 05:50:52 +0000 (00:50 -0500)
committerClinton Ebadi <clinton@unknownlamer.org>
Tue, 31 Jan 2017 05:55:40 +0000 (00:55 -0500)
In Apache land, first matching alias wins and we're aliasing `/' to
moin so injecting user config after that deprives them of the ability
to customize aliases. Reverse configuration so they stand a chance.

lib/web_apps.dtl

index 124a6d0..5a19ae6 100644 (file)
@@ -39,11 +39,11 @@ end;
 
 val moinMoin = \ host : (host) -> \\ config : Vhost ->
   web host with
 
 val moinMoin = \ host : (host) -> \\ config : Vhost ->
   web host with
+    config;
     addMoinMoin where
       Htdocs = moin_default_htdocs;
       Prefix = "/"
     end;
     addMoinMoin where
       Htdocs = moin_default_htdocs;
       Prefix = "/"
     end;
-    config
   end;
 {{Create a new vhost with just a MoinMoin wiki.}}
 
   end;
 {{Create a new vhost with just a MoinMoin wiki.}}