Skip to content

🐛 Public Hostnames "Path" is appended to Service URL #1028

@michaelweinold

Description

@michaelweinold

Opening this as a cloudflared issue at the suggestion of @ranbel. See also: cloudflare/cloudflare-docs#7264

Describe the bug

The Public Hostname Page for a Cloudflare Tunnel has three fields:

(optional) Subdomain (required) Domain (optional) Path

As the documentation clearly states, this can be used to expose http resources like so:

subdomain.domain.com >> http://localhost:1234

However, it seems that the beheviour is currently such that instead of:

subdomain.domain.com/path1 >> http://localhost:1234
subdomain.domain.com/path2 >> http://localhost:5678

we get:

subdomain.domain.com/path1 >> http://localhost:1234/path1
subdomain.domain.com/path1 >> http://localhost:1234/path2

To Reproduce
Steps to reproduce the behavior:

  1. Follow the Cloudflared documentation to expose any HTTP resources to the Internet via a public hostname.

Expected behavior

subdomain.domain.com/path1 >> http://localhost:1234
subdomain.domain.com/path2 >> http://localhost:5678

Environment and versions

Logs and errors
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: NormalMinor issue impacting one or more usersType: BugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions