Issues with browse directive

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

My Caddyfile: {
    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:

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:

1 Like

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