I added this bit of wisdom to the wiki, thanks Oliver!
http://confluence.magnolia.info/x/SYCD
- Boris
On Mar 12, 2008, at 4:32 PM, Oliver Lietz wrote:
Am Mittwoch, 12. März 2008 schrieb Ryan Gardner:
I was reading through Tomcat: The Definitive Guide (2007 book) and
[...]
In any case, reading that made me decide to switch my configuration
from using mod_jk or mod_proxy_ajp (my latest config was a half-baked
mod_proxy_ajp setup... I say half-baked because I could never get the
stupid thing to work reliably... despite my best efforts I would
always get 503 responses under even a light load) to using jsvc to
run tomcat on port 80.
There are some downsides to this approach... such as - when I am
taking tomcat down I don't get Apache sitting there telling people my
server is unavailable... they just get a blank page.
Configure Tomcat to only listen on internal port 8080 and use a
packet filter
like pf or ipfw to redirect public port 80 to internal port 8080.
Use e.g. lighttpd listening on a different internal port (e.g. 80)
for serving
a maintenance page. Create a second ruleset for maintenance mode
redirecting
from public port 80 to lighttpd's port. Switch pf rules when doing
maintenance.
Fortunately, my server is really really fast, so it only takes me 20
seconds total to restart tomcat and most people wont even realize it
happened. :)
Reloading pf rules is _much_ faster. 8)
O.
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------