Page 1 of 1

Solve the error "domain.auth failed (2: No such file or directory)"

Posted: Tue Apr 19, 2022 3:24 pm
by andrebastos
Hey guys!

I had a recurring and serious problem that I hope I have resolved and I will share it with you now.

The problem happens when installing and renew SSL .
Cannot restart NGINX due to missing "domain.auth" file in NGINX.

This is the problem:

Code: Select all

nginx: [emerg] open() "/home/USER/conf/web/DOMAIN.auth" failed (2: No such file or directory) in /home/USER/conf/web/DOMAINnginx.ssl.conf:xx
To resolve this I removed the line in all nginx/php-fpm templates:

Code: Select all

sed -i '/%domain%.auth/g' /usr/local/vesta/data/templates/web/nginx/php-fpm/*
Now, even after SSL renewals, nginx should restart normally.

Hope my tip works helps you all.

--
André Bastos
Hospedagem de Sites