Blechhirn / nginx-unzip-module

A module allowing the nginx to use files embedded in a zip file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is this?

A nginx module enabling fetching of files that are stored in zipped archives.

Nginx configuration example

  • file_in_unzip_archivefile - points to the zipped file
  • file_in_unzip_extract - file to be extracted from the zipped file
  • file_in_unzip - flag activating the module
  location ~ ^/(.+?\.zip)/(.*)$ {
      file_in_unzip_archivefile "$document_root/$1";
      file_in_unzip_extract "$2";
      file_in_unzip;
  }

About

A module allowing the nginx to use files embedded in a zip file


Languages

Language:C 100.0%