Welcome! Log In Create A New Profile

Advanced

[emerg] unknown directive "rewrite_by_lua_file" in /usr/local/nginx

Joel Parker
October 25, 2017 06:56PM
I have configured nginx-1.9.2 to evaluate a third party module and
configure the source like this:

../configure --add-module=../ngx_http_proxy_connect_module-master/
--add-module=../lua-5.1.4/ --with-http_ssl_module

After compiling the version shows what I configured:
# nginx -V
nginx version: nginx/1.9.2
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC)
built with OpenSSL 1.0.2k-fips 26 Jan 2017
TLS SNI support enabled
configure arguments: --add-module=../ngx_http_proxy_connect_module-master/
--add-module=../lua-5.1.4/ --with-http_ssl_module

I have lua installed as well as compiled into nginx:
# lua
Lua 5.1.4 Copyright (C) 1994-2008
Lua.org, PUC-Rio

When I try to load my config file, I get this error message:
# nginx -t
nginx: [emerg] unknown directive "rewrite_by_lua_file" in
/usr/local/nginx/conf/nginx.conf:25
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed

I am trying to figure out what I did wrong to receive this error.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

[emerg] unknown directive "rewrite_by_lua_file" in /usr/local/nginx

Joel Parker October 25, 2017 06:56PM

Re: [emerg] unknown directive "rewrite_by_lua_file" in /usr/local/nginx

helenaut October 25, 2017 07:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 320
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready