diff options
| author | Joey Hess <joey@kitenet.net> | 2014-04-13 21:04:34 -0400 |
|---|---|---|
| committer | Joey Hess <joey@kitenet.net> | 2014-04-13 21:04:34 -0400 |
| commit | 56dd63916925627773cb2cf590f1c8191470dccc (patch) | |
| tree | 108da2e6d6a13461db9f23376263fbf5328c371a /Propellor/Property/Apache.hs | |
| parent | fb1d65125b543b38151974e12a3ad3b672cc9aa6 (diff) | |
propellor spin
Diffstat (limited to 'Propellor/Property/Apache.hs')
| -rw-r--r-- | Propellor/Property/Apache.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Propellor/Property/Apache.hs b/Propellor/Property/Apache.hs index eab87862..f45ef9df 100644 --- a/Propellor/Property/Apache.hs +++ b/Propellor/Property/Apache.hs @@ -50,3 +50,13 @@ restarted = cmdProperty "service" ["apache2", "restart"] reloaded :: Property reloaded = Service.reloaded "apache2" + +-- | Configure apache to use SNI to differentiate between +-- https hosts. +multiSSL :: Property +multiSSL = "/etc/apache2/conf.d/ssl" `File.hasContent` + [ "NameVirtualHost *:443" + , "SSLStrictSNIVHostCheck off" + ] + `describe` "apache SNI enabled" + `onChange` reloaded |
