sdch_module icon indicating copy to clipboard operation
sdch_module copied to clipboard

Add nginx variables support to sdch_dict config rule

Open sunnybear opened this issue 8 years ago • 4 comments

This can help to provide sdch for virtual hosts w/o separate configs

sunnybear avatar Nov 19 '16 16:11 sunnybear

Could you please describe the issue more?

wawaAtYandex avatar Nov 25 '16 11:11 wawaAtYandex

To have separate dictionaries for separate vhosts based on i.e. $host variable. For example sdch_dict /var/cache/dictionary/$host/airee.dict;

sunnybear avatar Nov 25 '16 14:11 sunnybear

You can just put sdch_dict into "server" directive.

bacek avatar Nov 25 '16 21:11 bacek

Of course I can. But I can't create unified config for multiple hosts - with the same string containing $host variable. I.e. server { server_name _; listen 80; sdch_dict /var/cache/dictionary/$host; }

sunnybear avatar Nov 26 '16 08:11 sunnybear