Apache Tomcat Context

2004-04-01 Thread Hari Om
I have my Apache 2.0.47 and Tomcat 4.1.x on different machines and using 
MOD_JK to talk to each other.

My web server URL is khar.bazee.com and my Web Application name is namaste.
On my browser I type http://khar.bazee.com/namaste to access my application 
and it works just great.

However, I would like to access namaste application by using only:
http://khar.bazee.com and NOT using http://khar.bazee.com/namaste
Can anyone give some hints/informaiton as to how to proceed in doing that?

THANKS!

HARI OM

_
Limited-time offer: Fast, reliable MSN 9 Dial-up Internet access FREE for 2 
months! 
http://join.msn.com/?page=dept/dialuppgmarket=en-usST=1/go/onm00200361ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache Tomcat Context

2004-04-01 Thread QM
On Thu, Apr 01, 2004 at 09:35:10PM +, Hari Om wrote:
: However, I would like to access namaste application by using only:
: http://khar.bazee.com and NOT using http://khar.bazee.com/namaste
: 
: Can anyone give some hints/informaiton as to how to proceed in doing that?

2 hints:

1/ read up on contexts in the Tomcat docs.  Specifically, root context

-or-

2/ play with mod_rewrite in Apache

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Apache-Tomcat Context problem

2002-12-01 Thread Laxmikanth M.S.
Hi all,
I have configured apache1.3.27 with Tomcat4.1.12 using mod_jk - AJP13.
I have two sites to be hosted and using two different port Numbers eg. 7010
and 7020 using Apache.
for both the sites the home page is a JSP and so it is under webapps in to
diff directory...I have added two context for the sites.
If I need to open the site say http://localhost:7010/site1/home.jsp and
http://localhost:7020/site2/home.jsp   but I need to open both the sites
without the words site1 and site2how I can do that. I tried adding two
more contexts as / as path and docbase as webapps/site1 and
webapps/site2 ...this was working fine with tomcat3.3.1 but not with
4.1.12 .can anyone help in this regard.
thanks

Regards
Laxmikanth M S 
Off*  : 91-80-6610330 extn 1256
Res* : 91-80-5267150
http://www.sonata-software.com

 Coming together is the beginning, staying together is progress and working
 together is Success
What lies behind us and what lies before us are tiny matters compared to
what lies within us  - Emerson


*
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Apache-tomcat context mapping

2001-07-18 Thread Guntupalli Shanti

Hi Dim

Thanks for the reply.

I have a question on mod_rewrite..if the URL is rewritten then does the 
location box (URL box ) on the browser show the new URL
or the old one? (Meaning all the relative links in my page point to the old 
URI or the new one?)

Thanks again
Shanti

At 03:09 PM 7/18/2001 +1000, you wrote:
mod_rewrite?  I think the problem is that the request will get to tomcat,
and tomcat will not have /example1 mapped...

cheers
dim

On Tue, 17 Jul 2001, Guntupalli Shanti wrote:

  Hi,
 
  Here is my problem.
 
  In apache's config file I should be able to map 2 different URI's to one
  context in my Tomcat.
  something like
 
  APJServMount  /examples/servlet   apjv12://dev:8080/examples
  APJServMount  /examples1/servlet  apjv12://dev:8080/examples
 
  so that any requests coming in with examples/servlet or /examples1/servlet
  should go to the same context examples
 
  I can have another context examples1 in my Tomcat whose docbase is also
  same as examples. But If I do that the
  servlets are getting initialized twice (which doesn't work for me)
 
  Any idea, how to do it?
 
  I am running Apache 1.3.14 (with mod_jserv) talking to tomcat 3.2 on Sun
  solaris.
 
  Thanks...Shanti
 
 




Re: Apache-tomcat context mapping

2001-07-18 Thread Dmitri Colebatch

I'm no apache expert, but from my limited experience with mod_rewrite I'm
pretty sure, almost 100% sure, that the browser knows nothing about
it.  For the browser to know about it apache would have to send back
something other than a 200 response (I think).  But as is best with all
things - try it and see what happens (o:

cheesr
dim

On Wed, 18 Jul 2001, Guntupalli Shanti wrote:

 Hi Dim
 
 Thanks for the reply.
 
 I have a question on mod_rewrite..if the URL is rewritten then does the 
 location box (URL box ) on the browser show the new URL
 or the old one? (Meaning all the relative links in my page point to the old 
 URI or the new one?)
 
 Thanks again
 Shanti
 
 At 03:09 PM 7/18/2001 +1000, you wrote:
 mod_rewrite?  I think the problem is that the request will get to tomcat,
 and tomcat will not have /example1 mapped...
 
 cheers
 dim
 
 On Tue, 17 Jul 2001, Guntupalli Shanti wrote:
 
   Hi,
  
   Here is my problem.
  
   In apache's config file I should be able to map 2 different URI's to one
   context in my Tomcat.
   something like
  
   APJServMount  /examples/servlet   apjv12://dev:8080/examples
   APJServMount  /examples1/servlet  apjv12://dev:8080/examples
  
   so that any requests coming in with examples/servlet or /examples1/servlet
   should go to the same context examples
  
   I can have another context examples1 in my Tomcat whose docbase is also
   same as examples. But If I do that the
   servlets are getting initialized twice (which doesn't work for me)
  
   Any idea, how to do it?
  
   I am running Apache 1.3.14 (with mod_jserv) talking to tomcat 3.2 on Sun
   solaris.
  
   Thanks...Shanti
  
  
 
 




Apache-tomcat context mapping

2001-07-17 Thread Guntupalli Shanti

Hi,

Here is my problem.

In apache's config file I should be able to map 2 different URI's to one 
context in my Tomcat.
something like

APJServMount/examples/servlet   apjv12://dev:8080/examples
APJServMount/examples1/servlet  apjv12://dev:8080/examples

so that any requests coming in with examples/servlet or /examples1/servlet 
should go to the same context examples

I can have another context examples1 in my Tomcat whose docbase is also 
same as examples. But If I do that the
servlets are getting initialized twice (which doesn't work for me)

Any idea, how to do it?

I am running Apache 1.3.14 (with mod_jserv) talking to tomcat 3.2 on Sun 
solaris.

Thanks...Shanti




Re: Apache-tomcat context mapping

2001-07-17 Thread Dmitri Colebatch

mod_rewrite?  I think the problem is that the request will get to tomcat,
and tomcat will not have /example1 mapped...

cheers
dim

On Tue, 17 Jul 2001, Guntupalli Shanti wrote:

 Hi,
 
 Here is my problem.
 
 In apache's config file I should be able to map 2 different URI's to one 
 context in my Tomcat.
 something like
 
 APJServMount  /examples/servlet   apjv12://dev:8080/examples
 APJServMount  /examples1/servlet  apjv12://dev:8080/examples
 
 so that any requests coming in with examples/servlet or /examples1/servlet 
 should go to the same context examples
 
 I can have another context examples1 in my Tomcat whose docbase is also 
 same as examples. But If I do that the
 servlets are getting initialized twice (which doesn't work for me)
 
 Any idea, how to do it?
 
 I am running Apache 1.3.14 (with mod_jserv) talking to tomcat 3.2 on Sun 
 solaris.
 
 Thanks...Shanti