Questions tagged [openresty]

OpenResty (aka. ngx_openresty) is a full-fledged web application server by bundling the standard Nginx core, lots of 3rd-party Nginx modules, as well as most of their external dependencies.

OpenResty (aka. ngx_openresty) is a full-fledged web application server by bundling the standard Nginx core, lots of 3rd-party Nginx modules, as well as most of their external dependencies.

By taking advantage of various well-designed Nginx modules, OpenResty effectively turns the nginx server into a powerful web app server, in which the web developers can use the Lua programming language to script various existing nginx C modules and Lua modules and construct extremely high-performance web applications that are capable to handle 10K+ connections.

OpenResty aims to run your server-side web app completely in the Nginx server, leveraging Nginx's event model to do non-blocking I/O not only with the HTTP clients, but also with remote backends like MySQL, PostgreSQL, Memcached, and Redis.

OpenResty is not an Nginx fork. It is just a software bundle. Most of the patches applied to the Nginx core in OpenResty have already been submitted to the official Nginx team and most of the patches submitted have also been accepted. We are trying hard not to fork Nginx and always to use the latest best Nginx core from the official Nginx team.

Home: http://openresty.org/

474 questions
0
votes
1 answer

Lapis Framework does not create new project

I've already installed Lua, Openresty and Luarocks, but after executing sudo luarocks install lapis or luarocks install lapis --local and then run lapis new in a blank directory and nothing happens is there a missing step?
Absulit
  • 1,885
  • 1
  • 17
  • 17
0
votes
1 answer

NGINX Openresty - access log format - align the output

i'm using NGINX Openresty (version 1.4.3.4) in my project and i was wondering if i could make the access log to be aligned. from this: [06/Mar/2015:21:20:11 +0000] [0.028] [200] [54.162.222.95] ["GET /XXX"] [06/Mar/2015:21:20:11 +0000] [0.020] [200]…
koby meir
  • 437
  • 7
  • 16
0
votes
1 answer

OpenResty POST issue

When having a page that accepts a POST request and running it via jQuery, I get an OpenResty error: 25031#0: *237 client sent invalid method while reading client pipelined request line, client: , server: , request: …
0
votes
2 answers

Openresty : getting issue with ngx.re.gsub to handle magic characters of lua

I want to replace a word into my body content from other string . To implement this i am using ngx.re.sgub but i am getting a weird issue. ngx.re.gsub is not handling magic characters. Example : content1 = "HiTestHello Test how are you Testall…
Prashant Gaur
  • 9,540
  • 10
  • 49
  • 71
0
votes
1 answer

generate csrf_token in nginx by using Openresty with Django as a backend server

I am working with Openresty. Work : I am having a website which is designed in Django and i am retuning response content from directly from nginx by using lua code without going to django if cache is found into redis. Problem: When i am…
Prashant Gaur
  • 9,540
  • 10
  • 49
  • 71
-1
votes
1 answer

Lua NGINX How to get only one value from json POST body

Hello I have lua nginx and I'm having request body My POST body is this : { "param1": "1033893", "param2": "337483", "param3": "test", } I want to cut only param2 and make it a variable, then match it with a file which it's having…
Vancho
  • 25
  • 7
-1
votes
1 answer

Specific location path is not refreshing

We have a OpenResty, Nginx and Redis stack. I have a location block in my nginx.conf which doesn't reponse to any changes I do. I have a Lua module function that is invoked by location in nginx.conf. The function is like: function _M.myFunction() …
Itai Malek
  • 301
  • 2
  • 5
  • 14
-1
votes
2 answers

LUA String phrase match

string: x11y22z33 I want to validate above value with string.match with 1 string and 2 numbers string.match(s,"/^\s{1}\d{2}\s{1}\d{2}\s{1}\d{2}") I tried but it didn't work
SweetNGX
  • 153
  • 1
  • 9
-1
votes
1 answer

Detect all the emojies using regex in Lua/PCRE/OpenResty

I have a JavaScript regex that matches emojies. How do I match the same characters using ngx.re.match(), which is part of the OpenResty library for the nginx web server. This is the original regex for matching emojies in…
Dzmitry
  • 87
  • 1
  • 1
  • 7
1 2 3
31
32