Skip to main content
Question

*.pkg/index.bom is not a directory

  • February 17, 2026
  • 0 replies
  • 24 views

Hi Jamf Folks,

I use nginx file distrubtion server. It works, but I have errors in the nginx log everytime I install something via Self Service +
```
2026/02/17 12:54:16 [error] 13387#0: *1 open() "/<pathToPkg>/Package.pkg/index.bom" failed (20: Not a directory), client: <ip-addresse>, server: webserver.de, request: "GET /<pathToPkg>/Package.pkg/index.bom HTTP/1.1", host: "webserver.de"
```

When I download it via webbrowser or wget, I do not get an error.
here is my nginx.conf
```

worker_processes  1;

events {
    worker_connections  1024;
}

http {
    include mime.types;
    default_type application/octet-stream;

    server {
        listen 443 ssl;
        http2 on;
        server_name webserver.de;

        ssl_certificate     fullchain.pem;
        ssl_certificate_key privkey.pem;

        location /Packages/ {
            alias /<pathToPkg>/Packages/;
            auth_basic "Downloads";
            auth_basic_user_file /<pathto>/htpasswd;
            types {
                application/octet-stream pkg;
            }
            limit_except GET HEAD { deny all; }
        }
        error_page 400 403 405 408 410 413 414 415 429 500 501 502 503 504
            =302 https://fehlerwebsite.de;
    }
}
```
Maybe someone has a idea to fix it