I've noticed that most of these Apache / Tomcat / Mod_jk2 instructions get one to a point where
http://localhost/examples will map to http://localhost:8080/examples And this is great, but what about introducing virtual hosts into the equation. Currently, I use <VirtualHost> in apache (httpd) to direct hostnames to specific directories. (I can merely use the machine name of my win2K box for this). How does one configure Apache to direct a virtual host to a specific WebApp? For example, the following workers2.properties entry: [uri:/ServerTest/*] alias=localhost info=default context context=/ServerTest debug=0 gets me to my ServerTest Web app from http://localhost/ServerTest, but how can I: 1) configure a webapp for a differently named context: (ie, http://localhost/examples --> http://localhost:8080/ServerTest 2) configure a webapp for the default context: (ie, http://localhost --> http://localhost:8080/ServerTest 3) configure a webapp for a virtualhost: (ie, http://mymachine --> http://localhost:8080/ServerTest If someone could suggest configs for these, it would be great Mladen Turk wrote: > 0. Install Java 1.4 > 1. Install Tomcat 4.1.7 (like c:\tomcat4.1.7) > 2. set the TOMCAT_HOME as system environment variable and reboot > 3. Install Apache (2.0.39 min at somewhere like c:\apache2) > 4. Build jk2 from cvs (current builds wont work) > 5. copy tomcat-jni.jar to c:\tomcat4.1.7\bin > 6. copy tomcat-jk2.jar to c:\tomcat4.1.7\server\lib > 7. copy mod_jk2.dll to c:\apache2\modules > 8. Find the directive ServerRoot "c:/apache2" in the httpd.conf and move > it before any LoadModule directive > 9. Add the following to the httpd.conf > LoadModule jk2_module modules/mod_jk2.dll > 10. Use the attached workers2.proterties that has to be in the > c:\apache2\conf (change the paths accordingly) > 11. Use the attached jk2.properties and save to the c:\tomcat4.1.7\conf > directory (change the paths accordingly). > 12. Run Apache (It will start the tomcat inprocess) > 13. Report any bugs (will be appreciated) > > MT. > > ------------------------------------------------------------------------ > Name: workers2.properties > workers2.properties Type: unspecified type (application/octet-stream) > Encoding: quoted-printable > > Name: jk2.properties > jk2.properties Type: unspecified type (application/octet-stream) > Encoding: 7bit > > ------------------------------------------------------------------------ > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
