From b22201e36b608ba38f4d741268d04e7de3a966b8 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 9 Dec 2014 00:34:24 -0400 Subject: Fix Apache.siteEnabled to update the config file and reload apache when configuration has changed. --- config-joey.hs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'config-joey.hs') diff --git a/config-joey.hs b/config-joey.hs index 9e0cf90f..78954805 100644 --- a/config-joey.hs +++ b/config-joey.hs @@ -76,6 +76,20 @@ darkstar = host "darkstar.kitenet.net" & Apt.buildDep ["git-annex"] `period` Daily & Docker.configured ! Docker.docked gitAnnexAndroidDev + & website "foo" + +website :: String -> RevertableProperty +website hn = Apache.siteEnabled hn apachecfg + where + apachecfg = [ "" + , "DocumentRoot /tmp/xx" + , "" + , " Options Indexes FollowSymLinks Multiviews" + , " Order allow,deny" + , Apache.allowAll + , "" + , "" + ] clam :: Host clam = standardSystem "clam.kitenet.net" Unstable "amd64" -- cgit v1.3-2-g0d8e