Closed
Description
The following caddyfile's rewrite
directive is ignored in 0.10.0 (I reverted to 0.9.5 and confirmed it working):
api.example.com {
root /opt/example.com/latest/source
redir / /v1 307 {
if {path} is /
}
rewrite {
r ^/v1(.*)
to /api/{path}
}
gzip
proxy / [::1]:8000 {
transparent
except /static /robots.txt /favicon.ico
}
}
I can't figure it out. I can't get it to match at all, it's like it's being completely ignored. Tried a bunch of variations including a plain rewrite / /foo
and it's just like it's commented out.