I'm having the exact same issue. I've confirmed port 22222 is open, but I can't access it by my public IP address at all and using the server's local IP, I get a 401 Authorization Required error. Any chance you figured this out? I haven't found any other good tutorial getting Nginx and Wordpress working on a Pi 4 yet.