NGINX Down

A7U

Verified User
Joined
Feb 14, 2023
Messages
11
Hi,

Today, even though I have not edited anything, NGINX went down for some reason after adding a new domain did not work (possibly corrupted vhost) and me restarting the apache+nginx setup using ./build rewrite_confs

Nginx failed to run, and now all websites are down. NGINX returned this error:
nginx: [emerg] unknown directive "http2" in /etc/nginx/nginx-vhosts.conf:43
 
I have upgraded NGINX and it seems to have fixed the issue and everything is now back up after rebuilding. But still not sure why this happened.
 
Hello,

It seems DirectAdmin was upgraded on the server and the newest version of DirectAdmin requires a newer NGINX version. Older NGINX versions will fail to run with new NGINX templates from Directadmin. There is no backward compatibility. That might become an issue for more servers.
 
Hello,

It seems DirectAdmin was upgraded on the server and the newest version of DirectAdmin requires a newer NGINX version. Older NGINX versions will fail to run with new NGINX templates from Directadmin. There is no backward compatibility. That might become an issue for more servers.
That makes sense. Any plans to have DirectAdmin automatically upgrade the packages it needs?
Or at least not upgrade itself when the packages are outdated.
 
That makes sense. Any plans to have DirectAdmin automatically upgrade the packages it needs?

It is the way to get services down more often than wanted.

Or at least not upgrade itself when the packages are outdated.

I believe you can disable DirectAdmin auto-updates by running the following command as root:

Code:
/usr/local/directadmin/directadmin config-set autoupdate 0 --restart

more details: https://docs.directadmin.com/directadmin/general-usage/updating-da.html#automated-updates
 
  • Like
Reactions: A7U
Back
Top