Hello,
I see that you can set pagespeed ProcessScriptVariables on; and for some variables it works, unfortunately pagespeed FileCachePath /.pagespeed_cache/$host/; doesn't seem to parse $host. I looked at the source and see src\ngx_pagespeed.cc has
const char* file_cache_path = cfg_s->server_context->config()->file_cache_path().c_str();
Which seems like it's just getting the raw string of the value set in the Nginx conf.
I see that ShardDomain does process $host so I looked at ngx_rewrite_options.h and saw that it's calling something like this
ngx_conf_t* cf, ProcessScriptVariablesMode script_mode
which I assume is what it uses to parse "$host" when called in the ShardDomain config
Would someone be able to point me further as to what I would need to change in ngx_pagespeed.cc to have the file_cache_path process $host like ShardDomain is doing? I'm not too familiar with C++
Thanks,
Uri