Hi,
BuildSmart wrote:
I'm trying to get around a configuration issue.
My webapp builds dynamic script content but the generated scripts are
not accessible.
For example, calling
http://domain.tld/index.jsp?ip=192.168.0.10&count=10&key=robot" should
generate some subdirectories and builds some jsp pages with content and
this seems to work as expected but from apache these are not accessible
but from the Tomcat port I can access the pages without issue, is there
a way to resolve this?
With respect to what is following below, I'm not actually sure, if I
understand, what you mean by "not accessible".
I can't pre-define the mount points for the subdirectories because I
don't know what they are in advance, there doesn't seem to be a way to
define access to Tomcat based on the file extension since it wont let
you assign a mount point without a leading "/".
JkMount /*.jsp myworker
would be perfectly valid. You can combine prefixes and suffixes.
If there are no rules at all (no known prefixes and no known suffixes)
then your URL space is weird and you can only use
JkMount /* myworker
and live with the consequences :(
In case it would be easier to describe, what *not* to forward, you can
combine JkMount with JkUnmount
See
http://tomcat.apache.org/connectors-doc/reference/apache.html
and
http://tomcat.apache.org/connectors-doc/reference/uriworkermap.html
See further comments inline.
Maybe I should be using a different protocol that allows assignment by
file extension (if one exists) but google has done nothing but create
more confusion for me.
_______________________________________
My apache config contains:
_______________________________________
<IfModule mod_jk.c>
JKWorkersFile /etc/httpd/workers.ajp13.properties
JKLogFile /var/log/httpd/mod_jk.log
JKLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
That was our old default JkLogStampFormat. If you omit the lines, you
will get milliseconds for free starting with mod_jk 1.2.25.
JkMount /*.jsp ajp13
Uups: there you are, you already use a suffix pattern!
JkOptions +ForwardKeySize +ForwardURICompat
It's very likely, that you won't need the +ForwardURICompat when using
an up-to-date mod_jk.
</IfModule>
_______________________________________
my workers.ajp13.properties contains:
_______________________________________
ps=/
This defines a variable ps, which you are never using. Simply delete this.
# Define 1 real worker using ajp13
worker.list=ajp13
# ------------------------
# First worker server
# ------------------------
# Set properties for ajp13 (ajp13)
worker.ajp13.host=localhost
worker.ajp13.port=8019
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
#
# END workers.properties
#
_______________________________________
-- Dale
Regards,
Rainer
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]