Right, I figured this out.
For some reason, if you look in the database, under the table wp_options the first option is siteurl. The value for mine here was https://mysite/step2. I got rid of the step 2, and the whole thing started to work. Logins work now too.
Vic