Issues with browse directive

Testing out all the different directives, but having some issues with browse, just getting 404.

My Caddyfile:

i.example.net {
    tls redacted@email.tld

    root /var/www/i
    browse /upload
    upload {
            to "/var/www/i/upload"
    }
}

I'm running caddy as a systemd service, using this:
https://github.com/mholt/caddy/blob/master/dist/init/linux-systemd/caddy.service

I've modified that to add `CAP_LEASE` for upload (as suggested, not sure if needed), and added the directory `/var/www/i` to `ReadWriteDirectories`, but no dice.
And yes, the owner of that directory is `www-data`.

If anyone has this issue, what fixed it for me was by adding this to the service file:

ReadWriteDirectories=/var/www/i
1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.