New to Caddy. Needing to take a single public subdomain and route to separate server:port depending upon services specified in URL.
See configuration in CaddyFile. Browser is giving a blank page for this code. How to resolve? Also, is there a debug or lower level for Caddy logging? If so, how is logging level configured?
That’s quite an old version! Please upgrade to v2.5.1.
That’s not valid matcher syntax. Don’t use braces if you only have a single matcher:
@stuss path_regexp ^/StudentSelfService(/.*)?$
Also, you probably don’t need to use path_regexp here, you can probably just use use a path matcher like /StudentSelfService*. You could write it like this:
If your matcher didn’t match, then your request would probably go unhandled according to this config. Caddy’s default behaviour for unhandled requests is to return a blank 200 response – because it worked as configured, you didn’t tell it to do anything else.
You can add the debug global option to set the logging level to debug, which can reveal some extra details. Put this at the top of your config: