nginScript filesystem access

2017-04-13 Thread Unsay
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

Re: nginScript and accessing cookies

2017-04-13 Thread Unsay
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?

nginx ngx_http_js_module debug

2017-04-09 Thread Unsay Mono via nginx
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

nginScript and accessing cookies

2017-04-09 Thread Unsay Mono via nginx
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