Skip to main content

HttpsToHttpRedirectOnSamePort and HttpsToHttpRedirectOnDifferentPort features

2 replies [Last post]
chenyichen
Offline
Joined: 2012-10-15

Dear Sir,

There is one thing needing to consult:

I have to execute the following commands in our environment, and our GlassFish version is GlassFish Server Open Source Edition 3.0.1 (build 22). Unfortunately, the following steps require a nightly build of GlassFish 3.1.

Because I want to upgrade the current components as few as possible, is there any idea?

Best Regards and have a Nice Day

Chen Yi Chen

Reference:

###
### HttpsToHttpRedirectOnSamePort
###
asadmin create-protocol --securityenabled=true http-redirect
asadmin create-http-redirect --secure-redirect false http-redirect
asadmin create-ssl --certname s1as --type network-listener --ssl2enabled=false --ssl3enabled=false --tlsenabled=true --tlsrollbackenabled=true --clientauthenabled=false http-redirect
asadmin create-protocol --securityenabled=false pu-protocol
asadmin create-protocol-finder --protocol pu-protocol --targetprotocol http-listener-1 --classname com.sun.grizzly.config.HttpProtocolFinder http-finder
asadmin create-protocol-finder --protocol pu-protocol --targetprotocol http-redirect --classname com.sun.grizzly.config.HttpProtocolFinder http-redirect
asadmin set configs.config.server-config.network-config.network-listeners.network-listener.http-listener-2.protocol=pu-protocol
asadmin set configs.config.server-config.network-config.network-listeners.network-listener.http-listener-2.enabled=true
###
### HttpsToHttpRedirectOnDifferentPort
###
asadmin create-protocol --securityenabled=true http-redirect
asadmin create-http-redirect --redirect-port 8080 --secure-redirect false http-redirect
asadmin create-ssl --certname s1as --type network-listener --ssl2enabled=false --ssl3enabled=false --tlsenabled=true --tlsrollbackenabled=true --clientauthenabled=false http-redirect
asadmin create-protocol --securityenabled=false pu-protocol
asadmin create-protocol-finder --protocol pu-protocol --targetprotocol http-listener-1 --classname com.sun.grizzly.config.HttpProtocolFinder http-finder
asadmin create-protocol-finder --protocol pu-protocol --targetprotocol http-redirect --classname com.sun.grizzly.config.HttpProtocolFinder http-redirect
asadmin set configs.config.server-config.network-config.network-listeners.network-listener.http-listener-2.protocol=pu-protocol
asadmin set configs.config.server-config.network-config.network-listeners.network-listener.http-listener-2.enabled=true

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rlubke
Offline
Joined: 2003-08-21

If you want to use those series of commands, you don't need a 3.1 nightly. The 3.1.2.2 release is available.

chenyichen
Offline
Joined: 2012-10-15

Dear Sir,

Unfortunately, I can't upgrade our environment from 3.0.1 (build 22) to 3.1.2.2 for some reasons.

So I want to upgrade the current components as few as possible, is there any other idea?

Can I only upgrade the component which the “admin-cli.jar” file belongs to?

Best Regards and have a Nice Day

Chen Yi Chen