I'm running Wordpress on a small Ubuntu 16.04 Server, with Nginx and Php 7.0. Yesterday I noticed that I didn't have the site configured correctly, so that http://example.com worked, but http://www.example.com did not. I logged into the admin console through example.com/wp_login.php and tried to update the settings, but when I clicked submit I got a blank page saying "This site is currently undergoing maintenance, and will be back shortly."
Now my website isn't displaying. When I go to exmaple.com/wp_login.php I get a plain HTML login page with no formatting. I enter the username and password and I just get a loading icon forever. No error message, no redirect, nothing. Clicking on the "forgot password" link just takes me to the same maintenance message that I had before.
So far I've read a few things and tried disabling all plugins and themes, restarting the server each time. No effect so far. What am I missing here?