Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

map a null/missing variable?

$
0
0
OK,

So I'm still working on my caching "issue", but this is a more general
question, so for the sake of indexing and helping others in the future
with (hopefully) a response...

How do I use a map to map the lack of a variable/header/cookie (NULL?)
to a value? I can't use "default", because when there IS a value it
will be a random set of characters.

So that said, if a regex like ".+" would work for "any value" and I use
'default' for the NULL, I would try that. :)

Thanks in advance,
AJ

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>