Was just going through this tutorial and encountered errors building nginx from source:
#5 9.014 E: Unable to locate package libssl1.1
#5 9.015 E: Couldn't find any package by glob 'libssl1.1
#5 9.015 E: Couldn't find any package by regex 'libssl1.1
------
executor failed running [/bin/sh -c apt-get update && apt-get install build-essential libpcre3 libpcre3-dev zlib1g zlib1g-dev libssl1.1 libssl-dev -y && apt-get clean && rm -rf /var/lib/apt/lists/*]: exit code: 100
the make file for compiling nginx throws errors for deprecated code using 1.19.2 upgrading to 1.20.2 instead works.
#9 45.57 src/event/ngx_event_openssl.c:729:9: error: 'ENGINE_by_id' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
#9 45.57 729 | engine = ENGINE_by_id((char *) p);
#9 45.57 | ^~~~~~
#9 45.57 In file included from src/event/ngx_event_openssl.h:22,
#9 45.57 from src/core/ngx_core.h:84,
#9 45.57 from src/event/ngx_event_openssl.c:9: