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 11:37:09 UTC

Configuration question

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


Configuration question (part 2)

Posted by Arnaud Deflorenne <ad...@immedia.be>.
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
>

Re: Snooping on Session data

Posted by Tim Funk <fu...@joedog.org>.
You can probably snoop if ..
1) You wrote your own webapp
2) AND The webapp was written to use tomcat's internal api to snoop
3) AND The webapp was deployed as a privledged webapp (it uses the server 
classloader)

-Tim

Pete Stokes wrote:

> Hi.
> 
> If I have a running Tomcat, am I able to view the actual data in user's 
> sessions? Similar to the functionality provided by WebSphere Snoop / ATG 
> Dynamo management.
>  


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


Snooping on Session data

Posted by Pete Stokes <st...@quinn-direct.com>.
Hi.

If I have a running Tomcat, am I able to view the actual data in user's 
sessions? Similar to the functionality provided by WebSphere Snoop / ATG 
Dynamo management.

Pete.



***********************************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.
***********************************************************************************
For any information on the Quinn Group of Companies please visit :-

http://www.quinn-group.com


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


Re: Configuration question

Posted by Chris Daly <C....@cancer.org.uk>.
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