Connect to service like "http://100.100.10.10/dbadmin" via Cloudflare Tunnel

Cloudflare tunnel is working, but I need to setup a public hostname like “http://dbadmin.domain.tld**/dbadmin**” that then points to http://local-cloudflared-IP/dbadmin (http is intended).

The configuration does not allow me to use “/dbadmin” in the service (“Service URL is not valid”).

I need to make sure that connection to http://dbadmin.domain.tld/dbadmin end up at http://local-cloudflared-IP/dbadmin through the tunnel.

How can this be done?

Dan

The target service is identified through its IP (or hostname) and port, so you don’t need a path in there.

If the service is running on the same machine as Cloudflared, just put localhost in the URL field.

Thanks. Perhaps I need to rephrase
http://domain.tld” should go through the tunnel to “http://192.168.1.10
For that I have a public hostname configured andd that works as expected.

http://dbadmin.domain.tld” should go through the tunnel to “http://192.168.1.10/dbadmin
For that I cannot create a public hostname because the service name does not allow to add a path.

Is there another way to configure this?

That’s not how it works.

A service (like a web server) is listening on an IP and port. The path (/dbadmin) doesn’t play any role in which service a request is routed to.

Make sure that what you enter into the URL field matches the example below, meaning it is either a hostname or an IP, and optionally a port.

1 Like