caddy: Browse: Internal Server Error
1. What version of Caddy are you running (caddy -version)?
Caddy 0.8.2 | Caddy build from master
2. What are you trying to do?
Running Caddy with browse enabled
3. What is your entire Caddyfile?
domain.com {
root /var/www/html/
tls me@domain.com {
protocols tls1.2 tls1.2
ciphers ECDHE-ECDSA-AES256-GCM-SHA384 ECDHE-RSA-AES256-GCM-SHA384 ECDHE-ECDSA-AES128-GCM-SHA256 ECDHE-RSA-AES128-GCM-SHA256
}
header / {
Content
}
log /var/log/caddy/access.log {
rotate {
size 100
age 14
keep 10
}
}
errors {
log /var/log/caddy/error.log {
size 50
age 30
keep 5
}
}
browse /
fastcgi / unix:/var/run/php/php7.0-fpm.sock php
}
4. How did you run Caddy (give the full command and describe the execution environment)?
Ubuntu Wily (systemd service)
/usr/sbin/caddy -agree=true -conf=/etc/caddy/Caddyfile -pidfile=/var/run/caddy/caddy.pid -log=stderr
5. What did you expect to see?
no errors with master
6. What did you see instead (give full error messages and/or log)?
500 Internal Server Error
17/Apr/2016:17:21:40 +0000 [ERROR 500 /linux-dash/] Directory contains index file, not browsable!
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (5 by maintainers)
Commits related to this issue
- Browse does not claim exclusive responsibility for its scope (this is a WIP, addresses #767) — committed to caddyserver/caddy by wmark 8 years ago
- browse: Revert to old pass-through behaviour PROPFIND is a request for an alternate view on a directory's contents, which response is indeed not implemented but ideally allowed to ask for. OPTIONS wo... — committed to caddyserver/caddy by wmark 8 years ago
- browse: Fix known bugs (#770) * browse: Catch the case of a directory disappearing before having been read * browse: Revert to old pass-through behaviour PROPFIND is a request for an alternate ... — committed to caddyserver/caddy by wmark 8 years ago
0.8.2 had a
continuethere. That resulted in the middleware checking for more applicable scopes — which is redundant, because we had a matching scope in the first place, (or, on a later iteration, the index would’ve been found again). EventuallyNextwas called: https://github.com/mholt/caddy/blob/v0.8.2/middleware/browse/browse.go#L276-L280I will file a PR to reinstal the old behaviour, which I changed.