Search found 22 matches

by sparkzara
Sat Dec 30, 2023 9:04 pm
Forum: General discussion
Topic: Nginx get domainname without TLD or suffix
Replies: 3
Views: 8991

Re: Nginx get domainname without TLD or suffix

hi. any update on this. i hope many developers will be looking for similar solution for SaSS product hosted on single domain and served to individual users by subdomains, and when end user requires custom domain to show content from a sub-domain this workaround is required. based on some solutions i...
by sparkzara
Sat Dec 30, 2023 8:46 pm
Forum: nginx templates
Topic: How can we change the font cross policy?
Replies: 7
Views: 8796

Re: How can we change the font cross policy?

Thank you. that solved my issue.
by sparkzara
Wed Sep 06, 2023 11:07 am
Forum: General discussion
Topic: Number of Domain additions Limitation
Replies: 1
Views: 7449

Number of Domain additions Limitation

hi, i have a question regarding myvestacp. do we have any restriction on number of domains added on myvestacp? earlier on another server with vestacp, whenever we add more than 500 domains, all sites may start throwing error. but we delete the last added domain it will start working again. note: we ...
by sparkzara
Wed Jun 07, 2023 9:30 pm
Forum: nginx templates
Topic: How can we change the font cross policy?
Replies: 7
Views: 8796

Re: How can we change the font cross policy?

hi, i found another issue, whenever there is rebuild web, again ttf extension gives cors error. on checking further i found, %proxy_extentions% is adding ttf again at 2nd location on new conf files. manually removing ttf extension from 2nd location on domain.nginx.ssl.conf removes error. but i do ha...
by sparkzara
Wed Apr 05, 2023 9:35 pm
Forum: nginx templates
Topic: How can we change the font cross policy?
Replies: 7
Views: 8796

Re: How can we change the font cross policy?

Thanks, that fixed it for me.
by sparkzara
Sun Feb 12, 2023 5:09 am
Forum: nginx templates
Topic: How can we change the font cross policy?
Replies: 7
Views: 8796

Re: how do we change cors policy of fonts.

yes tried, still no change.
any other location this need to be added?
myVesta wrote: Sat Feb 11, 2023 10:12 pm did you run:

Code: Select all

v-rebuild-web-domains YOURUSER
after changing template?
by sparkzara
Wed Feb 08, 2023 10:03 pm
Forum: nginx templates
Topic: How can we change the font cross policy?
Replies: 7
Views: 8796

How can we change the font cross policy?

hi, i have a domain loading content from another sub-domain. both are on same hosting. now the fonts are not loading properly on main domain ( on sub-domain it works fine ) on main domain it shows strict-origin-when-cross-origin Referrer Policy how do we update this to Access-Control-Allow-Origin i ...
by sparkzara
Fri Nov 04, 2022 4:17 pm
Forum: General discussion
Topic: Nginx get domainname without TLD or suffix
Replies: 3
Views: 8991

Re: Nginx get domainname without TLD or suffix

hi, thanks for the reply. but i wanted this to be applied for all the domain added on myvestacp using a specific template. Note: i'm doing domain addition through api. but here is the list of things i did so far. created 2 files on /usr/local/vesta/data/templates/web/nginx/ 1. reverse-force-https.tp...
by sparkzara
Thu Oct 27, 2022 9:47 pm
Forum: General discussion
Topic: Nginx get domainname without TLD or suffix
Replies: 3
Views: 8991

Nginx get domainname without TLD or suffix

Hi, I am trying to add reverse proxy template to show content from a subdomain based on domainname. For ex: example.com should show content from example.maindomain.com I tried to use %domain%, but it gets full name including TLD value like example.com.maindomain.com Is there any nginx variable or co...
by sparkzara
Sun Sep 18, 2022 1:47 pm
Forum: API
Topic: Why API is not working?
Replies: 4
Views: 20463

Re: Why API is not working?

hi, i tried above steps. but it doesn't seem to be working. and regarding error: I get empty response, so not sure where exactly the error is. Code used: $vst_hostname = env('VESTA_HOSTNAME'); $vst_username = env('VESTA_USERNAME'); $vst_password = env('VESTA_PASSWORD'); $vst_returncode = 'yes'; $vst...