- Server operating system version
- Debian 10.13 Buster
- Plesk version and microupdate number
- Plesk Obsidian Version 18.0.48
Hi there,
my question is about /usr/local/psa/admin/conf/templates/default/domain/nginxDomainVirtualHost.php.
I want to create a custom one for it, that will write the ipv6 to the domian-conf files.
The default one look like this at my plesk obsidian installation:
Each Domain and subscription got its own IPv6 address and the serverwide IPv4 Address.
Thanks for help.
Martin
my question is about /usr/local/psa/admin/conf/templates/default/domain/nginxDomainVirtualHost.php.
I want to create a custom one for it, that will write the ipv6 to the domian-conf files.
The default one look like this at my plesk obsidian installation:
These are the beginning lines. So my question: The "Listen to" with port is specificated at line 9:<?php
/**
* @var Template_VariableAccessor $VAR
* @var array $OPT
*/
?>
<?php if ($VAR->domain->isSeoRedirectToLanding || $VAR->domain->isSeoRedirectToWww || $VAR->domain->isAliasRedirected): ?>
server {
listen <?php echo $OPT['ipAddress']->escapedAddress . ':' . $OPT['frontendPort'] . ($OPT['ssl'] ? ' ssl' : ''); ?>;
<?php if ($OPT['ssl']): ?>
<?php $sslCertificate = $VAR->server->sni && $VAR->domain->physicalHosting->sslCertificate ?
$VAR->domain->physicalHosting->sslCertificate :
$OPT['ipAddress']->sslCertificate; ?>
<?php if ($sslCertificate->ceFilePath): ?>
ssl_certificate <?php echo $sslCertificate->ceFilePath ?>;
ssl_certificate_key <?php echo $sslCertificate->ceFilePath ?>;
What has to be at line 10 to get the "Listen to" for the IPv6?listen <?php echo $OPT['ipAddress']->escapedAddress . ':' . $OPT['frontendPort'] . ($OPT['ssl'] ? ' ssl' : ''); ?>;
Each Domain and subscription got its own IPv6 address and the serverwide IPv4 Address.
Thanks for help.
Martin