diff --git a/lib/ngx/ssl.md b/lib/ngx/ssl.md index 78dff4a9e..609471a55 100644 --- a/lib/ngx/ssl.md +++ b/lib/ngx/ssl.md @@ -270,7 +270,7 @@ server_port **context:** *any* Returns the server port. Returns `nil` -when server dont have a port. +when the server does not have a port. In case of failures, it returns `nil` *and* a string describing the error. diff --git a/lib/ngx/ssl/clienthello.md b/lib/ngx/ssl/clienthello.md index 05bc4c9a2..51cd30346 100644 --- a/lib/ngx/ssl/clienthello.md +++ b/lib/ngx/ssl/clienthello.md @@ -72,7 +72,7 @@ Description This Lua module provides API functions for post-processing SSL client hello message for NGINX downstream connections. -It must to be used in the contexts [ssl_client_hello_by_lua*](https://github.com/openresty/lua-nginx-module/#ssl_client_hello_by_lua_block). +It must be used in the context [ssl_client_hello_by_lua*](https://github.com/openresty/lua-nginx-module/#ssl_client_hello_by_lua_block). This Lua API is particularly useful for dynamically setting the SSL protocols according to the SNI. diff --git a/lib/ngx/ssl/proxysslverify.md b/lib/ngx/ssl/proxysslverify.md index ecf9bce4c..b78de8c74 100644 --- a/lib/ngx/ssl/proxysslverify.md +++ b/lib/ngx/ssl/proxysslverify.md @@ -64,7 +64,7 @@ Description This Lua module provides API functions for post-processing SSL server certificate message for NGINX upstream connections. -It must to be used in the contexts [proxy_ssl_verify_by_lua*](https://github.com/openresty/lua-nginx-module/#proxy_ssl_verify_by_lua_block). +It must be used in the context [proxy_ssl_verify_by_lua*](https://github.com/openresty/lua-nginx-module/#proxy_ssl_verify_by_lua_block). This directive runs user Lua code when Nginx is about to post-process the SSL server certificate message for the upstream SSL (https) connections.