David McLure schrieb:
> Hi Olaf,
>
> Yes, this is the problem that re-emerged when I had to
back-rev to an
> earlier version of my Apache / Tomcat config files in
which my
> multiple web domains and their respective mod_jk
workers are all
> currently sharing the same worker port.
Hi,
I've skimmed through your config files and believe they are
a bit too
verbose and contain some duplication and some misleading
parts.
First: From httpd.conf it looks like the domains
mydomain.com,
foodomain.com and bardomain.com are all resolving to the
same IP
address. If this is the case, a single worker in
worker.properties would
be sufficient.
I'll try to sketch the config files here. Attention: They
have been
typed into thunderbird and never touched a real server.
workers.properties:
worker.list=theworker
#
worker.theWorker.port=8009
worker.theWorker.host=localhost
worker.theWorker.type=ajp13
#
# don't know how much of these is required:
worker.theWorker.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=theWorker
httpd.conf:
<VirtualHost 1.2.3.4>
ServerName www.mydomain.com
# omitting some irrelevant stuff for connecting to
tomcat
JkMount /pebble theWorker
JkMount /pebble/* theWorker
</VirtualHost>
mod_jk.conf:
<IfModule !mod_jk.c>
LoadModule jk_module libexec/mod_jk.so
</IfModule>
JkWorkersFile /path/to/your/workers.properties
# Don't know how much of JkShmFile, JkLogFile,
# JkLogLevel and JkLogStampFormat are required.
# JkMount instructions are definitely not
# required here. It's sufficient to have them
# within the VirtualHost sections.
I've omitted *.jsp and *.do mounts, as everything under
/pebble is
delegated to tomcat. For the purpose of this mail I don't
care for other
content besides pebble.
Having multiple independent installations of pebble could be
done either
through Virtual Hosts on the tomcat side (see tomcats
server.xml for
configuration) or through deploying multiple pebble
instances with
different names. E.g. on http://www.olafkock.de/ok
a>, ok is the name I've
deployed pebble as.
For some securityByObscurity reasons I prefer to always
install
applications under different names than the original anyways
- judging
from all the /phpmyadmin/* hits my server gets even though
it doesn't
even know anything about php, I feel this is a good baby
step protecting
from random security problems.
I hope this helps. If this leaves questions open, don't
hesitate to ask
- I might summarize this and even add tested config files
soon: My
server will be updated some time soon and I'll start clean.
Cheers,
Olaf
------------------------------------------------------------
-------------
This SF.net email is sponsored by the 2008 JavaOne(SM)
Conference
Don't miss this year's exciting event. There's still time to
save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;1987
57673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Pebble-user mailing list
Pebble-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pebble-user
|