Forum OpenACS Q&A: Redirect after login

Collapse
Posted by Richard Hamilton on

Does anyone know why this is happening after login? Always been able to fix this in previous versions but version 5 is not playing ball.

Login to

http://www.server.com

Redirects to /home/index -- no problem

Click on 'Log In' link

Redirects to

https://www.server.com:8444/register/  -- no problem

Enter email and password and submit.

and redirect fails giving :



Not Found

The requested URL was not found on this server.

AOLserver/3.3.1+ad13 on https://www.server.biz:8444



URL line shows:

https://www.server.com:8444/register/testerror.html?host=www%2eserver%2ecom%3a8444

Any tips greatly appreciated!

Thanks Richard
Collapse
2: Re: Redirect after login (response to 1)
Posted by James Thornton on
What's the actual domain? In the aolserver footer it says "server.biz" in the examples it says "server.com".
Collapse
3: Re: Redirect after login (response to 1)
Posted by Richard Hamilton on
That's a very astute spot - for the purposes of the forum post I had substituted server.com for the actual domain which is a .biz and missed the footer line. The domain does match up in actual fact.

R.

Collapse
4: Re: Redirect after login (response to 1)
Posted by Richard Hamilton on
I have discovered a bit more about this now - perhaps this will give you a bit more to go on:

1) I visit http ://www.server.com

2) I type http ://www.server.com/log to see a page that should be restricted to registered users but should be visible over insecure http

3) The server correctly redirects me to https ://www.server.com/register with the return url set to http ://www.server.com/log

4) I enter the password and the browser warns me that I am about to be redirected back to an insecure http page, but then serves me the 'url not found' error via https

5) If I subsequently type http ://www.server.com/log into the browser, the page displays just fine.

[I have added the spaces so that these don't display as links - since they aren't real]

Regards
Richard