I'm finding this difficult to track down.
I put ns_log statements in util_current_location, and that didn't seem to help much.
I then found the ad_restrict_to_https proc in acs-tcl/tcl/admin-procs.tcl
It is supposed to redirect the user to https, but putting an ns_log statement in it and restarting seems to show that it isn't even called.
Also, I find this problem not just when trying to log in, but anytime the server tries to redirect to https. This happens anytime an anonymous user tries to click on a link that requires them to login. I get a debug statement in error.log that looks like this:
[08/Jul/2004:14:04:16][28906.49156][-conn:usb-dev::0] Notice: RP (8 ms): rp_handler: handling request: GET /register/?return%5furl=http%3a%2f%2fusbakery%2eacornhosting%2enet%3a8000%2fnotifications%2fmanage
But it still hangs.