Reverse proxy examples w/ rewrite to backend Tomcat

After much trial and error, reading the docs and forum, I’ve come up with the following examples using reverse proxy. These are all used on my production site, with Tomcat backend:

Site 1:

site.one.com {
	encode gzip
	rewrite * /one{uri}
	reverse_proxy localhost:8080
	log {
		output file /var/log/caddy/one.log
	}
}

Site 2:

site.two.com {
	encode gzip
	@two path /dir-a/* /dir-b/*
	reverse_proxy @two localhost:8080
	log {
		output file /var/log/caddy/two.log
	}
}

Site 3:

site.three.com {
	encode gzip
	route {
		@subdirs path /dir-a/* /dir-b/* /dir-c/* /dir-d/* /dir-e/*
		reverse_proxy @subdirs localhost:8080
		rewrite * /three{uri}
		reverse_proxy localhost:8080
	}
	log {
		output file /var/log/caddy/three.log
	}
}