Hello
We'd like to move a rather complicated multilingual website over to nginx. I
must determine if we can handle the somewhat involved language based
redirects in nginScript middleware (javascript).
At one point I must redirect based on whether or not a file exists. In the
configuration file I
Okay, I've found the answer to my question.
nginScript supports access to all of NGINX's variables. This also provides
access to the cookie like so:
myfunction(req, res) {
var cookie = req.variables.http_cookie;
}
Kind regards
Andreas
Posted at Nginx Forum:
https://forum.nginx.org/read.php?
I've noticed there is a second ngx_http_js_module which, based on the name, is
used for debugging.
Can someone shine some light on what exactly the debug version of the module
does differently and how it's used?
Kind regards
Andreas
___
nginx mailing li
Hey everyone
In this nginx news article the author states:
> With nginScript you can route traffic based on any data in the request,
> including cookies, headers, arguments, or any keywords in the request body.
So far I've been unable to find any documentation on how to read and write to
cookies