summaryrefslogtreecommitdiff
path: root/doc/forum/Apache.siteEnabled_doesn_not_update_the_apache_config_file.mdwn
diff options
context:
space:
mode:
authorJoey Hess2014-12-09 00:05:47 -0400
committerJoey Hess2014-12-09 00:05:47 -0400
commit914f762d01f43b31920667049362d6f56f61c121 (patch)
treee402eda00bc1d803fbae458c8f7748246a24f901 /doc/forum/Apache.siteEnabled_doesn_not_update_the_apache_config_file.mdwn
parent57520809299789956479256f68119a3043cf2f9a (diff)
parentcc1ec7e2e2c5bf6d48d66adb1eafe8518bac20da (diff)
Merge branch 'master' of ssh://propellor.branchable.com
Diffstat (limited to 'doc/forum/Apache.siteEnabled_doesn_not_update_the_apache_config_file.mdwn')
-rw-r--r--doc/forum/Apache.siteEnabled_doesn_not_update_the_apache_config_file.mdwn34
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/forum/Apache.siteEnabled_doesn_not_update_the_apache_config_file.mdwn b/doc/forum/Apache.siteEnabled_doesn_not_update_the_apache_config_file.mdwn
new file mode 100644
index 00000000..b678d8d0
--- /dev/null
+++ b/doc/forum/Apache.siteEnabled_doesn_not_update_the_apache_config_file.mdwn
@@ -0,0 +1,34 @@
+Hello,
+
+Still working on the reprepro property :)
+
+Here A property that I am using to publish a repository via apache (this is a prototype)
+
+ website :: String -> Property
+ website hn = toProp $ Apache.siteEnabled hn apachecfg
+ where
+ apachecfg = [ "<VirtualHost *>"
+ , "DocumentRoot " ++ basePath
+ , "<Directory " ++ basePath ++ ">"
+ , " Options Indexes FollowSymLinks Multiviews"
+ , " Order allow,deny"
+ , Apache.allowAll
+ , "</Directory>"
+ ] ++ concatMap deny ["db", "conf", "incoming"]
+ ++ ["</VirtualHost>"]
+
+ deny dir = [ "<Directory \"" ++ basePath ++ "apt/*/" ++ dir ++ "\">"
+ , " Order deny,allow"
+ , " Deny from all"
+ , "</Directory>"
+ ]
+
+during my test I am runing the config.hs with
+runhaskell config.hs (it work the first time, the apache config files are ok)
+
+but when I do a modification on the apachecfg and rerun the runhaskell,
+the config files are not updated. I need to remove them to have an updated version.
+
+cheers
+
+Fred