Open macklus opened 5 years ago
Happening very often with a lot of servers using Ubuntu 18.04.
Everyday when someone or something do rebuild web conf files, this start again.
I have to remove that include or create a empty auth file to avoid new problems.
This is a old bug related as fixed, but even with newest version and fresh installation this bug continue happening. https://forum.vestacp.com/viewtopic.php?t=15775
In the past I already tried to update templates to avoid this problem, but vestacp always revert the changes when get any update.
We've had this issue and had manually updated the template files to change the line
include %home%/%user%/conf/web/%domain%.auth;
to
include %home%/%user%/conf/web/%domain%.auth*;
which worked fine until there is an update when all the files, including custom tempates are overwritten and the is removed from the wordpress2_rewrite.stpl and wordpress2_rewrite.tpl file. Even our custom file, wordpress2_redirect.stpl and .tpl were changed by the update and the removed!
Today I wake up with another server down giving 521 http error. A complete new and recent installation. I am having this problem for more than one year.
I never saw one file on
%home%/%user%/web/%domain%/stats/
So why do we need that?
And why
/usr/local/vesta/install/ubuntu/18.04/templates/web/nginx/php-fpm/wordpress2_rewrite.stpl
has
include %home%/%user%/web/%domain%/stats/auth.conf*;
and
/usr/local/vesta/data/templates/web/nginx/php-fpm/wordpress2_rewrite.stpl
has
include %home%/%user%/conf/web/%domain%.auth;
What is the difference?
I am using Ubuntu 18.04. Seems the second one from rhel 7 rpm. I am trying to understand why sometimes ubuntu servers get "auth.conf" and sometimes "auth.conf*". And why this difference between rhel 7 and ubuntu 18;04?
We need to fix this problem asap. Very old problem.
Happened again with one customer today. The nginx was up, with no errors, but 80 and 443 do not work. I treid to restart nginx and then I saw *.auth error.
This server use Ubuntu 18.04.3 LTS.
Operating System (OS/VERSION):
Ubuntu Bionic
VestaCP Version:
0.9.8-23
Installed Software (what you got with the installer):
nginx, php-fpm, mysql
Steps to Reproduce:
when i add a new vhost, and not select auth for vstats (or not select vstats at all), file /home/user/conf/web/domain.auth do not exists, but in nginx.conf file i get:
wich hangs nginx restart