how to add extension in the proxy_extensions

Post Reply
wah
Posts: 6
Joined: Thu Dec 29, 2022 4:26 pm

Hi everybody.
There is no woff2 extension in the proxy_extensions variable (field "v_proxy_next" in html).
I was trying to find a place where it can be added in the template. But I couldn't do it. woff2 is present in the variable, but it doesn't work.
I'm not sure, but maybe there is an error in the file /usr/local/vesta/bin/v-add-web-domain-proxy in line 18

Code: Select all

17: default_extentions="jpg,jpeg,gif,png,ico,svg,css,zip,tgz,gz,rar,bz2,doc,xls,exe,pdf,ppt,txt,odt,ods,odp,odf,tar,wav,bmp,rtf,js,mp3,avi,mpeg,flv,woff,woff2"
18: extentions=${4-$default_extentions}
maybe it should be like this:

Code: Select all

extentions=${4:-$default_extentions}
This only works when I add a new site, but it doesn't work when I just change the template.

UPD: I made a mistake, bash uses both syntaxes.
Last edited by wah on Tue Mar 14, 2023 8:21 pm, edited 2 times in total.

Tags:
wah
Posts: 6
Joined: Thu Dec 29, 2022 4:26 pm

As it turned out, when changing the template, the list of extensions is not updated. You need to update the list of extensions for each site.
Post Reply