DirectAdmin 1.61.4 to 1.61.5 update is available. Nginx 1.19.2 to 1.19.3 update is available.
once updated, brings to:
nginx: [emerg] unknown directive "|NGINX_REDIRECTS|" in /usr/local/directadmin/data/users/admin/nginx.conf:32 nginx: configuration file /etc/nginx/nginx.conf test failed
The new release of the control might have a bug, or templates shipped with the version are outdated.
Here is a quick patch for fixing it.
Do you have custom templates? Check whether or not you have files:
If the files exist you will need to modify them.
You don't need to create them if you don't have them.
In case you don't have custom templates you will deal with the default templates, which can be found under
So now open either custom or default templates and add the following line:
into the files and save them.
And then run the following command:
It should fix the issue, you might control it with the following way:
You should see something like this:
[root@server custom]# nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful [root@server custom]#