Lua is a lightweight, embeddable, multi-paradigm, dynamically-typed programming languague.
Questions tagged [lua]
55 questions
0
votes
0 answers
Pass on SOAP request body through a reverse proxy
Im trying to implement a reverse proxy which takes in a SOAP request, saves the SOAP body message (Envelope, header, body etc.). I would then like to change some of the content of the SOAP request and continue to pass that to get a new response with…
0
votes
0 answers
Errors while starting Nginx server after the successfull compilation of Lua modules
I have compiled my Nginx package using lua module. Though the compilation was successful but I am getting the below error while starting the nginx server :
nginx: [warn] lua_load_resty_core is deprecated (the lua-resty-core library is required since…
0
votes
1 answer
Nginx calculated log variables using lua
I'm trying to get Nginx (running as a Kubernetes ingress controller) to log in milliseconds rather then seconds. (This is so we can ingest the logs into our existing Elasticsearch system, which already has other systems logging in ms)
Based on this…

Mark
- 165
- 1
- 6
0
votes
0 answers
How to encode url in haproxy
I am new to haproxy and I wanted to know the best way to encode the URL in haproxy.
http-request redirect code 302 location…

Mahesh G
- 101
- 3
0
votes
1 answer
Is it possible to avoid chunked transfer on lua nginx during body_filter_by_lua_block?
Let's say we want to change a response from a upstream, what we can do is to use Lua+nginx on the body_filter_by_lua_block phase, here's a snippet of that.
server {
listen 8181;
location /media {
alias /media/;
}
}
server…

Leandro Moreira
- 549
- 1
- 7
- 13
0
votes
2 answers
Nginx rewrite/return phase order
I know there are Nginx phases. Why does the following snippet deliver the "200 Host: example.com" instead of forwarding to Google? What would be a generally valid workaround to evaluate Lua higher or before?
server
{
listen 80;
server_name…

uav
- 534
- 5
- 20
0
votes
1 answer
Build LUA as dynamic Nginx module
I have found that to use LUA with Nginx I need to either:
use OpenResty platform: https://openresty.org/en/installation.html
pay getpagespeed subscription to fetch the module RPM
build Nginx with LUA module from sources, e.g.…

Leos Literak
- 305
- 4
- 13
-1
votes
3 answers
PowerDNS: Is it possible to send different results based on server IP used by the client?
I would like to setup a recursive DNS server with multiple IPs all on the same PowerDNS server. Let's say:
8.8.8.1
8.8.8.2
8.8.8.3
8.8.8.4
I was wondering how I could send different responses based on the IP used by the client.
For example, if the…

plz
- 11
- 1
-1
votes
1 answer
Unable to get prosody running on Ubuntu 10.04 (lua issues)
All this is performed on Ubuntu 10.04.4 LTS Server
I installed LUA 5.1.4 following this procedure - http://ubuntuforums.org/showthread.php?t=1874860
I installed prosody following this command (after downloading the package) - sudo dpkg -i…

user90374
- 99
- 1
-2
votes
1 answer
How do you "prevent powerful accounts from being used on unauthorized systems"?
I was browsing through Microsoft's Best Practices for Securing Active Directory and saw the chart linked which includes some of the best practices included in the document, rated by importance.
At number 6 is "Prevent powerful accounts from being…

cutrightjm
- 344
- 2
- 13