Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 14th, 2004, 09:10 PM
Registered User
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Apache, tomcat contexts, host, etc.

I was wondering, is there an easy way to allow all URLS past the base jsp drive to be accessed by tomcat? Here is an example: I have this address: hello.dyndns.org/peddler to get to the connected directory that tomcat can use (setup in j2.properties and workers.properties and server.xml). My problem is that I need to have this sort of thing work:
hello.dyndns.org/peddler/programming and other dirs past peddler/ to not have to be defined as contexts in tomcat or apache, is there an easy way to do this? Thanks.

 
Old April 10th, 2004, 06:06 PM
Registered User
 
Join Date: Apr 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to nicku
Default

First of all:
1."the base jsp drive"??
2."apache context"?? mean vhost maybe?
So what i understand is that u use an apache httpd front end and mapped tomcat as worker to /peddler perhaps via a vhost declaration with jk2 directives, just a guess, never really setup a tomcat connector with apache. What you may consider is "connecting" these servers in more loosely way e.g. use apache as reverse proxy server for Tomcat, that will run on it's 8080 or whatever port you assigned to it. A rev proxy makes the client see the address he typesd while the content comes from another URL, so u have some flexibility on how to alocate ports, machines, make some load balancing and let things flexible. Just an idea. For more info of what Apache 2 can do as reverse proxy check out mod_proxy module docs on apache website. Let me know if this helps or what exactly IS your problem: do you need the same session scope for all /peddler i.e. have a single webapp for that or just don't want to hardcode each new subdirectory to make apache "forward" it to the right spot?..too much already, hope gave u an idea, works great for my project

-------------
Nicu Marasoiu
java programmer





Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat +SEVERE: Remote Host /127.0.0.1 SocketExcep ItsNeverLateToStartAgain Apache Tomcat 1 September 4th, 2007 06:17 AM
C# programming on Apache Tomcat vkcuong Apache Tomcat 0 July 17th, 2007 09:03 PM
Apache Tomcat [email protected] Apache Tomcat 3 April 19th, 2006 07:24 AM
JWS Axis Tomcat (posted to Apache Tomcat too) rushman Servlets 0 April 15th, 2005 09:32 AM
Need help in connecting apache 2.0 with tomcat 4.1 rammohan Apache Tomcat 1 April 10th, 2004 06:16 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.