On 19.08.2010 20:27, li...@cgi-net.ch wrote:
Hi List,

I'm running mod_jk on a apache 2.2.14 connecting to a second host, running
tomcat 5 server with a third party application.
This application is configured to display some company internal
information when accessing the page directly without any subdirectory:
like: http://<servername>/
A second application part is located under address
http://<servername>/application ->  please note, this is not a directory,
this is a servlet-mapping made by tomcat (and we can't change the tomcat
setup as we would loose support for it)

My problem is now, that I only what to grant access to
http://<servername>/application for external customers through the apache
mod_jk setup.
But of some reason do I have trouble implementing this.

How did you try to achive that?

JkMount /application|/* worker1

Is the application deployed on Tomcat using the same context name "/application"?

What was the exact result, when you tried that?

The stuff only works if I configure mod_jk to JkMount /* - but with that,
also the page ttp://<servername>/ is access-able.
I've also tried it with Rewrite rules (to make sure everything else than
http://<servername/application is redirected to this address), etc. but
nothing was/is working.

Rewriting will not be necessary as long as the context name on Tomcat is "/application".

Please find below some information about my setup:

###
### setup information
###
mod_jk version: 1.2.30
mod_jk httpd configuration (that's how it is working but it will allow
access to any application, served by the tomcat server):
# Some URL Redirecting is required
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f
RewriteCond %{REQUEST_URI} !=/application
RewriteRule .* /application

Let's remove the rewriting as long as we are debugging your original problem.

# Load Module
LoadModule      jk_module       modules/mod_jk.so
# Worker File
JkWorkersFile   /<path to worker file>/workers.properties
# Where to put the log
JkLogFile       /<path to log file>/mod_jk.log
# Log level
JkLogLevel      debug
# Select the timestamp log format
JkLogStampFormat        "[%a %b %d %H:%M:%S %Y] "
JkMount         /* worker1

mod_jk worker configuration:
# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=chnovmn3.lcsys.ch
worker.worker1.port=8009
worker.worker1.connection_pool_timeout=60
worker.worker1.socket_keepalive=1

The log snippert you provided was parts of the log produced by successful requests, i.e. requests that were forwarded to tomcat and replied stuff. Please do provide the log contents for a request that does not work, i.e. which does show the problem.

Regards,

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to