Skip to content

Feature request: Support to zip a directory without requiring an upstream that emits X-Archive-Files #115

@ghost

Description

mod_zip currently requires an upstream (or other origin) to return the header X-Archive-Files: zip and a body containing the file list (CRC SIZE URL NAME per line). This is powerful but makes a common use case “download this directory as a .zip” from the local filesystem served by Nginx require writing and maintaining a separate backend or script whose sole job is to enumerate files and output the expected list, if I understood correctly.

Request

Please consider adding a built‑in capability for mod_zip (or a companion directive) to zip a local directory tree directly, without an auxiliary upstream that generates the file list. The module would internally walk the target directory (respecting existing Nginx root/alias and access rules) and stream a ZIP, preserving the current streaming and low‑memory behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions