NGINX reverse proxy giving 500 error

Okay, I did a bit of digging and realized my file permissions were all screwed up; couldn’t find something to show the correct permissions for the sites-enabled page so I cleaned it all away with an atp purge. Started over with a copy of my old nginx proxy definitions and now, in the openhab android app, I’m getting a) HTTP 401 Authentication failed and b) no traffic in the error log.

To better-explain my setup: I have port forwarding set up on my router from 8443 externally to my openhabian instance port 443. The proxy is set to listen on port 80 and redirect to 443, as described in the page mentioned above. Server 443 has proxy_pass set to localhost:8080.

I have set the remote server URL to my DDNS hostname (using https://[my domain]:8443) and use the username and password set up during the creation of my .htpasswd file.

Attempting to log in through a mobile browser gives me a loop of being asked for credentials where, sometimes, the interface presented looks very OpenHAB-esque but when I provide credentials, the loop starts over again. At least with the mobile browser, the error log updates with a password mismatch so I think that rules out any issues with my port forward and reverse proxy settings (but would be happy to be proven wrong).