5.5. Web Server Port Setup

By default, BELTS listens on port 8080 for requests. This can be changed to any other port by editing BELTS_HOME/server/default/deploy/jbossweb-tomcat50.sar/server.xml. In this file, find the following lines:

<Connector port="8080" address="${jboss.bind.address}"
     maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
     enableLookups="false" redirectPort="8443" acceptCount="100"
     connectionTimeout="20000" disableUploadTimeout="true"/>

Change the “8080” to the desired port number.

[Note]Note

On Linux, a normal user process cannot open a server on “privileged” ports. In this environment, you should use Apache's mod_proxy or some other facility to map a call to a URL on port 80 to your BELTS server running on port 8080.

On Windows, there are no restrictions on the port you use, but you should ensure that you do not have IIS or another web server running if you wish to use port 80 for your BELTS server.