Back

Having Problem in setting subdomain in appwrite

  • 0
  • Android
Shubham
11 Aug, 2023, 14:00

i installed an appwrite with digital ocean , in that i changed _APP_DOMAIN and _APP_DOMAIN_TARGET to mytech.starbseb.in in both field , but its not verified by appwrite . my A record of sudomain is pointing to server . tell us the problem.

TL;DR
TL;DR: User is having trouble setting a subdomain in Appwrite. Support suggests setting `_APP_OPTIONS_FORCE_HTTPS` to `enabled`, restarting Docker, and running a SSL command. Verify that the custom domain is removed and access Appwrite through the domain. The domain verification may have failed, so check if it is marked as unverified. The A record of the subdomain should be pointing to the server.
Binyamin
11 Aug, 2023, 14:01

What you mean not verified

Binyamin
11 Aug, 2023, 14:01

Where did you see that is not verified

Shubham
11 Aug, 2023, 14:03

in custom domain , it says unverified

Shubham
11 Aug, 2023, 14:05

and on clicking verify icon , it says , Domain verification for the requested domain has failed.

Binyamin
11 Aug, 2023, 14:06

When adding domain in the _APP_DOMAIN and _APP_DOMAIN_TARGET you don't need to add it as custom domain, as it become the main domain

Binyamin
11 Aug, 2023, 14:06

Remove the custom domain And access Appwrite through that domain

Binyamin
11 Aug, 2023, 14:06

What do you see then?

Shubham
11 Aug, 2023, 14:07

i see appwrite without ssl

Shubham
11 Aug, 2023, 14:07

how will i take ssl?

Binyamin
11 Aug, 2023, 14:17

For that you can do

  1. Set the _APP_OPTIONS_FORCE_HTTPS variable to enabled then restart the docker compose by running
TypeScript
docker compose down && docker compose up -d
  1. If after few minutes the SSL wasn't generated yet, and you've checked in a incoginto you can tell Appwrite to generate SSL for all domains by running
TypeScript
docker exec appwrite ssl
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