Add routes to the website

What is the name of the domain?

rate-my-meal.com/api/data

What is the error message?

The requested URL was not found on this server.

What is the issue you’re encountering

Would like to access my own API interface, but this is currently only accessible locally

What steps have you taken to resolve the issue?

I have already put my own website online via Cloudflare tunnel. This can also be accessed via the domain. However, the website accesses its own database. The interface to this database works locally via http:///api/data. Now I would like to make this interface public as well so that access from outside is also possible. To do this, I have created a new route in the tunnel with the path /api/data. However, I still cannot access mydomain.com/api/data on the network.

Hi there,

The address resolves, and I can’t understand the issue.
Screenshot 2024-08-06 at 12.21.28

Are you stating that from within your own network you are not able to resolve it? If so, make sure it’s resolving externally you can for instance change your local DNS to Cloudflare’s 1.1.1.1, Google’s 8.8.8.8 or OpenDNS’s 208.67.222.222.

Take care.

Hey Bro,
Thanks for ur answer but I fixed it, that’s why it resolves.
I’ve added a reverse proxy on my pi to reach different ports!

This topic was automatically closed after 15 days. New replies are no longer allowed.