You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Balaji Varanasi <ba...@cc.usu.edu> on 2004/06/24 19:50:10 UTC
Tomcat JK2 Question
Hello All,
I am not sure if this question has been answered but will appreciate if
some one can help. I have apache 2 and tomcat running on the same
machine and are connected by jk2. My webserver url is
http://someserv.com <http://someserv.com/> and my web app is someapp
containing jsp pages. I can access my app with the url
http://someserv.com/someapp properly. But I want to access it just by
typing http://someserv.com <http://someserv.com/> .
Thanks in advance,
Balaji
Re: Tomcat JK2 Question
Posted by ba...@bpo.be.
If you have Apache, I guess it serves static requests, so you could use.
Simply let http://someserv.com/index.html to be served by Apache and put for example an
index.html with this content :
<meta HTTP-EQUIV="REFRESH" content="0; url=http://someserv/someapp">
Apache will redirect instantly to your webapp.
Bastien.
Mark Lowe wrote:
> In fact combine what oliver and I have suggested and you should be home
> n dry.
>
>
>
> On 24 Jun 2004, at 20:24, Oliver Nautsch wrote:
>
>> Hello Balaji,
>>
>> try something like:
>>
>> ...
>> [uri:/*.jsp]
>> group=ajp13:localhost:8009
>> ...
>>
>> in your workers2.properties
>>
>> Oliver
>>
>>
>> Balaji Varanasi wrote:
>>
>>> Hello All,
>>> I am not sure if this question has been answered but will appreciate if
>>> some one can help. I have apache 2 and tomcat running on the same
>>> machine and are connected by jk2. My webserver url is
>>> http://someserv.com <http://someserv.com/> and my web app is someapp
>>> containing jsp pages. I can access my app with the url
>>> http://someserv.com/someapp properly. But I want to access it just by
>>> typing http://someserv.com <http://someserv.com/> . Thanks in advance,
>>> Balaji
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat JK2 Question
Posted by Mark Lowe <ma...@boxstuff.com>.
In fact combine what oliver and I have suggested and you should be home
n dry.
On 24 Jun 2004, at 20:24, Oliver Nautsch wrote:
> Hello Balaji,
>
> try something like:
>
> ...
> [uri:/*.jsp]
> group=ajp13:localhost:8009
> ...
>
> in your workers2.properties
>
> Oliver
>
>
> Balaji Varanasi wrote:
>> Hello All,
>> I am not sure if this question has been answered but will appreciate
>> if
>> some one can help. I have apache 2 and tomcat running on the same
>> machine and are connected by jk2. My webserver url is
>> http://someserv.com <http://someserv.com/> and my web app is someapp
>> containing jsp pages. I can access my app with the url
>> http://someserv.com/someapp properly. But I want to access it just by
>> typing http://someserv.com <http://someserv.com/> . Thanks in
>> advance,
>> Balaji
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat JK2 Question
Posted by Oliver Nautsch <o....@nautsch.com>.
Hello Balaji,
try something like:
...
[uri:/*.jsp]
group=ajp13:localhost:8009
...
in your workers2.properties
Oliver
Balaji Varanasi wrote:
> Hello All,
> I am not sure if this question has been answered but will appreciate if
> some one can help. I have apache 2 and tomcat running on the same
> machine and are connected by jk2. My webserver url is
> http://someserv.com <http://someserv.com/> and my web app is someapp
> containing jsp pages. I can access my app with the url
> http://someserv.com/someapp properly. But I want to access it just by
> typing http://someserv.com <http://someserv.com/> .
>
> Thanks in advance,
> Balaji
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat JK2 Question
Posted by Mark Lowe <ma...@boxstuff.com>.
<Host name="www.sparrow.com" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="true" xmlNamespaceAware="false">
<Context path="" docBase="sparrow" />
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="sparrow_log." suffix=".log"
pattern="common" resolveHosts="false"/>
</Host>
Notice the path attribute in context.
HTH Mark
On 24 Jun 2004, at 19:50, Balaji Varanasi wrote:
> Hello All,
> I am not sure if this question has been answered but will appreciate if
> some one can help. I have apache 2 and tomcat running on the same
> machine and are connected by jk2. My webserver url is
> http://someserv.com <http://someserv.com/> and my web app is someapp
> containing jsp pages. I can access my app with the url
> http://someserv.com/someapp properly. But I want to access it just by
> typing http://someserv.com <http://someserv.com/> .
>
> Thanks in advance,
> Balaji
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org