Skip to main content

http to https rewrite

4 replies [Last post]
markwal229
Offline
Joined: 2009-06-18

using Application Server 9.1 update 2

SSL termination is at the netscaler load balancer then all traffic is routed to port 80.

How can I force the application server to rewrite all returned urls as https.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
markwal229
Offline
Joined: 2009-06-18

Is this just another example of functionality that doesn’t exist in glassfish? You can do it in IIS and Apache. Do I need to open a ticket? Maybe a RFE? It has it if you're using the load balancer plugin it looks like.

Jan Luehe

On 06/30/09 12:28 PM, glassfish@javadesktop.org wrote:
> Is this just another example of functionality that doesn’t exist in glassfish?

No, this is supported via the "authPassthroughEnabled" property of
http-listener/http-service.

See the section on "Using Redirects with the HTTP Load Balancer"
in the Sun GlassFish Enterprise Server 2.1 High Availability
Administration Guide at

http://docs.sun.com/app/docs/doc/820-4341/gbwwx?l=en&a=view&q=authPassth...

for details.

Jan

> You can do it in IIS and Apache. Do I need to open a ticket? Maybe a RFE? It has it if you're using the load balancer plugin it looks like.
> [Message sent by forum member 'markwal229' (markwal229)]
>
> http://forums.java.net/jive/thread.jspa?messageID=353642
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

markwal229
Offline
Joined: 2009-06-18

All traffic is sent from the netscaler as http now.

What I was doing is terminating the certs at the netscaler and then having a seperate 40 bit ssl session from the netscaler to the server on 443. Worked great.

The client wants port 443 closed on the server. Web Applications i.e. access manager, communications express return the full url which is going to be http since it's coming from port 80.If you configure AM in AMConfig.properties to only use https it expects https requests not http.
I explained to them it won't work this way but I get the "well Microsoft exchange owa can do it". Another admin mentioned apache can do it using mod_rewrite.

Thanks for the url.

Dick Davies

Raise a call with Citrix, this isn't an unusual situation to be in when
you're using a Netscaler and there are a few ways around it.

On Wed, Jul 1, 2009 at 9:15 PM, wrote:
> All traffic is sent from the netscaler as http now.
>
> What I was doing is terminating the certs at the netscaler and then having a seperate 40 bit ssl session from the netscaler to the server on 443. Worked great.
>
>  The client wants port 443 closed on the server. Web Applications i.e. access manager, communications express  return the full url which is going to be http since it's coming from port 80.If you configure AM in AMConfig.properties to only use https it expects https requests not http.
> I explained to them it won' work this way but I get the well Microsoft exchange owa can do it. Another admin mentioned apache can do it using mod_rewrite.
>
> Thanks for the url.
> [Message sent by forum member 'markwal229' (markwal229)]
>
> http://forums.java.net/jive/thread.jspa?messageID=353827
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net