Skip to content
Brandon Elam Barker edited this page May 21, 2016 · 2 revisions

Deployment Options

CED²AR can be deployed on stand alone Tomcat7 or higher. Although Tomcat primarily a Servlet/JSP container, it can server http requests from clients perfectly well. An SSL certificate can be installed on Tomcat so that the content served is encrypted. However, most of the web applications front Tomcat with Apache Httpd (Apache Web Server) for added protection. There are some advantages of having Apache as the front end to Tomcat.

  • Apache can serve static content faster. (CED²AR does not have lot of static content)
  • Apache balances load and makes application highly available, if the CED²AR is running on multiple instances of Tomcat.
  • Tomcat can be kept behind a firewall. (Apache Web Server is taking the request and redirecting them to Tomcat behind Firewall)

For more information on using Apache with Tomcat for CED²AR, see Fronting Tomcat with Apache.

Tomcat configuration

Running CED²AR on Port 80 or port 443 of Tomcat7

In Ubuntu and many other flavors of unix OS's the ports below 1024 are privileged.

  1. Open server.xml file in /var/lib/tomcat7/conf and change port to 80 from 8080 in the following line. Now tomcat will run on port 80.

    <Connector port="8080" protocol="HTTP/1.1"  connectionTimeout="20000" URIEncoding="UTF-8" redirectPort="8443" />
  2. Open tomcat7 file in /etc/default/ and uncomment line #authbind=no and change the value to yes. With this change you are authorizing tomcat to run on port 80