tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Bruce" <>
Subject Re: Virtual Hosts
Date Tue, 21 Mar 2000 02:27:45 GMT
I have gotten it to work with Tomcat 3.0 by modifying the server.xml file.
I added an additional context manager within the <server></server> tags:
Note that the AJP12 port parameter is on a different port

    <ContextManager port="8078" hostName="" inet="">

    Note: a default context, one which path is specified
          as "/", must be defined per the servlet 2.2
        <Context path="/home/www/" docBase="webpages"
            defaultSessionTimeOut="30" isWARExpanded="true"
            isWARValidated="false" isInvokerEnabled="true"

        <Context path="/servlets" docBase="/home/www/"
            defaultSessionTimeOut="30" isWARExpanded="true"
            isWARValidated="false" isInvokerEnabled="true"

        <!-- AJP12 - current JServ module -->
            <Parameter name="handler"
            <Parameter name="port" value="8005"/>

I then added a new line within the virutal host definition of httpd.conf
(between <VirtualHost></VirtualHost>) that I wanted to use the new context
<IfModule mod_jserv.c>
      ApJServMount /servlets ajpv12://localhost:8005/servlets
Notice that the ApJServMount points to the connector mount point listed

I am not sure this is the correct way to do this, maybe someone on this
mailinglist knows a better way, but it is working for me.

I hope this helps.


Chris Bruce

----- Original Message -----
From: "Arthur Copeland ( -" <>
To: <>
Sent: Monday, March 20, 2000 10:19 AM
Subject: Virtual Hosts

> does virutal hosts work in jakarta?  what i need or what
> working is the ability to have multiple and different
> root directories for a give name based virtual hosted
> web site.  i currently use jserv 1.0 and gnujsp 1.0 and
> am able to have multiple named virtual hosts with
> different document / site roots.  is this possible with
> jakarta now or do i have to wait still?  if possible
> then how do i do it?
> artie
> --------------------------------------------------------------------------
> To unsubscribe, email:
> For additional commmands, email:

View raw message