Class Symbiosis::ConfigFiles::Apache
In: httpd/lib/symbiosis/config_files/apache.rb
Parent: Symbiosis::ConfigFile
Array Utmp EventMachine::Connection ApacheLogger StandardError CrontabFormatError Enumerable IPAddr ::IPAddr Host Range Domain ConfigFile Prosody Tinydns Apache Webalizer Directory IPListDirectory TemplateDirectory Domains Alert Crontab CrontabRecord StateDB Check Runner TCPConnection Test Process BlacklistDB Template Logtail Pattern Ports Blacklist Monitor ConfigFiles Utils Firewall Symbiosis dot/f_0.png

Methods

Public Instance methods

Returns an array of Symbiosis::IPAddr objects, one for each IP available for this domain, if defined, or the system‘s primary IPv4 and IPv6 addresses.

Returns the domain‘s cgi-bin directory.

This disables a site whose configuration is contained in fn. This function makes sure that the site is enabled, before disabling it.

Return the domain config directory.

If no domain has been defined, nil is returned.

This enables a site by symlinking the self.filename to fn.

If fn is not specified, then self.filename is used, with sites-available changed to sites-enabled.

If the force flag is set to true, then any file in the way is removed first.

This checks a site has its config file linked into the sites-enabled directory. If no filename has been specified, it defaults to self.filename with "sites-available" transformed to "sites-enabled".

This function returns true if self.filename is symlinked to fn.

TODO: Should be elsewhere

Returns the domain‘s htdocs directory.

Return just the first IP for use in templates.

Return all the IPs as apache-compatible strings for use in templates.

Checks to see if a domain has mandatory ssl.

If no domain is set, then this returns false.

Tests the file using Apache and a temporary file. Returns true if apache2 deems the snippet OK.

Return a ServerAlias snippet for all server aliases for a domain.

Returns the certificate, key, and bundle configuration lines.

This does not have an explicit validation step. That should be handled elsewhere.

[Validate]