File-server --browse and RPM packages (help) [SOLVED]

1. The problem I’m having:

Hi, I try to host my own RPM repository using Caddy to serve all files .
After I setup my Caddyfile, and go to my https://repo.website.com I see all files, but clicking on RPMS packages (files) browser return - File not found
Firefox can’t find the file at https://repo.website.com/RPMS/foo-1.2.1.rpm as example.
When I click to others files like *.bz2 or also I try to add *.jpg clicking is working and I enable to view or download the files.

2. How I run Caddy:

Caddyfile

repo.website.com {
        import logging
        encode gzip zstd
        root * /var/www/repo
        file_server browse
}

3. Caddy version:

caddy --version
v2.10.0 h1:fonubSaQKF1YANl8TXqGcn4IbIRUDdfAkpcsfI/vX5U=

4. How I installed and ran Caddy:

Copr repo for caddy owned by @caddy Index of /results/@caddy/caddy/epel-9-x86_64/

a. System environment:

Alma Linux 9.6 x86_64

Thanks!

File not found is 404. You’re getting 403, which usually is permissions related.

Check your RPM file permissions. Make sure the account you’re using to run Caddy can read the RPM files.

Hi thanks dude, now fixed !

1 Like