Nginx module: how to get variables value from conf file -
i have nginx server acting reverse proxy. downstream, request sets header info ssl protocol nginx use proxy. put info in variable in nginx.conf file called "$origin_ssl_protocol". looks like:
proxy_ssl_protocols $origin_ssl_protocol;
now problem how nginx module (the function handler) value of variable? far know, handler proxy_ssl_protocols "ngx_conf_set_bitmask_slot", , accepts pure values tlsv1, sslv3, rather variable holding these values.
i want develop own module, know how nginx value of variable in conf file (assuming variable has valid value)?
Comments
Post a Comment