1. Caddy version (caddy version
):
v2.1
2. How I run Caddy:
caddy run
a. System environment:
mac OS Catalina
b. Command:
c. Service/unit/compose file:
paste full file contents here
d. My complete Caddyfile or JSON config:
localhost {
root dist
proxy /xxx/v1.0 https://xxx.xxx.xxx
rewrite {
if {path} not_starts_with /emoneyKyc/v1.0
to {path} /
}
gzip
tls self_signed
}
3. The problem I’m having:
I need v2 type for this caddyfile I have.
4. Error messages and/or full log output:
5. What I already tried:
:2015 {
try_files {path} /index.html
root dist
file_server
reverse_proxy --from /xxx/v1.0 --to https://xxx.xxx.xxx
encode zstd gzip
}
but when i visit my url in local it shows error 500, 502 in the page.