To run GlassFish on port 80 you need to :
-
Connect to the administration interface (by default on port :4848)
-
In the left menu go to Configurations
-
Then select the appropriate configuration you need to change eg server-config
-
Then go to Network Config
-
Then go to Network Listeners
-
Select the appropriate listener, probably http-listener-1
-
Change the Port value to 80
-
Save and reboot your GlassFish server/instance/cluster according to your needs
Using the command line utility
asadmin set configs.config.server-config.network-config.network-listeners.network-listener.http-listener-1.port=80
you may need to replace server-config
and/or http-listener-1