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

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -