Patch for the implementation "index" option to configure the index file name while serving static files

Javier Manteiga javier_manteiga at yahoo.es
Mon Nov 22 16:49:19 UTC 2021


 This is a patch for the implementation of the "index" option to configure the index file name while serving static files. It allows to add a new option "index" to the configuration of the "share" action, so the file to be served can be configured instead of being harcoded. It supports to define the index value using arrays or variables as in the example:

"action": {                "share": "/www/data/static/",                "index": [ "index.htm", "$host" ]            }
Kind Regards.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/unit/attachments/20211122/645322a5/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unit_index.patch
Type: application/octet-stream
Size: 10273 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/unit/attachments/20211122/645322a5/attachment.obj>


More information about the unit mailing list