Back

404 page not found on function

  • 0
  • Self Hosted
  • Functions
  • Web
Leon 🧿
10 Aug, 2024, 16:07

I've got a function set up and i can execute it with the "Execute now" button, but when i try to access it via the domain XXXXXX.MY_DOMAIN it just gives me a 404 error. I deployed appwrite with coolify.

TL;DR
Issue: Developer encountering a 404 error when trying to access a function via a domain on coolify. The error seems to be related to DNS resolution and routing. Solution: Check DNS records to ensure the domain is pointed to the correct server and verify that routing is in place to direct traffic to the appwrite stack. Wildcard domains may not be supported by coolify. A relevant discussion on the issue can be found here: [Link to discussion on GitHub](https://github.com/coollabsio/coolify/issues/2089#issuecomment-2175754105)
Steven
10 Aug, 2024, 16:09

Do you have DNS records set up to point out that domain to your server? Do you have routing in place to route traffic to the appwrite stack?

Leon 🧿
10 Aug, 2024, 16:10

I'm using cloudflare with a wildcard domain and it's resolving dns, just giving a 404 error on the page

Leon 🧿
10 Aug, 2024, 16:11

I assume so, I was just hoping it works out of the box with coolify

Steven
10 Aug, 2024, 16:11

What exactly does the error look like?

Steven
10 Aug, 2024, 16:11

It may not be

Leon 🧿
10 Aug, 2024, 16:13

It's just a cloudflare "404 page not found" but dns resolved to the ip address

Leon 🧿
10 Aug, 2024, 16:14

Just looking for a way to configure routes in coolify

Leon 🧿
10 Aug, 2024, 16:18

Ok i found the issue, yes i need to add the domains for the functions to coolify and as far as i'm aware wildcard domains aren't supported as of yet. Here is a link for people trying to find a solution as well: https://github.com/coollabsio/coolify/issues/2089#issuecomment-2175754105

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