• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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