• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Resolved Creating a new domain failed due to "duplicate default server" in nginx config

JoeShmoe

New Pleskian
New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [emerg] a duplicate default server for x.x.x.x:80 in /etc/nginx/plesk.conf.d/ip_default/default.domain.conf:6 nginx: configuration file /etc/nginx/nginx.conf test failed.
and
New configuration files for the Apache web server were not created due to the errors in configuration templates: Template processing failed: file = /opt/psa/admin/conf/templates/default/nginxDomainVhost.php, error = Template_Exception: Template domain/service/nginxSeoSafeRedirects.php doesn't exists file: /opt/psa/admin/plib/Template/Processor.php line: 28 code: 0 Previous error: Template_Exception: Template domain/service/nginxSeoSafeRedirects.php doesn't exists file: /opt/psa/admin/plib/Template/Processor.php line: 28 code: 0 Previous error: Template_Exception: Template domain/service/nginxSeoSafeRedirects.php doesn't exists file: /opt/psa/admin/plib/Template/Finder.php line: 36 code: 0.
Plesk Obsidian 18.0.28
Ubuntu 18.04.4 LTS‬


EDIT: issue caused by custom templates, which I made to remove the X-Powered-By PleskLin header. Copying and editing new default templates resolved it.
Please make removing those headers an option in Plesk. Using custom templates potentially breaks web config generation after every update
 
Last edited:
Hi JoeShmoe,
i have same issue
New configuration files for the Apache web server were not created due to the errors in configuration templates: Template processing failed: file = /opt/psa/admin/conf/templates/default/nginxDomainVhost.php, error = Template_Exception: Template domain/service/nginxSeoSafeRedirects.php doesn't exists file: /opt/psa/admin/plib/Template/Processor.php line: 28 code: 0 Previous error: Template_Exception: Template domain/service/nginxSeoSafeRedirects.php doesn't exists file: /opt/psa/admin/plib/Template/Processor.php line: 28 code: 0 Previous error: Template_Exception: Template domain/service/nginxSeoSafeRedirects.php doesn't exists file: /opt/psa/admin/plib/Template/Finder.php line: 36 code: 0. Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter
could you please let me know how do you remove the X-Powered-By PleskLin header?
im newbie, please help
 
Last edited:
Hi JoeShmoe,

I have the same message after removing X-Powered-By PleskLin.

Can you tell me how i can do that? I don't have that much experience, it would help me step by step if possible

Copying and editing new default templates resolved it.

Thanks
 
Back
Top