You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest module is compatible with the following versions of Nginx:
292
293
293
-
* 1.7.x (last tested: 1.7.7)
294
+
* 1.7.x (last tested: 1.7.10)
294
295
* 1.6.x
295
296
* 1.5.x (last tested: 1.5.12)
296
297
* 1.4.x (last tested: 1.4.4)
@@ -306,7 +307,7 @@ The latest module is compatible with the following versions of Nginx:
306
307
Installation
307
308
============
308
309
309
-
The [ngx_openresty bundle](http://openresty.org)can be used to install Nginx, ngx_lua, either one of the standard Lua 5.1 interpreter or LuaJIT 2.0/2.1, as well as a package of powerful companion Nginx modules. The basic installation step is a simple `./configure --with-luajit && make && make install`.
310
+
It is highly recommended to use the [ngx_openresty bundle](http://openresty.org) that bundles Nginx, ngx_lua, LuaJIT 2.0/2.1 (or the optional standard Lua 5.1 interpreter), as well as a package of powerful companion Nginx modules. The basic installation step is a simple command: `./configure --with-luajit && make && make install`.
310
311
311
312
Alternatively, ngx_lua can be manually compiled into Nginx:
312
313
@@ -319,9 +320,9 @@ Build the source with this module:
But be very careful about malicious user inputs and always carefully validate or filter out the user-supplied path components.
1488
+
1473
1489
[Back to TOC](#directives)
1474
1490
1475
1491
rewrite_by_lua
@@ -1615,6 +1631,8 @@ When the Lua code cache is turned on (by default), the user code is loaded once
1615
1631
1616
1632
The `rewrite_by_lua_file` code will always run at the end of the `rewrite` request-processing phase unless [rewrite_by_lua_no_postpone](#rewrite_by_lua_no_postpone) is turned on.
1617
1633
1634
+
Nginx variables are supported in the file path for dynamic dispatch just as in [content_by_lua_file](#content_by_lua_file).
1635
+
1618
1636
[Back to TOC](#directives)
1619
1637
1620
1638
access_by_lua
@@ -1709,6 +1727,8 @@ When the Lua code cache is turned on (by default), the user code is loaded once
1709
1727
and the Nginx config must be reloaded each time the Lua source file is modified.
1710
1728
The Lua code cache can be temporarily disabled during development by switching [lua_code_cache](#lua_code_cache) `off` in `nginx.conf` to avoid repeatedly reloading Nginx.
1711
1729
1730
+
Nginx variables are supported in the file path for dynamic dispatch just as in [content_by_lua_file](#content_by_lua_file).
@@ -232,7 +233,7 @@ The Lua state (Lua VM instance) is shared across all the requests handled by a s
232
233
= Nginx Compatibility =
233
234
The latest module is compatible with the following versions of Nginx:
234
235
235
-
* 1.7.x (last tested: 1.7.7)
236
+
* 1.7.x (last tested: 1.7.10)
236
237
* 1.6.x
237
238
* 1.5.x (last tested: 1.5.12)
238
239
* 1.4.x (last tested: 1.4.4)
@@ -245,7 +246,7 @@ The latest module is compatible with the following versions of Nginx:
245
246
246
247
= Installation =
247
248
248
-
The [http://openresty.org ngx_openresty bundle] can be used to install Nginx, ngx_lua, either one of the standard Lua 5.1 interpreter or LuaJIT 2.0/2.1, as well as a package of powerful companion Nginx modules. The basic installation step is a simple <code>./configure --with-luajit && make && make install</code>.
249
+
It is highly recommended to use the [http://openresty.org ngx_openresty bundle] that bundles Nginx, ngx_lua, LuaJIT 2.0/2.1 (or the optional standard Lua 5.1 interpreter), as well as a package of powerful companion Nginx modules. The basic installation step is a simple command: <code>./configure --with-luajit && make && make install</code>.
249
250
250
251
Alternatively, ngx_lua can be manually compiled into Nginx:
251
252
@@ -257,9 +258,9 @@ Alternatively, ngx_lua can be manually compiled into Nginx:
But be very careful about malicious user inputs and always carefully validate or filter out the user-supplied path components.
1222
+
1208
1223
== rewrite_by_lua ==
1209
1224
1210
1225
'''syntax:''' ''rewrite_by_lua <lua-script-str>''
@@ -1338,6 +1353,8 @@ When the Lua code cache is turned on (by default), the user code is loaded once
1338
1353
1339
1354
The <code>rewrite_by_lua_file</code> code will always run at the end of the <code>rewrite</code> request-processing phase unless [[#rewrite_by_lua_no_postpone|rewrite_by_lua_no_postpone]] is turned on.
1340
1355
1356
+
Nginx variables are supported in the file path for dynamic dispatch just as in [[#content_by_lua_file|content_by_lua_file]].
1357
+
1341
1358
== access_by_lua ==
1342
1359
1343
1360
'''syntax:''' ''access_by_lua <lua-script-str>''
@@ -1423,6 +1440,8 @@ When the Lua code cache is turned on (by default), the user code is loaded once
1423
1440
and the Nginx config must be reloaded each time the Lua source file is modified.
1424
1441
The Lua code cache can be temporarily disabled during development by switching [[#lua_code_cache|lua_code_cache]] <code>off</code> in <code>nginx.conf</code> to avoid repeatedly reloading Nginx.
1425
1442
1443
+
Nginx variables are supported in the file path for dynamic dispatch just as in [[#content_by_lua_file|content_by_lua_file]].
0 commit comments