\pm_Hook_WebServer

Hook for injecting into web server configuration files

Summary

Methods
Properties
Constants
getDomainApacheConfig()
getDomainNginxConfig()
getDomainNginxProxyConfig()
getDomainIisConfig()
getWebmailApacheConfig()
getWebmailNginxConfig()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A

Methods

getDomainApacheConfig()

getDomainApacheConfig(\pm_Domain  $domain) : string

Retrieve string which will be inserted into <VirtualHost></VirtualHost> directive in vhost config

Parameters

\pm_Domain $domain

Returns

string

getDomainNginxConfig()

getDomainNginxConfig(\pm_Domain  $domain) : string

Retrieve string which will be inserted into server {.

..} directive in vhost config

Parameters

\pm_Domain $domain

Returns

string

getDomainNginxProxyConfig()

getDomainNginxProxyConfig(\pm_Domain  $domain) : string

Retrieve string which will be inserted into server {.

..} directive in vhost config in case nginx is working in proxy mode

Parameters

\pm_Domain $domain

Returns

string

getDomainIisConfig()

getDomainIisConfig(\pm_Domain  $domain) : string

Retrieve xml as string which will be inserted to Plesk IIS configurator

Parameters

\pm_Domain $domain

Returns

string

getWebmailApacheConfig()

getWebmailApacheConfig(\pm_Domain  $domain, string  $type) : string

Retrieve string which will be inserted into <VirtualHost></VirtualHost> directive in webmail config

Parameters

\pm_Domain $domain
string $type

webmail type

Returns

string

getWebmailNginxConfig()

getWebmailNginxConfig(\pm_Domain  $domain, string  $type) : string

Retrieve string which will be inserted into server {.

..} directive in webmail config

Parameters

\pm_Domain $domain
string $type

webmail type

Returns

string