how to add extension in the proxy_extensions
Posted: Tue Mar 14, 2023 11:56 am
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
maybe it should be like this:
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.
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}
Code: Select all
extentions=${4:-$default_extentions}
UPD: I made a mistake, bash uses both syntaxes.