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
Copy file name to clipboardExpand all lines: README.markdown
+8
Original file line number
Diff line number
Diff line change
@@ -3769,6 +3769,14 @@ Then `GET /orig` will give
3769
3769
3770
3770
rather than the original `"hello"` value.
3771
3771
3772
+
Because HTTP request is created after SSL handshake, the `ngx.ctx` created
3773
+
in [ssl_certificate_by_lua*](#ssl_certificate_by_lua), [ssl_session_store_by_lua*](#ssl_session_store_by_lua) and [ssl_session_fetch_by_lua*](#ssl_session_fetch_by_lua)
3774
+
is not available in the following phases like [rewrite_by_lua*](#rewrite_by_lua).
3775
+
3776
+
Since `dev`, the `ngx.ctx` created during a SSL handshake
3777
+
will be inherited by the requests which share the same TCP connection established by the handshake.
3778
+
Note that overwrite values in `ngx.ctx` in the http request phases (like `rewrite_by_lua*`) will only take affect in the current http request.
3779
+
3772
3780
Arbitrary data values, including Lua closures and nested tables, can be inserted into this "magic" table. It also allows the registration of custom meta methods.
3773
3781
3774
3782
Overriding `ngx.ctx` with a new Lua table is also supported, for example,
Copy file name to clipboardExpand all lines: doc/HttpLuaModule.wiki
+8
Original file line number
Diff line number
Diff line change
@@ -3082,6 +3082,14 @@ Then <code>GET /orig</code> will give
3082
3082
3083
3083
rather than the original <code>"hello"</code> value.
3084
3084
3085
+
Because HTTP request is created after SSL handshake, the <code>ngx.ctx</code> created
3086
+
in [[#ssl_certificate_by_lua|ssl_certificate_by_lua*]], [[#ssl_session_store_by_lua|ssl_session_store_by_lua*]] and [[#ssl_session_fetch_by_lua|ssl_session_fetch_by_lua*]]
3087
+
is not available in the following phases like [[#rewrite_by_lua|rewrite_by_lua*]].
3088
+
3089
+
Since <code>dev</code>, the <code>ngx.ctx</code> created during a SSL handshake
3090
+
will be inherited by the requests which share the same TCP connection established by the handshake.
3091
+
Note that overwrite values in <code>ngx.ctx</code> in the http request phases (like `rewrite_by_lua*`) will only take affect in the current http request.
3092
+
3085
3093
Arbitrary data values, including Lua closures and nested tables, can be inserted into this "magic" table. It also allows the registration of custom meta methods.
3086
3094
3087
3095
Overriding <code>ngx.ctx</code> with a new Lua table is also supported, for example,
0 commit comments