How to config my Caddyfile

path matcher are an exact match.
So the /nacos in reverse_proxy /nacos will only ever match /nacos but not /nacos/ or /nacos/example.

Change it to reverse_proxy /nacos* or use a named matcher like so:

@nacos path /nacos /nacos*
reverse_proxy @nacos {
	to http://127.0.0.1:8848
}
2 Likes