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/

385 questions
0
votes
1 answer

How configure Lapis for external IP address?

I have installed Lapis with OpenResty. By default it works on localhost address. How to configure Lapis for exert IP? So I need that it works from my dedicated IP address
Gaga
  • 77
  • 2
  • 8
0
votes
1 answer

Strange io.popen behaviour in lua

I have lua block in nginx config, which checks for redis-server connection and if 4 java-processes are up, and then returns 200 or 500 status accordingly to this checks. location = /healthcheck { content_by_lua_block { local redis =…
cardinal-gray
  • 1,713
  • 1
  • 23
  • 46
0
votes
0 answers

High latency after transferring Lua codebase from custom HTTP server to Nginx

For the past few years we have been running a custom, pre-forking, HTTP server written in C++, libevent and embedded Lua (LuaJit using the exact same LuaJit shared library that openresty, an Nginx package, uses). It's got almost the same…
Walt Howard
  • 5,872
  • 1
  • 12
  • 11
0
votes
1 answer

NGINX and Lua scripting: conditional use in content_by_lua

I'm trying to create a conditional content_by_lua script, where the content should be set by lua only under a turthy condition. example: nginx.conf location / { content_by_lua_file /nginx/lua/nginx.lua; root /nginx/www; …
Ben Diamant
  • 5,706
  • 1
  • 31
  • 48
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,487
  • 1
  • 12
  • 16
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
  • 327
  • 6
  • 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
  • 7,916
  • 8
  • 43
  • 66
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
  • 7,916
  • 8
  • 43
  • 66
-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
25
26