Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
I finally fixed the problem by using authbind instead.
Here’s the script:
user=user
touch /etc/authbind/byport/80
chmod 500 /etc/authbind/byport/80
chown $user /etc/authbind/byport/80
touch /etc/authbind/byport/443
chown $user /etc/authbind/byport/443
chmod 500 /etc/authbind/byport/443
To work, you need to start the domain with:
authbind --deep asadmin start-domain domain
Not sure I know the answer to your question unfortunately. Though I might have a different solution to your problem. Is there a specific reason why you don’t change the port directly through Glassfish?
You can do this in the admin interface by going to Configurations -> server-config -> Network Config -> Network Listeners

You can accomplish the same thing on the command line. For instance, to bind http-listener-1 to port 80 run:
asadmin delete-network-listener http-listener-1
asadmin delete-protocol http-listener-1
asadmin create-http-listener --default-virtual-server server --listenerport 8081 --listeneraddress 0.0.0.0 http-listener-1