|Configuring Tomcat for codeBeamer #8735/HEAD / v590|
Configuring Tomcat for codebeamer
This page describes using codebeamer with Tomcat. For configuration help with other application servers, such as Oracle Weblogic Server 11g (10.3.2) get in touch with Intland Software.
codebeamer is shipped with a self-signed SSL-Certificate from Intland Software. The Port's SSL certificate is configured in the <cb-installation-dir>/tomcat/conf/server.xml file in the section:
<!-- Define an SSL HTTP/1.1 Connector on port 8443 --> <Connector port="8443" ... keystoreFile="webapps/cb/config/keystore" keystorePass="..." ... />
To configure the SSL-Certificate, change the attributes keystoreFile and keystorePass, to point to the keystore with the certificate.
Maximum HTTP POST Size
Tomcat by default sets a limit on the maximum size of HTTP POST requests to 2 Mb. In case receiving the error message Post too large, edit the <Connector> element in <cb-installation-dir>/tomcat/conf/server.xml and add an attribute maxPostSize and set a larger value (in bytes) to increase the limit. Setting it to 0 disables the size check.
Using codebeamer standard HTTP/HTTPS without Root Privilege
See: How to run Tomcat without root privileges?
Redirecting Port (iptabes)
One way is to use Iptables to redirect ports 80 and 443 to user ports (>1024).
$ /sbin/iptables -A FORWARD -p tcp --destination-port 443 -j ACCEPT $ /sbin/iptables -t nat -A PREROUTING -j REDIRECT -p tcp --destination-port 443 --to-ports 8443 $ /sbin/iptables -A FORWARD -p tcp --destination-port 80 -j ACCEPT $ /sbin/iptables -t nat -A PREROUTING -j REDIRECT -p tcp --destination-port 80 --to-ports 8080 $ /sbin/iptables-save or /etc/init.d/iptables save
BSD-based Unix systems such as Mac OS X use a tool similar to Iptables, called IPFW (for Internet Protocol Fire Wall). This tool watches all network packets go by, and can apply rules to affect those packets, such as port-forwarding from port 80 to some other ports such as Tomcat's default 8080. The syntax of the rules is different from those of the Iptables, however, the logic is the same.
E.g.: possible rule for the port-forwarding:
$ sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to any 80 in
Using Apache in front of codebeamer/Tomcat (mod_jk)
This page is deprecated. See Apache Proxy configuration.
In order to run codebeamer/Tomcat with non-root privileges and to be able to access codebeamer/Tomcat via the standard HTTP/HTTPS ports 80 and 443, set up an Apache Web server with the Apache Tomcat Connector (mod_jk) in front of codebeamer.
Next, you have to install and configure the Installing Apache Webserver (Deprecated).
See also: Application configuration via environment variables, Apache Tomcat 9 Configuration Reference
codebeamer Knowledge Base
Services by Intland Software