• 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 nginx.conf file is empty for one domain only

magiks

New Pleskian
Server operating system version
CentOS Linux 7.9.2009
Plesk version and microupdate number
Plesk Obsidian v18.0.52_build1800230516.12
Hi all,

As the title indicates, the nginx configuration file for a domain is empty, this causes the impossibility of accessing the site concerned and the name of the certificate no longer matches. (/var/www/vhosts/system/domain.tld/conf/nginx.conf)
Any changes to the web hosting seem to fail to rewrite correctly this configuration file.

A regeneration of the file via the Webserver Configurations Troubleshooter tool recreated an empty file.
plesk repair web command also not working.

The other sites hosted on the server are functioning normally.

And to give a little more context.
The problem has been present for a few days, the ruleset of the ModSecurity firewall has been changed from Atomic to Comodo.
Perhaps there is a causal link.

Any help or advice will be helpful, many thanks in advance.
Quentin

Capture d’écran 2023-06-02 à 16.58.07.png

Capture d’écran 2023-06-02 à 17.10.57.png
 
Please run
# plesk repair db -y
to fix database inconsistencies. Probably there are some. Then run
# plesk repair web <your domain name>
to recreate the config files.
 
Please run
# plesk repair db -y
to fix database inconsistencies. Probably there are some. Then run
# plesk repair web <your domain name>
to recreate the config files.

Hello,

Thank you for the reply.
Unfortunately no error message came up with this command.
The config file still is the same.
What can we do next to troubleshoot this ?

Regards,
Quentin

Capture d’écran 2023-06-05 à 08.53.48.png
 
Do you have custom configuration templates in place?
We don’t have custom configuration templates in place.

However the problem is partially solved! (moved to another website)
It appears that the website defined by default under Tools and settings > IP Addresses is the one causing the problem with the configuration file.
By changing the current default website, the configuration file is "normal" again and the website is functional.

Hope this can help some people.

Thanks again for your help,
Quentin
 
We don’t have custom configuration templates in place.

However the problem is partially solved! (moved to another website)
It appears that the website defined by default under Tools and settings > IP Addresses is the one causing the problem with the configuration file.
By changing the current default website, the configuration file is "normal" again and the website is functional.

Hope this can help some people.

Thanks again for your help,
Quentin
Hello, we encountered the same problem with empty nginx config files this week at 2 wordpress multisites on our server. They where redirecting to 1 other multisite on the server. This multisite had a normal nginx.config file. Was your problem also wirh wordpress multisites?
 
Back
Top