Help reverse proxying to a subpath

1. The problem I’m having:

Trying to reverse proxy to http://127.0.0.1:4000 while the uri is mydomain.com/radio/

2. Error messages and/or full log output:

When going to /radio the app redirects to /setup, the app is Azuracast

domain.com{
handle_path /radio* {
rewrite * /radio/{uri}
reverse_proxy http://127.0.0.1:4000
}
}

3. Caddy version:

4. How I installed and ran Caddy:

ARM64 binary from the official site

a. System environment:

Chromebook with Linux Dev Enviroment(screen is broken so repourpusing it as a server)

b. Command:

./caddy start

Howdy @Anonyy, welcome to the Caddy community!

The error you’re facing is a logical problem, not a bug. It will need a bit of special attention to resolve.

I’ve written about it in the past - hopefully this helps you understand the issue and your options for correcting it.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.