P
P
pqgg7nwkd42016-06-08 19:09:43
Nginx
pqgg7nwkd4, 2016-06-08 19:09:43

On-the-fly file decompression in NGINX?

Good afternoon.
There is a server, there are a lot of photos on it and they are in one folder. For some reason, it was decided to pack this large pile into one file.
Now it's just a file collected from all the photos in order, and the lengths and offsets are stored in the database. Gives the contents of the php script.
Now I want NGINX to do this. It is possible to repack files into any popular format (zip without compression, for example). Although the zip is probably not suitable, because. You can search for a file in an archive only by brute force.
The question is: Can NGINX be configured to serve a single file from an archive?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2016-06-08
@pqgg7nwkd4

compress to squashfs and just mount to the right place.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question