You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Arnaud Deflorenne <ad...@immedia.be> on 2004/02/10 15:22:09 UTC

Configuration question (part 2)

Thanks a lot. If I understand your email, I have to add a Context tag in my
host definition?

<Host name="www.adress1.com" debug="0"
appBase="d:\inetpub\wwwroot\mydirecory\" unpackWARs="true"  autoDeploy="false">
         <Context path="" docBase="." debug="0">
         </Context>
        <Valve className="org.apache.catalina.valves.AccessLogValve"
directory="d:\logs\ofisa" prefix="html_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
         <Logger className="org.apache.catalina.logger.FileLogger"
directory="d:\logs\ofisa"  prefix="file_log." suffix=".txt"
                 timestamp="true" verbosity="2" />
</Host>

And the context could look like <Context path="" docBase="en/part2/" debug="0">

Three questions:
Where can I define the adress of my second web-application (www.adress2.com).
Where can I define the Welcome-file for this second site (mypage.htm)
Which value must I give to the path attribute?


Thanks a lot

Arnaud


At 10:57 10/02/04 +0000, you wrote:
>i think what you mean is run two instances of tomcat.  you do this within
>the conf/server.xml, and make another copy of the context path file where
>docbase is the root directory of your new website, remember to stop and
>start tomcat for the changes to take effect.
>
>    <Context path="/.." docBase=".../.../"
>         debug="0" reloadable="false" />
>
>i think that should help.
>
>At 11:37 10.02.2004 +0100, you wrote:
>>Hello,
>>
>>I work with Tocat 5.018 on Win2K.
>>
>>Here is my question: I would like to define two web adresses
>>(www.adress1.com and www.adress2.com) on the "nearly" same web site...
>>In fact, my first adress has to point to my default web page in the root
>>folder (/index.htm) : no problem for this, it works fine; my second adress
>>has to point to a page in a subdirecory (like /en/part2/mypage.htm).
>>
>>I don't know how to define this situation in Tomcat. Could you give me some
>>idea?
>>
>>Thanks in advance.
>>
>>Arnaud
>>
>>
>>
>>---------------------------------------------------------------------
>>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
>