1
Archangel_SDY 2015 年 5 月 4 日
如果你只是要 host 的值,你可以从 ngx_http_request_t 中拿到。
如果你想让自己模块的配置项支持这种带变量的表达式,那么你需要 ngx_http_script_compile 先对表达式编译,然后用 ngx_http_script_run 获取结果。 |