You are here

function Provision_Service_http_https::init_server in Aegir HTTPS 7.3

2 calls to Provision_Service_http_https::init_server()
Provision_Service_http_https_apache::init_server in submodules/apache_https/drush/Provision/Service/http/https/apache.php
Initialize the configuration files.
Provision_Service_http_https_nginx::init_server in submodules/nginx_https/drush/Provision/Service/http/https/nginx.php
Initialize the configuration files.
2 methods override Provision_Service_http_https::init_server()
Provision_Service_http_https_apache::init_server in submodules/apache_https/drush/Provision/Service/http/https/apache.php
Initialize the configuration files.
Provision_Service_http_https_nginx::init_server in submodules/nginx_https/drush/Provision/Service/http/https/nginx.php
Initialize the configuration files.

File

drush/Provision/Service/http/https.php, line 20
The base implementation of the HTTPS capabale web service.

Class

Provision_Service_http_https
The base class for HTTPS supporting servers.

Code

function init_server() {
  parent::init_server();

  // HTTPS Port.
  $this->server
    ->setProperty('https_port', $this
    ->default_https_port());

  // HTTPS certificate store.
  // The certificates are generated from here, and distributed to the servers,
  // as needed.
  $this->server->ssld_path = $this->server
    ->service('Certificate')
    ->get_source_path('');

  // HTTPS certificate store for this server.
  // This server's certificates will be stored here.
  $this->server->http_ssld_path = "{$this->server->config_path}/ssl.d";
  $this->server->https_enabled = 1;
  $this->server->https_key = 'default';
}