Hello!
On Mon, May 5, 2014 at 8:17 AM, Aleksey Chirkin wrote:
> I configure ansible to automate installing newer versions of OpenResty.
>
> I need to know what current version is installed now.
>
> How can I check it?
>
Assuming your're using the default installation prefix, the following
command will show the version (and other configuration options
*actually* used):
/usr/local/openresty/nginx/sbin/nginx -V
Checking the "Server" response header in a request served by that
OpenResty's nginx will also do the trick, as long as you do *not* turn
off the "server_tokens" directive:
http://nginx.org/en/docs/http/ngx_http_core_module.html#server_tokens
Regards,
-agentzh