users@glassfish.java.net

Re: SUN AS 9.1 reverse proxy

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Mon, 05 Jan 2009 12:01:08 -0500

Salut,

glassfish_at_javadesktop.org wrote:
> Dear All,
>
> Is there a plugin, or can AS 9.1 act as a reverse proxy?
> by means I want if clients call http://<IP>:8080/iwc to be redirected to https://<IP>
>
> How can i achieve this?

You can use port unification for automatic redirection of all http ->
https [1]. Mainly, just add under the http-listener port 8080:

<property name="proxiedProtocol" value="https"/>

If you need a more fine grained approach (like filtering/redirecting)
you might either want to write a Filter or a Valve[2].

A+

-- Jeanfrancois

[1]
http://weblogs.java.net/blog/jfarcand/archive/2006/11/one_port_to_rul.html
[2]
http://weblogs.java.net/blog/jfarcand/archive/2006/09/extending_glass.html


>
> Regards,
> Scotty
> [Message sent by forum member 'scottymask' (scottymask)]
>
> http://forums.java.net/jive/thread.jspa?messageID=323689
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>