• 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!
  • 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.

NGINX - 2 Threads 504 Error

email669

New Pleskian
Hi,

I have been trying to figure out what is causing random 504 errors on my server.

I have been able to replicate the error by opening more than 1 http connection at a time. If I open 2 connections at the same time, the first connection will receive data but all other connections will receive a 504 error.

I think I need to add the NGINX directives

location / {
proxy_http_version 1.1;
proxy_set_header Connection "";
}

When I try to place this line of code in the Additional NGINX directives, it tells me

Invalid nginx configuration: nginx: [emerg] duplicate location "/" in /var/www/vhosts/system/domain.com/conf/vhost_nginx.conf:13 nginx: configuration file /etc/nginx/nginx.conf test failed

Looking through nginx files, I see many of them say

# ATTENTION!
# DO NOT MODIFY...

How can I set my proxy_http_version variable correctly with Plesk not overriding the setting?
 
I have tried editing the files

/usr/local/psa/admin/conf/templates/default/server/nginxVhosts.php
/usr/local/psa/admin/conf/templates/default/nginxWebmailPartial.php

and running /usr/local/psa/admin/bin/httpdmng --reconfigure-all
service httpd restart
service nginx restart

But the files in /var/www/vhosts/system/site.com/conf/ are never with the new variables set.
 
I was able to get it working, but i'm not really sure which file did it.

There are a couple more inside of /usr/local/psa/admin/conf/templates/default/ that I changed.

Thanks!
 
Back
Top