Yes, that address will be always served to that path. I don’t know if i can use capture groups so the url’s can be exchanged back and forth, like this:
Researching for this before posting here, i’ve found this issue: https://github.com/mholt/caddy/issues/444 if I remove the “proxy_header Host {host}” the same behavior (redirect to upstream address) occurs.
@abiosoft that does the trick! even the redirect works with this configuration. The external address still have the “SpecficPath”, but the application works like a charm. The redirect is from a login filter.
@David_Hofmann I’m on the same situation you described on your post, working with a Java EE server (Wildfly 10 in this case). This configuration above might help.
Thanks for the support! Looking forward to use caddy as the main entrance web server here in the company.
Not Really @Caramujo, thanks to catch up though. The configuration abobe will work except for the sessions, sessiones will not work because your server is using a cookie session with path /SpecificPath and the browser is accessing just the root “/” which caddy rewrites to your /SpecifPath, so sessions are broken. Unless there is some way to have some directive like 'rewritecookiepath /SpecificPath / ', which is not there at the moment