Show all posts by user
Introduce yourselves
Page 1 of 1 Pages: 1
Results 1 - 2 of 2
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 could do this like so:
if (-f $realpath_root$url) {
...
}
However, that doesn't help me s
by
Unsay
-
Nginx Mailing List - English
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
by
Unsay
-
Nginx Mailing List - English