You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "grobmeier@possessed.de" <gr...@possessed.de> on 2005/06/22 09:31:27 UTC

mod_jk configuration

Hello all,

i am using Tomcat 4.1.3x, mod_jk 1.x and Apache 1.3.x.

I have read all the documentation available on apache.org, but
i think i have not understood some principles of JK.

Problem:
I have java.domain.tld pointing to the root-directory of Tomcat. The default
tomcat site appears. I guess my installations are ok.

I want to have myotherdomain.tld pointing to a specific webapp.
I have a worker (the same as the java.domain.tld Domain), but where
must i declare which context is to use?

In my vhosts i have:
<virtual host ...>
JkMount /* ajp13       <-- My worker
</virtual host ...>

In my workers.properties there is nothing about an context. Documentation
told me nothin about tags to declare. Btw, i installed my app with the 
war-deploy feat.
Maybe this is important.

Any help is appreciated- thank you for reading.

Regards
Chris

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


Re: Host & Context Configuration

Posted by "Chris. Grobmeier" <gr...@possessed.de>.
Hi!

 >>what happens if u remove the standard root-app ??

i checked this out and realized that deep links work.
I guess my problem is not in tomcat, but in my Struts-Configuration.
It seems my default-page forward forwards to the wrong host.

thanks anoop for the tip!  this was exactly the hint i needed.
regards
chris


>>
>>    
>>
>
>
>  
>


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


Re: Host & Context Configuration

Posted by Anoop kumar V <an...@gmail.com>.
what happens if u remove the standard root-app ??

I think tomcat is showing u the index.html and maybe this is in your
domain_webapp.

Also shouldn't the line:
>     <Context path="" docBase="/etc/tomcat4/webapps/domain_webapp.war" />
be
<Context path="" docBase="/etc/tomcat4/webapps/domain_webapp" />

Hope that helps,
Anoop

On 6/29/05, Chris. Grobmeier <gr...@possessed.de> wrote:
> Hello,
> its me again. I am trying to configure my tomcat to receive domain.de
> and map it to the correct context.
> Apache-Configuration looks OK.
> 
> In my Localhost-Engine (is this ok? i guess so) i have a seconde host:
> 
> <Host   name="domain.de"
>                 appBase="/etc/tomcat4/webapps/domain_webapp"
>                 autoDeploy="true">
>     <Alias>www.domain.de</Alias>
>     <Context path="" docBase="/etc/tomcat4/webapps/domain_webapp.war" />
> </Host>
> .
> Problem is, when i type domain.de in my browser, the standard root-app
> of tomcat
> appears. It would be nice if you have any suggestions for me.
> If have read these documents (thx to colby):
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html
> 
> but it seems i haven't got the point yet.
> 
> Thanx in advance and have a good n8!
> Chris
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


-- 
Thanks and best regards,
Anoop

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


Host & Context Configuration

Posted by "Chris. Grobmeier" <gr...@possessed.de>.
Hello,
its me again. I am trying to configure my tomcat to receive domain.de 
and map it to the correct context.
Apache-Configuration looks OK.

In my Localhost-Engine (is this ok? i guess so) i have a seconde host:

<Host   name="domain.de"
                appBase="/etc/tomcat4/webapps/domain_webapp"
                autoDeploy="true">   
    <Alias>www.domain.de</Alias>
    <Context path="" docBase="/etc/tomcat4/webapps/domain_webapp.war" />
</Host>
.
Problem is, when i type domain.de in my browser, the standard root-app 
of tomcat
appears. It would be nice if you have any suggestions for me.
If have read these documents (thx to colby):
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html

but it seems i haven't got the point yet.

Thanx in advance and have a good n8!
Chris



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


Re: mod_jk configuration

Posted by Co...@firstdatacorp.com.
One way to do this is to declare a host in your server.xml instance

The server.xml will need to contain an entry within the engine like


<Host name="myotherdomain.tld" appBase="webapps" unpackWARs="true" 
autoDeploy="true">
         <Logger className="org.apache.catalina.logger.FileLogger"
                        directory="logs" 
                        prefix="YOUR_PREFIX." suffix=".txt"
                        timestamp="true"/>
 
        <!-- this takes all requests to myotherdomain.tld and associates 
them to the context , may need to play with this--> 
         <Context path="" 
                docBase="/path/to/your/appDir/or/war_file"
                crossContext="false"
                debug="10" 
                reloadable="false"
                trusted="false"> 
        </Context> 
        <!-- ** the deva application context ** -->
</Host>

And in your httpd.conf 
<virtual host ...>
servername myotherdomain.tld
JkMount /* ajp13       <-- My worker
</virtual host ...>

This seems to work in our configuration to handle this type of operation.

Have Fun...
Colby C. Meyer




"grobmeier@possessed.de" <gr...@possessed.de> 
06/22/2005 01:31 AM
Please respond to
"Tomcat Users List" <to...@jakarta.apache.org>


To
Tomcat Users List <to...@jakarta.apache.org>
cc

Subject
mod_jk configuration






Hello all,

i am using Tomcat 4.1.3x, mod_jk 1.x and Apache 1.3.x.

I have read all the documentation available on apache.org, but
i think i have not understood some principles of JK.

Problem:
I have java.domain.tld pointing to the root-directory of Tomcat. The 
default
tomcat site appears. I guess my installations are ok.

I want to have myotherdomain.tld pointing to a specific webapp.
I have a worker (the same as the java.domain.tld Domain), but where
must i declare which context is to use?

In my vhosts i have:
<virtual host ...>
JkMount /* ajp13       <-- My worker
</virtual host ...>

In my workers.properties there is nothing about an context. Documentation
told me nothin about tags to declare. Btw, i installed my app with the 
war-deploy feat.
Maybe this is important.

Any help is appreciated- thank you for reading.

Regards
Chris

---------------------------------------------------------------------
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