You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Geoff Wiggs <gw...@orcastech.com> on 2005/04/14 02:15:32 UTC

Apache Tomcat & JK Mod

I know this question has probably been asked 1000 times, but here I go
again.
 
I have Apache / Tomcat and jk_mod all running correctly.  If I hit the URL
correctly (i.e. "www.server.com/context/") my jsp's and servlets come up
just fine.  Now I want to serve my home page (www.server.com
<http://www.server.com/> ) as a JSP.  My context is /home.  If I hit
www.server.com/home the JSP comes up just the way I want it.
 
How can I make the connection between the request for www.servername.com
<http://www.servername.com/>  and the correct context
www.servername.com/home?  Apache, jk_mod or Tomcat options would be fine, I
am just having a problem making the connection between the three work the
way I need.  
 
Regards,
 
Geoff 
gwiggs@orcastech.com
 

RE: Apache Tomcat & JK Mod

Posted by Geoff Wiggs <gw...@orcastech.com>.
I tried this, but I still get sent to the Tomcat splash page.  The url I am
trying to translate to is www.orcastech.com/home/ .  Any more clues?

<VirtualHost *>
	ServerName www.servername.com
	RewriteEngine On
	RewriteRule (.*) /home$1
  	JkMount /home/* 		worker1
	JkMount /emba48wiki* 	worker1
	JkMount /admin 		worker1
	JkMount /manager 		worker1
	JkMount /* 		worker1
</VirtualHost>

Geoff Wiggs
Orcas Technologies, Inc
gwiggs@orcastech.com
650-520-1121
 
-----Original Message-----
From: Mladen Turk [mailto:mladen.turk@jboss.com] 
Sent: Wednesday, April 13, 2005 10:11 PM
To: Tomcat Users List
Subject: Re: Apache Tomcat & JK Mod

Geoff Wiggs wrote:
> I know this question has probably been asked 1000 times, but here I go
> again.
>

OK. Once for all :)

RewriteEngine On
RewriteRule (.*) /servlets-examples$1 [PT]



> I have Apache / Tomcat and jk_mod all running correctly.  If I hit the URL
> correctly (i.e. "www.server.com/context/") my jsp's and servlets come up
> just fine.  Now I want to serve my home page (www.server.com
> <http://www.server.com/> ) as a JSP.  My context is /home.  If I hit
> www.server.com/home the JSP comes up just the way I want it.
>  
> How can I make the connection between the request for www.servername.com
> <http://www.servername.com/>  and the correct context
> www.servername.com/home?  Apache, jk_mod or Tomcat options would be fine,
I
> am just having a problem making the connection between the three work the
> way I need.  
>  

I still do not understand why would yo wish to do something like that.
You can easily make Tomcat working on port 80, and move your /home to
the ROOT.

Regards,
Mladen.



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Apache Tomcat & JK Mod

Posted by Mladen Turk <ml...@jboss.com>.
Geoff Wiggs wrote:
> I know this question has probably been asked 1000 times, but here I go
> again.
>

OK. Once for all :)

RewriteEngine On
RewriteRule (.*) /servlets-examples$1 [PT]



> I have Apache / Tomcat and jk_mod all running correctly.  If I hit the URL
> correctly (i.e. "www.server.com/context/") my jsp's and servlets come up
> just fine.  Now I want to serve my home page (www.server.com
> <http://www.server.com/> ) as a JSP.  My context is /home.  If I hit
> www.server.com/home the JSP comes up just the way I want it.
>  
> How can I make the connection between the request for www.servername.com
> <http://www.servername.com/>  and the correct context
> www.servername.com/home?  Apache, jk_mod or Tomcat options would be fine, I
> am just having a problem making the connection between the three work the
> way I need.  
>  

I still do not understand why would yo wish to do something like that.
You can easily make Tomcat working on port 80, and move your /home to
the ROOT.

Regards,
Mladen.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org