Exercises, examples and other material relating to training module A657. This topic is presented on public courses Deploying Apache and Tomcat
, Deploying Java Applications on Linux / Unix
Related technical and longer articlesThe proxy jServ, jk, jk2, warp and jk story
|Articles and tips on this subject||updated|
|3999||Handling failures / absences of your backend server nicely|
It's good for your website to put a professional smile on it's face, even when it's having problems with its backend!
On high traffic sites (for example - TV show and news sites), backend servers can occasionally get overloaded and you'll want your web site visitor to get a message to that effect, ...
|1377||Load Balancing with Apache mod_jk (httpd/Tomcat)|
A single instance of Apache httpd can handle a very large number of simple requests for files to be served ... but a single instance of Apache Tomcat can handle far fewer requests for applications to be run. After all, there's a big difference between just handing someone a piece of data and having ...
|3018||Tuning Apache httpd and Tomcat to work well together|
If you're running Tomcat as your servlet / JSP container, you're more than likely to have it (or them - you may have multiple instances) running as application servers behind Apache httpd (the Http server) or behind a pair of Http servers. That just like having a team of people providing a service (let's ...
|2483||Clustering on Tomcat|
Subject: Clustering, using Apache http server (version 2.2.14 in my example) with mod_proxy_balancer as the front load splitter and Apache Tomcat 6.0.20 as the replicated application engine. [[Tip should also work for other recent 2.2.x and 6.0.x versions]]
This is a follow on article from ...
|1939||mod_proxy_ajp and mod_proxy_balancer examples|
One of the major enhancements in release 2.2 of Apache httpd is the addition of the mod_proxy_ajp and mod_proxy_balancer modules to the standard distribution. Gone are the days of needing to build special modules such as Jserv, jk, jk2 and warp to have httpd act as a "front" to a Java (Tomcat) server ...
|1944||Forwarding session and cookie requests from httpd to Tomcat|
If you're using mod_proxy to forward requests that use sessions to other servers, you need to ensure that the cookies get correctly rewritten as they're sent to the browser for setting, in order to reflect the URL of the customer facing server rather than the back end server.
Here's an example where ...
|1940||URL rewriting with front and back servers|
If you ask someone to double a number, they'll come back to you and tell you twice the number you gave them - give the "3" and they'll say "6". But if you tell them to double the number every time they handle it, but refer it to someone else for them to validate it, you'll get "12" back. Since they ...
|576||Why run two different web servers|
You wouldn't choose to use a Ford Ka as your car for that holiday of a lifetime travelling across Europe, neither would you choose a Jaguar as your idea car for the school run. Yet both of them are perfectly good models of car. Indeed as a family, you might have one of each.
Apache httpd and Apache ...
|1566||Strange behaviour of web directory requests without a trailing slash|
When you call up a web page and you give a directory name WITHOUT a training slash, the web server return a "moved temporarily" page - code 302 - giving you the same name WITH a trailing slash as your new page:
Dorothy:~ grahamellis$ telnet 192.168.200.162 80
Connected to 192.168.200.162.
|631||Apache httpd to Tomcat - jk v proxy|
Many of our customers run both the Apache httpd and Apache Tomcat web servers - with good cause, since Tomcat is biased towards web applications where the same code is run many, many times over and httpd is biased towards serving pages and is better tuned for a much larger number of different pages but ...
Examples from our training material
Some modules are available for download
as a sample of our material or under an Open Training Notes License
for free download from http://www.training-notes.co.uk
Topics covered in this module
The Tomcat connector story.
Apache, Apache httpd and Apache Tomcat.
Do I need both servers?
How are the tasks divided?
jk connector and configuring jk.
A practical complete installation.
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule
Well House Consultants specialise in training courses in
Linux and LAMP
. We run
throughout the UK (and beyond for longer courses), and
at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if you live in a different
country or continent to us
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.