Jboss 5 changing default port

jboss

I am trying to change the default port on my jboss server to port 80.

i have had a look around the web and i have had suggestions of editing this file jboss5\server\default\deploy\jbossweb.sar\server.xml which is fine. changing this file alone still does not fix the issue.

There have also been suggestion to also change this file:
jboss5\server\default\conf\bootstrap\bindings.xml Only problem is that i cant find this binding.xml

Is the binding.xml file a standard in JBoss 5? Or has it been renamed or changes location in JBoss 5.

Does anyone have any clear steps on changing the the default port from 8080 to 80.

Best Answer

You are probably after jboss-5.1.0.GA/server/standard/deploy/jbossweb.sar/server.xml

See

<Connector protocol="HTTP/1.1" port="8080" address="${jboss.bind.address}"

               connectionTimeout="20000" redirectPort="8443" />

Don't forget that ports below 1024 are generally reserved, and can only be claimed by privileged users (root). Depending on your situation, it may be useful to put an apache reverse proxy in between.