How do I run JBoss or Tomcat on port 80 or 443?

Solution Verified - Updated -

Issue

  • Can we run JBoss as a non-root user, but still use port 80?
  • How is tomcat configured to run as a non-root user on port 80?
  • We would like to be able to access our application by https://www.mydomain.example.com rather than having to specify https://www.mydomain.example.com:8443
  • Able to deploy JBoss successfully when run as a root user but getting the following Exception when run as a normal user:

    java.net.BindException: Permission denied
    
  • How to use port 80 for http instead of 8080 without apache. We tried changing <socket-binding name="http" port="8080"/> to <socket-binding name="http" port="80"/> in standalone.xml, does not work ?

  • How to make a JBoss EAP 6.2.4 installed and running under Windows 2008 R2 to use port 80 instead of 8080 and 443 instead of 8443 in JBoss. Is there any concern ?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.x
    • 6.x
    • 7.x
    • 8.x
  • Red Hat JBoss Enterprise Web Server (EWS)
  • Red Hat JBoss Web Server (JWS)
    • Tomcat

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content