Reverse proxy webmin?

So I have this setup in the caddyfile

webmin.domain.com {
	proxy /	127.0.0.1:10000 {
		transparent
	}
}

But when I try it, the login screen works fine, but once you hit login it redirects you to webmin.domain.com:10000 and thus errors out.

Any idea how to prevent this redirect?

I found this but no idea where proxy_redirect and proxy_set_header is with caddy.

From the nginx documentation, proxy_redirect is a specific command that sets a substitution for the content of location and refresh headers - I don’t believe Caddy’s proxy directive has an analogue.

Caddy’s proxy does, however, have the header_upstream subdirective which will perform the same task as nginx’s proxy_set_header.

oh cool, didn’t see that, thanks Whitestrake, that looks to have fixed the issue.