I'm trying to map the BPM specific $WSSR header to the Host header in a nginx configuration and I continue to get "nginx: [emerg] unknown "wssn" variable " errors. How can I access this header value in a nginx configuration? Is there a way to escape the $ character?
Here is my current configuration to try to map the custom header and the host to a single value
map $http_\$wssn $x_host {
default $host;
"~." $http_\$wssn;
}
reloading my config with this map results in this error
# nginx -s reload
2019/08/12 18:37:42 [emerg] 25091#25091: unknown "wssn" variable
nginx: [emerg] unknown "wssn" variable