SSL client certificate authentication returns “21:unable to verify the first certificate”

I’m in the process of transferring some of my old-and-busted apache2 web servers to newer and more resilient nginx containers. On my old web server, I have an apache2 server that hosts secretbackdoor.example.com, which authenticates “users” (only me) using a signed certificate. The CA is setup in the following way: > ROOT CA (self-signed, obviously)…

Nginx rewrite help needed – what’s wrong with this?

I had an nginx rewrite rule written, but when I implemented it, it didn’t work properly. Website 1: # “best” added // $rewrited_best_added “~/(?<rewrited_best_added>baby-food-makers|strollers)/$” “/best-$rewrited_best_added/”; in server block: if ($rewrited_request_uri != “”) { rewrite ^(.*)$ https://website2.com$rewrited_request_uri permanent; } The expected result is: https://website1.com/strollers/ goes to https://website2.com/best-strollers/ However, it instead goes to https://website2.com/best-$rewrited_best_added/ Can anyone tell…