seaside and apache - alwaysRedirect ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

seaside and apache - alwaysRedirect ?

Sylvain pralon
Hi,

I'am currently trying to hide a seaside application behind an apache
proxypass.
With previous versions of Seaside I just have to set up the
alwaysRedirect preference to false in the seaside/config tool.
Now I can not find this setting anymore. It seems I have to override a
WARedirectHandler object...
Is anyone who knows how to do this whit recent version of Seaside
(version 2.8a1.399)

Thanks for answers.

Sylvain Pralon
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: seaside and apache - alwaysRedirect ?

Lukas Renggli
> With previous versions of Seaside I just have to set up the
> alwaysRedirect preference to false in the seaside/config tool.

Doing so breaks the back-button in many cases.

> Now I can not find this setting anymore. It seems I have to override a
> WARedirectHandler object...

This was removed somewhere between Seaside 2.5 and 2.6.

> Is anyone who knows how to do this whit recent version of Seaside
> (version 2.8a1.399)

I guess you don't want to disable the redirects. So you should tell us
what the problem is you are trying to cure by setting #alwaysRedirect
to false.

If you Seaside applications generates invalid URLs when proxying you
should tell Apache 2 to preserve the host-name:

   ProxyPreserveHost On

In case you are using Apache 1 you have to manually provide this
information through the application configuration interface: "Server
Hostname" and "Server Port". In any case you have to set the actual
path in "Server Path".

Hope this helps.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: seaside and apache - alwaysRedirect ?

Sebastian Sastre-2
In reply to this post by Sylvain pralon
Hi Sylvain,
       
        this is for sure more an Apache issue than Seaside. I personally
prefer the rewrite rules to what you described. It's ugly develop them but
once they work they do it so good. With them you got more flexibility of
scenarios. The apache docs have a couple of cases check:

http://httpd.apache.org/docs/2.0/rewrite/rewrite_guide.html

        You also usually can found useful examples of this kind of apache
stuff at ruby guys forums and sites because that part for ruby is pretty
much the same as seaside.

        Good luck :)

Sebastian Sastre


> -----Mensaje original-----
> De: [hidden email]
> [mailto:[hidden email]] En nombre
> de Sylvain Pralon
> Enviado el: MiƩrcoles, 05 de Septiembre de 2007 11:25
> Para: Seaside - general discussion
> Asunto: [Seaside] seaside and apache - alwaysRedirect ?
>
> Hi,
>
> I'am currently trying to hide a seaside application behind an
> apache proxypass.
> With previous versions of Seaside I just have to set up the
> alwaysRedirect preference to false in the seaside/config tool.
> Now I can not find this setting anymore. It seems I have to
> override a WARedirectHandler object...
> Is anyone who knows how to do this whit recent version of
> Seaside (version 2.8a1.399)
>
> Thanks for answers.
>
> Sylvain Pralon
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: seaside and apache - alwaysRedirect ?

Sylvain pralon
Thanks, I'll look into this way.

Sylvain

Sebastian Sastre a écrit :
Hi Sylvain,
	
	this is for sure more an Apache issue than Seaside. I personally
prefer the rewrite rules to what you described. It's ugly develop them but
once they work they do it so good. With them you got more flexibility of
scenarios. The apache docs have a couple of cases check:

http://httpd.apache.org/docs/2.0/rewrite/rewrite_guide.html

	You also usually can found useful examples of this kind of apache
stuff at ruby guys forums and sites because that part for ruby is pretty
much the same as seaside.

	Good luck :)

Sebastian Sastre


  
-----Mensaje original-----
De: [hidden email] 
[[hidden email]] En nombre 
de Sylvain Pralon
Enviado el: Miércoles, 05 de Septiembre de 2007 11:25
Para: Seaside - general discussion
Asunto: [Seaside] seaside and apache - alwaysRedirect ?

Hi,

I'am currently trying to hide a seaside application behind an 
apache proxypass.
With previous versions of Seaside I just have to set up the 
alwaysRedirect preference to false in the seaside/config tool.
Now I can not find this setting anymore. It seems I have to 
override a WARedirectHandler object...
Is anyone who knows how to do this whit recent version of 
Seaside (version 2.8a1.399)

Thanks for answers.

Sylvain Pralon
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
    

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

  


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside