Questions tagged [lua]

Lua is a lightweight, embeddable, multi-paradigm, dynamically-typed programming languague.

55 questions
0
votes
0 answers

Configuration dnsdist

Trying to install PowerDNS 4.1 Authoritative at 127.0.0.1:5300 Recursor at 127.0.0.1:5301 Dnsdist config as in documentation But get an error: # dnsdist -C dnsdist.conf Fatal Lua error: Unknown Lua error input:1: attempt to call a nil value…
0
votes
1 answer

nginx, lua and response time

I have an nginx loadbalancer which just proxies requests to a few upstream servers. Now, what I would like to do is: For one out of ten requests, I want to measure the response time of nginx (in milliseconds) and forward that value to an InfluxDB…
Jeroen Jacobs
  • 1,386
  • 3
  • 16
  • 25
0
votes
1 answer

nginx geotargeting and proxpass

I have a little issue with my Nginx config prototype The Scenario is following: website visitor will visit example.com. Nginx is read out with GeoIP the current location and accept language header from a browser. this information must be referring…
Tomcat666
  • 3
  • 3
0
votes
1 answer

Blocking a request with ModSecurity and lua script

I have web traffic flowing through ModSecurity. Within the ModSecurity configuration I am calling a Lua script that is running some simple analysis on the arguments of request string. Specifically, it is checking for evidence of Cross-Site…
Futh
  • 17
  • 5
0
votes
2 answers

Mark MSI to be installed on Windows Server 2003 as non administrator

Guys, girls, I'm a developer so forgive my naivete on system fronts, I've come for the guru's who know better than I on these issues. I am trying to be a corporate citizen and not run my services on Win2k3 server as adminstrator. Unfortunately…
Spence
  • 680
  • 3
  • 10
  • 19
0
votes
1 answer

High %sys utilization in Nginx cache node

We set up Nginx with Lua (openresty bundle) to be a local caching node to our file sharing server, we seperated files to chunks "50MB each" (by this method) and store them in cache to increase its efficiency. In low traffic it works fine but with…
0
votes
1 answer

how to install lafilefixer in ubuntu

I am getting following error while installing freeswitch on Ubuntu. libtool: link: cannot find the library /usr/src/freeswitch/libs/apr-util/xml/expat/lib/libexpat.la' or unhandled…
Saghar
  • 103
  • 2
0
votes
1 answer

Can't figure out how to get started with powerdns-recursor lua scripting

I have a server (Ubuntu 12.04) where I run powerdns-recursor. I'm trying to add some logic to certain requests and have got my target set on lua scripting for powerdns. I don't seem to be able to get it to work though. I guess/hope that the version…
azzid
  • 133
  • 1
  • 7
0
votes
1 answer

Nginx using mysql result as variable to be used in headers more module

Without going into too much detail we have a requirement for the following: a) Query a simple single column, single row result from mysql. b) Use this variable as part of a more headers module, add_header directive. c) If no results returned (eg:…
anonymous-one
  • 1,018
  • 7
  • 27
  • 43
0
votes
1 answer

Running WSAPI on ngninx via FastCGI

Using Lua 5.2 with wsapi 1.6-1 and wsapi-fcgi 1.6-1 installed via luarocks, I have the following nginx configuration: server { listen 127.0.0.1:8080; server_name localhost; location / { root /home/petsagouris/code/wsapitest/; …
petsagouris
  • 103
  • 4
0
votes
2 answers

imapfilter: how to capture part of the subject in a variable

I get some mails arriving (on an IMAP server) with subject like: [1270503] apple [1272481] bottle [172481] wine [43172481] grapes I need these letters to be moved in INBOX.CSR.number where number is the one standing in "[ ]" s in the subject. The…
asdmin
  • 2,050
  • 17
  • 28
0
votes
1 answer

Nginx: unknown directive "ngx.flush(true)"

I'm having some trouble by using the nginx devel (ndk) and lua-module. I compiled nginx-rpm using the following configuration: ./configure \ --prefix=%{_sysconfdir}/nginx/ \ --sbin-path=%{_sbindir}/nginx \ …
Nrgyzer
  • 123
  • 4
0
votes
1 answer

How to install Gamooga server on centOS?

I'm trying to run Gamooga server on my centOS box, but unfortunately there are some required packages which is not available for centOS (at least I couldn't find them). The required packages are liblua5.1-0 liblua5.1-0-dev If anyone could tell me…
2hamed
  • 479
  • 1
  • 5
  • 23
0
votes
0 answers

PowerDNS lua ifportup Failing

I'm having a problem getting a PowerDNS ifportup lua record working. I'm new to PowerDNS and know DNS relatively well. I'd appreciate if anyone could point out where I'm going wrong here. Background - I'm running this on Debian 11 to a sqlite…
0
votes
0 answers

SOAPUI What causes "error in msg parsing: xml was empty, didn't parse!"

Currently, I have a structure which takes a SOAP request, fires the request at a reverse proxy (a script written in Lua) which takes a copy of the SOAP request and then passes that to the webserver, and I get some SOAP response. Without the reverse…