I am struggling to get this working. I stood-up a new server and deployed appwrite 1.7.4. I added update .env file _APP_DOMAIN=appwrite.mydomain.com _APP_DOMAIN_TARGET=appwrite.mydomain.com
I add the same as Flutter web platform on console and added A records in my DNS to redirect to server IP. All good thus far. Appwrite issues SSL certificate and I can access appwrite console using appwrite.mydomain.com.
Now I want the mydomain.com to redirect to a flutter site I deploy on appwrite sites so
1.) I create a new site by cloning Flutter starter template. 2.) I add www.mydomain.com flutter web platform in console. 2.a.) I try to access the www.mydomain.com via browser i get error 401 [Screenshot attached] 3.) I try to add www.mydomain.com to hosted site domain and it gives me a "Domain is already Used" error. [Screenshot attached] 4.) I remove the domain from console platform and then try it, same error. 5.) I have a spare domain so just to try I add a different domain www.mydomaintest.com to the Appwrite sites domain and it works.
Is there a way to get the main domain to re-route to a hosted website so I can have api endpoint be a subdomain of the main domain ? or It has to be a completely different domain for sites to accept it ?
You can follow this setup of mine: https://discord.com/channels/564160730845151244/1398323449994412043/1399302470693552179
Recommended threads
- Can't really use the S3 storage device
hi, I've linked my local MinIO Instance (it's just for testing, not for prod.) to my appwrite instance, when i'm uploading a file it's getting uploaded to the S...
- CDN not delivering correct bundle
My site 69b4cd410035893573dc is not delivering the latest deployed version via CDN, it seems stuck on versions from previoiu days, alternative links for the lat...
- Next.js SSR Site Times Out on First Visi...
Hey everyone, I'm running a Next.js SSR site on a self-hosted Appwrite server (v1.9.0), and I've noticed a strange behavior that I'm hoping someone can help me...