Issue

key values mismatch

**failed (SSL: error:05800074:x509 certificate routines::key values mismatch)**</codE>

But:
  * Checked modulus of cert and key = OK
  * Compare public key from cert and key = OK
  * the exactly same cert+key pair works with another nginx
Solution:
  * one of virtual hosts (development env) containes path to another .crt than .key


=====  Too many open files =====

Some request returns 404 and error is logged in ''error.log''
<code>
[crit] 124477#124477: accept4() failed (24: Too many open files)

https://www.cyberciti.biz/faq/linux-unix-nginx-too-many-open-files/

nginx: [warn] protocol options redefined for 0.0.0.0:443

Nginx 1.23.4 introduces listen directive consistency check between all config files.

All listen 443 directives must be with the same options. So example below shows incorrect configuration:

# in some files:
listen 443 ssl http2;

# in another:
listen 443 ssl;

So check every virtualhost config file and also /nginx/conf.d/default.conf

More: