1. Caddy version:
v2.2.1
2. How I run Caddy:
a. System environment:
systemd on archlinux
b. Command:
systemctl start caddy
c. Service/unit/compose file:
N/A
d. My complete Caddyfile or JSON config:
(complete) {
reverse_proxy /favicon.ico https://www.domain.tld
reverse_proxy /robots.txt https://www.domain.tld
tls me@domain.tld
header -server
}
www.domain.tld {
file_server
root * /srv/http/www
header -server
}
app1.domain.tld {
import complete
reverse_proxy localhost:3001
}
app2.domain.tld {
import complete
reverse_proxy localhost:3002
}
3. The problem I’m having:
I can not request /favicon.ico
or /robots.txt
with this configuration. I was using Caddy v1 successfully this way.
4. Error messages and/or full log output:
On server side, Caddy load increases as soon as I request these files. On client side, I get either 308 as status code or the request never ends.
5. What I already tried:
- Invert directives
import complete
andreverse_proxy ...
. - Remove scheme in
reverse_proxy
directive of shared configuration blockcomplete
.
6. Links to relevant resources:
N/A