httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James.B.M...@Hitchcock.ORG (James B. Muir)
Subject Re: [users@httpd] Tomcat.
Date Tue, 06 May 2003 12:53:38 GMT
--- You wrote:
With you knowledge of mod_jk, how is it possible to tell Apache, that .java
files are to be treated as a servlet?
--- end of quote ---

With mod_jk, you use the JkMount directive. There are some good examples out on the web. Here
is a simple example using the Tomcat "examples":

JkMount /examples/*.jsp tomcat1
JkMount /examples/servlet/* tomcat1

where tomcat1 is the worker I defined in the workers.properties file.

Any URL that refers to a document in the "directory" /examples/ and has a suffix .jsp will
be forwarded to Tomcat.
Any URL that refers to a document in the "directory" /examples/servlet/ will be forwarded
to tomcat.

Hope this helps.
-James

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message