Safe Haskell | None |
---|---|
Language | Haskell98 |
- installed :: Property NoInfo
- restarted :: Property NoInfo
- reloaded :: Property NoInfo
- type ConfigLine = String
- type ConfigFile = [ConfigLine]
- siteEnabled :: Domain -> ConfigFile -> RevertableProperty NoInfo
- siteEnabled' :: Domain -> ConfigFile -> Property NoInfo
- siteDisabled :: Domain -> Property NoInfo
- siteAvailable :: Domain -> ConfigFile -> Property NoInfo
- modEnabled :: String -> RevertableProperty NoInfo
- listenPorts :: [Port] -> Property NoInfo
- siteCfg :: Domain -> [FilePath]
- multiSSL :: Property NoInfo
- allowAll :: ConfigLine
- iconDir :: ConfigLine
- type WebRoot = FilePath
- virtualHost :: Domain -> Port -> WebRoot -> RevertableProperty NoInfo
- virtualHost' :: Domain -> Port -> WebRoot -> [ConfigLine] -> RevertableProperty NoInfo
- httpsVirtualHost :: Domain -> WebRoot -> AgreeTOS -> RevertableProperty NoInfo
- httpsVirtualHost' :: Domain -> WebRoot -> AgreeTOS -> [ConfigLine] -> RevertableProperty NoInfo
Documentation
type ConfigLine = String Source
type ConfigFile = [ConfigLine] Source
siteEnabled' :: Domain -> ConfigFile -> Property NoInfo Source
siteDisabled :: Domain -> Property NoInfo Source
siteAvailable :: Domain -> ConfigFile -> Property NoInfo Source
listenPorts :: [Port] -> Property NoInfo Source
Make apache listen on the specified ports.
Note that ports are also specified inside a site's config file, so that also needs to be changed.
multiSSL :: Property NoInfo Source
Configure apache to use SNI to differentiate between https hosts.
This was off by default in apache 2.2.22. Newver versions enable it by default. This property uses the filename used by the old version.
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.
Config file fragment that can be inserted into a VirtualHost stanza to allow apache to display directory index icons.
virtualHost :: Domain -> Port -> WebRoot -> RevertableProperty NoInfo Source
A basic virtual host, publishing a directory, and logging to the combined apache log file. Not https capable.
virtualHost' :: Domain -> Port -> WebRoot -> [ConfigLine] -> RevertableProperty NoInfo Source
Like virtualHost
but with additional config lines added.
httpsVirtualHost :: Domain -> WebRoot -> AgreeTOS -> RevertableProperty NoInfo Source
A virtual host using https, with the certificate obtained
using letsEncrypt
.
http connections are redirected to https.
Example:
httpsVirtualHost "example.com" "/var/www" (LetsEncrypt.AgreeTOS (Just "me@my.domain"))
Note that reverting this property does not remove the certificate from letsencrypt's cert store.
httpsVirtualHost' :: Domain -> WebRoot -> AgreeTOS -> [ConfigLine] -> RevertableProperty NoInfo Source
Like httpsVirtualHost
but with additional config lines added.