How to change the return URL of the login form?

3 messages Options
Embed this post
Permalink
Mirto Silvio Busico-2 () How to change the return URL of the login form?
Reply Threaded More More options
Print post
Permalink
Hi all,

I'm using Apache in front of this chain:

apache --> varnish --> deliverance --> pound --> (plone client 1 and
client 2) --> zeoserver

Everything works fine except the login form.

When I login, the login form redirects me to the pound address.

Example:
login form url: http://plone.msb.net/base1/login_form
execute login ed I'm directed to url: http://localhost:4180/base1

(well, same problem with logout)


Here my question: how can I change the redirect url address of the login
form?


Thanks
    Mirto

[mirtosilvio_busico.vcf]

begin:vcard
fn:Mirto Silvio Busico
n:Busico;Mirto Silvio
org:Busico Mirto Silvio
adr:;;Via Casiglion De' Pepoli 84;Roma;RM;00127;Italia
email;internet:[hidden email]
title:Dr.
tel;work:+39 333 4562651
tel;cell:+39 333 4562651
x-mozilla-html:TRUE
version:2.1
end:vcard



_______________________________________________
Setup mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/setup
Stefan H. Holek () Re: How to change the return URL of the login form?
Reply Threaded More More options
Print post
Permalink
There's no such thing. You'll have to fix your virtual hosting setup  
(VHM rules).


On 23.09.2009, at 12:47, Mirto Silvio Busico wrote:

> Here my question: how can I change the redirect url address of the  
> login form?

--
Stefan H. Holek
[hidden email]





_______________________________________________
Setup mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/setup
Mirto Silvio Busico-2 () Re: How to change the return URL of the login form?
Reply Threaded More More options
Print post
Permalink
Well, first I've found a workaround: I drop login/logout and in the
content area I add a link pointing to: "login_form?came_from=/base3"
(where "base3" is the plone site id)

I'm not shure about what I have to put in the VHM, any hint?

Hoping more informations clarify my framework. I have:

An Apache virtual host (plone.msb.net) with this rewrite rule (4160 is
the listening port for Varnish):

RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^/(.*) http://%{SERVER_NAME}:4160/$1 [P]

Varnisch serve the output of deliverance (port 4170).

Deliverance define this proxy:

  <proxy path="/base3" class="plone-msb-base">
    <dest
href="http://localhost:4180/VirtualHostBase/http/{Host}:80/VirtualHostRoot/base3/"
/>
  </proxy>

On port 4180 there is Pound that balances a Plone 3.3 installed in zeo
configuration (client1 on 4190 and client2 on 4191)

This configuration works for all the links (well, I have problems with
TinyMCE, but this is another thread) before login. It works well also
after the login.
The only thing that doesn't work is the redirection (came_from=) that is
passed to the login form.

Any help will be grately appreciated.

Thanks
    Mirto

Stefan H. Holek ha scritto:

> There's no such thing. You'll have to fix your virtual hosting setup
> (VHM rules).
>
>
> On 23.09.2009, at 12:47, Mirto Silvio Busico wrote:
>
>> Here my question: how can I change the redirect url address of the
>> login form?
>
> --
> Stefan H. Holek
> [hidden email]
>
>
>
>
>

[mirtosilvio_busico.vcf]

begin:vcard
fn:Mirto Silvio Busico
n:Busico;Mirto Silvio
org:Busico Mirto Silvio
adr:;;Via Casiglion De' Pepoli 84;Roma;RM;00127;Italia
email;internet:[hidden email]
title:Dr.
tel;work:+39 333 4562651
tel;cell:+39 333 4562651
x-mozilla-html:TRUE
version:2.1
end:vcard



_______________________________________________
Setup mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/setup