Back

Hosting multiple apps on a single Appwrite VPS

  • 0
  • Self Hosted
  • General
punti_z
5 Apr, 2024, 10:12

I have a decently spec'd VPS with excess capacity provisioned currently powering an existing project. I am going to start work on a second project and want to leverage the same Appwrite instance with by creating a second Project however how do I add a second custom domain to the same appwrite VPS ?

I have an existing project1.myappwrite.com with VPS IP configured as domain redirect. Now for project2.myappwrite.com I configure the same IP Address ? or do I purchase a new public IP ? any one has experience with running multiple projects of the same Appwrite instance ?

TL;DR
Developers asking about hosting multiple apps on a single Appwrite VPS and adding custom domains. Steps include adding a CNAME in website's DNS settings pointing to the appwrite domain, then navigating to project settings to add custom domains. Each project can have its own custom domain. No need to add the VPS IP for the second custom domain, just use a CNAME. Solution and info provided in Appwrite documentation link.
darShan
5 Apr, 2024, 10:25

you can use custom domains per project, right? like with CNAME routing to the host appwrite domain?

darShan
5 Apr, 2024, 10:26
punti_z
5 Apr, 2024, 10:31

I already have 1 custom domain configured and the domain DNS has the VPS IP configured. Now when I add a 2nd custom domain do I add the same VPS IP to that as well ? the traffic separation is something appwrite manages ?

darShan
5 Apr, 2024, 10:32

Afaik the custom domain setup on appwrite doesn't require IP but a CNAME.

darShan
5 Apr, 2024, 10:32

You'll have to navigate to your project > settings > custom domains.

darShan
5 Apr, 2024, 10:34

add project2.myappwrite.com which will show the steps to add CNAME on your main domain.

In your Website's DNS Settings, add project2 CNAME and point it to the appwrite domain (example: cloud.appwrite.io).

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more