I have created PU protocol on Glassfish server in order to serving SSL pages forcefully. The main issue is this is the only way to redirect all the non-http requests to https. I did not find any other option for ‘SSL forcing’ in Glassfish 3 version. But here I want to get the same domain.xml file without having the PU ( port unification) protocal enabled. Becasue we enabled many other customer variables on domain.xml and wanted to move all the ssl parts under the loadbalencer (ssl offloading)
1. How to create PU protocol to use force https
Here is the reverse process of the activities remove PU protocol
1. Assuming that Glassfish is installed on (/home/glassfish/bin) folder and execute the below commands.