diff options
| author | picca <picca@web> | 2014-12-08 08:59:32 +0000 |
|---|---|---|
| committer | admin <admin@branchable.com> | 2014-12-08 08:59:32 +0000 |
| commit | 64ea1b79305590d8f1b18527da75eacefc754dd5 (patch) | |
| tree | 2fbc9e5198d4b24f1b65fab9db28ba265133742b /doc | |
| parent | 1d02d589c79781cc4b0bd82467edbdf64c40f34d (diff) | |
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/forum/Apache.siteEnabled_doesn_not_update_the_apache_config_file.mdwn | 34 |
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..23f54727 --- /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 |
