We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
nginx is broken - custom templates?
nginx is broken - custom templates?
Hi,
Since the update, my server has broken :( nginx won't reboot.
I get:
Where are the templates held in Github? On my server they are at /usr/local/vesta/data/templates/web/nginx , but I can't seem to find default.tpl / default.stpl in the source code (downloaded from github), and I need to look at them to see why its not working. I guess its coming from this in my template:
It's weird though, as thats inside a server {} block, so I'm not sure why its complaining about it.
TIA
Andy
Since the update, my server has broken :( nginx won't reboot.
I get:
Code: Select all
Jan 02 07:55:39 admin.steampunkjunkies.com systemd[1]: Starting LSB: Stop/start nginx...
Jan 02 07:55:39 admin.steampunkjunkies.com nginx[19554]: nginx: [emerg] location "/phpmyadmin" is outside location "/vstats/" in /etc/nginx/conf.d/phpmyadmin.inc:1
Jan 02 07:55:39 admin.steampunkjunkies.com systemd[1]: nginx.service: Control process exited, code=exited status=1
Jan 02 07:55:39 admin.steampunkjunkies.com systemd[1]: Failed to start LSB: Stop/start nginx.
Code: Select all
include /etc/nginx/conf.d/phpmyadmin.inc*;
include /etc/nginx/conf.d/phppgadmin.inc*;
include /etc/nginx/conf.d/webmail.inc*;
TIA
Andy
Re: nginx is broken - custom templates?
Ok I found it. The old templates had:
It seems it didn't like the missing ; on the end of line 3. I fixed it up with:
I then rebuilt the user, and it works now. Phew!
Cheers
Andy
Code: Select all
location /vstats/ {
alias %home%/%user%/web/%domain%/stats/;
include %home%/%user%/conf/web/%domain%.auth*
}
Code: Select all
location /vstats/ {
alias %home%/%user%/web/%domain%/stats/;
include %home%/%user%/conf/web/%domain%.auth*;
}
Cheers
Andy