Description

This function checks whether the Apache web server supports SNI.

Examples 


https://hostname.example.com:2083/cpsess##########/execute/SSL/is_sni_supported

$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// Does the Apache web server support SNI?
$SSL_is_sni_supported = $cpanel->uapi(
    'SSL', 'is_sni_supported'
);

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
 
# Does the Apache web server support SNI?
my $SSL_is_sni_supported $cpliveapi->uapi(
    'SSL', 'is_sni_supported',
);

<!-- Does the Apache web server support SNI? -->
[% data = execute( 'SSL', 'is_sni_supported', ); %]
[% FOREACH q = data %]
     <p>
         [% q %]
     </p>
[% END %]

uapi --user=username SSL is_sni_supported

{
  "messages": null,
  "errors": null,
  "status": 1,
  "metadata": {
    
  },
  "data": 1
}

Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample
dataBooleanWhether the Apache web server supports SNI.
  • 1 — Supported.
  • 0 — Not supported.
1