propellor spin
This commit is contained in:
parent
ed83966460
commit
660f77c28f
|
@ -68,3 +68,19 @@ multiSSL = "/etc/apache2/conf.d/ssl" `File.hasContent`
|
||||||
]
|
]
|
||||||
`describe` "apache SNI enabled"
|
`describe` "apache SNI enabled"
|
||||||
`onChange` reloaded
|
`onChange` reloaded
|
||||||
|
|
||||||
|
-- | Config file fragment that can be inserted into a <Directory>
|
||||||
|
-- stanza to allow global read access to the directory.
|
||||||
|
--
|
||||||
|
-- Works with multiple versions of apache that have different ways to do
|
||||||
|
-- it.
|
||||||
|
allowAll :: String
|
||||||
|
allowAll = unlines
|
||||||
|
[ "<IfVersion < 2.4>"
|
||||||
|
, "Order allow,deny"
|
||||||
|
, "allow from all"
|
||||||
|
, "</IfVersion>"
|
||||||
|
, "<IfVersion >= 2.4>"
|
||||||
|
, "Require all granted"
|
||||||
|
, "</IfVersion>"
|
||||||
|
]
|
||||||
|
|
|
@ -61,9 +61,7 @@ oldUseNetServer hosts = propertyList ("olduse.net server")
|
||||||
, " <Directory " ++ datadir ++ "/>"
|
, " <Directory " ++ datadir ++ "/>"
|
||||||
, " Options Indexes FollowSymlinks"
|
, " Options Indexes FollowSymlinks"
|
||||||
, " AllowOverride None"
|
, " AllowOverride None"
|
||||||
-- I had this in the file before.
|
, Apache.allowAll
|
||||||
-- This may be needed by a newer version of apache?
|
|
||||||
--, " Require all granted"
|
|
||||||
, " </Directory>"
|
, " </Directory>"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
@ -578,9 +576,7 @@ legacyWebSites = propertyList "legacy web sites"
|
||||||
, "<Directory /var/www>"
|
, "<Directory /var/www>"
|
||||||
, " Options Indexes FollowSymLinks MultiViews ExecCGI Includes"
|
, " Options Indexes FollowSymLinks MultiViews ExecCGI Includes"
|
||||||
, " AllowOverride None"
|
, " AllowOverride None"
|
||||||
, " Order allow,deny"
|
, Apache.allowAll
|
||||||
, " allow from all"
|
|
||||||
, " Require all granted"
|
|
||||||
, "</Directory>"
|
, "</Directory>"
|
||||||
, "ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/"
|
, "ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/"
|
||||||
|
|
||||||
|
@ -588,24 +584,19 @@ legacyWebSites = propertyList "legacy web sites"
|
||||||
, "<Directory /usr/lib/cgi-bin>"
|
, "<Directory /usr/lib/cgi-bin>"
|
||||||
, " AllowOverride None"
|
, " AllowOverride None"
|
||||||
, " Options ExecCGI"
|
, " Options ExecCGI"
|
||||||
, " Order allow,deny"
|
, Apache.allowAll
|
||||||
, " allow from all"
|
|
||||||
, "</Directory>"
|
, "</Directory>"
|
||||||
, "Alias /pipermail/ /var/lib/mailman/archives/public/"
|
, "Alias /pipermail/ /var/lib/mailman/archives/public/"
|
||||||
, "<Directory /var/lib/mailman/archives/public/>"
|
, "<Directory /var/lib/mailman/archives/public/>"
|
||||||
, " Options Indexes MultiViews FollowSymlinks"
|
, " Options Indexes MultiViews FollowSymlinks"
|
||||||
, " AllowOverride None"
|
, " AllowOverride None"
|
||||||
, " Order allow,deny"
|
, Apache.allowAll
|
||||||
, " Allow from all"
|
|
||||||
, " Require all granted"
|
|
||||||
, "</Directory>"
|
, "</Directory>"
|
||||||
, "Alias /images/ /usr/share/images/"
|
, "Alias /images/ /usr/share/images/"
|
||||||
, "<Directory /usr/share/images/>"
|
, "<Directory /usr/share/images/>"
|
||||||
, " Options Indexes MultiViews"
|
, " Options Indexes MultiViews"
|
||||||
, " AllowOverride None"
|
, " AllowOverride None"
|
||||||
, " Order allow,deny"
|
, Apache.allowAll
|
||||||
, " Allow from all"
|
|
||||||
, " Require all granted"
|
|
||||||
, "</Directory>"
|
, "</Directory>"
|
||||||
|
|
||||||
, "RewriteEngine On"
|
, "RewriteEngine On"
|
||||||
|
@ -672,7 +663,7 @@ legacyWebSites = propertyList "legacy web sites"
|
||||||
, "<Directory /home/anna/html/>"
|
, "<Directory /home/anna/html/>"
|
||||||
, " Options Indexes ExecCGI"
|
, " Options Indexes ExecCGI"
|
||||||
, " AllowOverride None"
|
, " AllowOverride None"
|
||||||
, " Require all granted"
|
, Apache.allowAll
|
||||||
, "</Directory>"
|
, "</Directory>"
|
||||||
]
|
]
|
||||||
, alias "sows-ear.kitenet.net"
|
, alias "sows-ear.kitenet.net"
|
||||||
|
@ -683,7 +674,7 @@ legacyWebSites = propertyList "legacy web sites"
|
||||||
, "<Directory /srv/web/sows-ear.kitenet.net>"
|
, "<Directory /srv/web/sows-ear.kitenet.net>"
|
||||||
, " Options FollowSymLinks"
|
, " Options FollowSymLinks"
|
||||||
, " AllowOverride None"
|
, " AllowOverride None"
|
||||||
, " Require all granted"
|
, Apache.allowAll
|
||||||
, "</Directory>"
|
, "</Directory>"
|
||||||
]
|
]
|
||||||
, alias "wortroot.kitenet.net"
|
, alias "wortroot.kitenet.net"
|
||||||
|
@ -694,7 +685,7 @@ legacyWebSites = propertyList "legacy web sites"
|
||||||
, "<Directory /srv/web/wortroot.kitenet.net>"
|
, "<Directory /srv/web/wortroot.kitenet.net>"
|
||||||
, " Options FollowSymLinks"
|
, " Options FollowSymLinks"
|
||||||
, " AllowOverride None"
|
, " AllowOverride None"
|
||||||
, " Require all granted"
|
, Apache.allowAll
|
||||||
, "</Directory>"
|
, "</Directory>"
|
||||||
]
|
]
|
||||||
, alias "joey.kitenet.net"
|
, alias "joey.kitenet.net"
|
||||||
|
@ -703,7 +694,7 @@ legacyWebSites = propertyList "legacy web sites"
|
||||||
, "<Directory /home/joey/html/>"
|
, "<Directory /home/joey/html/>"
|
||||||
, " Options Indexes ExecCGI"
|
, " Options Indexes ExecCGI"
|
||||||
, " AllowOverride None"
|
, " AllowOverride None"
|
||||||
, " Require all granted"
|
, Apache.allowAll
|
||||||
, "</Directory>"
|
, "</Directory>"
|
||||||
|
|
||||||
, "RewriteEngine On"
|
, "RewriteEngine On"
|
||||||
|
|
Loading…
Reference in New Issue