Additional <Service elements, Would I then create additional <Engine
elements? And if so, how do I tell the connector to you the appropriate
Engine?
IE This doesn't work though. It always gives me Site2.
<?xml version='1.0' encoding='utf-8'?>
<Server>
<Listener
className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
<Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/
>
<GlobalNamingResources>
<Environment name="simpleValue" type="java.lang.Integer"
value="30"/>
<Resource auth="Container" description="User database that can be
updated and saved" name="UserDatabase"
type="org.apache.catalina.UserDatabase"/>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams>
</GlobalNamingResources>
<Service name="Site1">
<Connector acceptCount="100" connectionTimeout="20000"
disableUploadTimeout="true" port="8080" address="172.16.10.39"
redirectPort="8443">
</Connector>
<Connector port="8009" address="172.16.10.39" protocol="AJP/1.3"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
redirectPort="8443">
</Connector>
<Engine defaultHost="Site1.com" name="Site1">
<Host name="Site1.com" debug="0" appBase="c:\sites\Site1"
unpackWARs="true" autoDeploy="false" xmlValidation="false"
xmlNamespaceAware="false">
<Context path="" docBase="c:/sites/Site1" debug="0"/>
<Valve
className="org.apache.catalina.authenticator.SingleSignOn" debug="0"/>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="client-domain." suffix=".txt" pattern="common"
resolveHosts="false"/>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="client-domain2." suffix=".txt"
timestamp="true"/></Host>
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="Site1_log." suffix=".txt" timestamp="true"/>
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
</Engine>
<Connector port="8009" address="172.16.10.38" protocol="AJP/1.3"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
redirectPort="8443">
</Connector>
<Engine defaultHost="Site2.com" name="Site2">
<Host name="Site2.com" debug="0" appBase="c:\sites\Site2"
unpackWARs="true" autoDeploy="false" xmlValidation="false"
xmlNamespaceAware="false">
<Context path="" docBase="c:/sites/Site2" debug="0"/>
<Valve
className="org.apache.catalina.authenticator.SingleSignOn" debug="0"/>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="client-domain." suffix=".txt" pattern="common"
resolveHosts="false"/>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="client-domain2." suffix=".txt"
timestamp="true"/></Host>
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="Site2_log." suffix=".txt" timestamp="true"/>
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
</Engine>
</Service>
</Server>
Thanks for your help. Its these forums that I love about open source.
Charles
-----Original Message-----
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 10:32 AM
To: 'Tomcat Users List'
Subject: RE: Host Directive
that all looks good to me, but it's additional <Connector elements, not
<Service. I'm unsure of how this is impacted with connectors to IIS.
> -----Original Message-----
> From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 26, 2004 10:10 AM
> To: Tomcat Users List
> Subject: RE: Host Directive
>
>
> Lets see if I got this right. This is what one of the services looks
> like. Do I then create an additional service per IP address?
>
>
> <Service name="siteName">
> <Connector acceptCount="100" connectionTimeout="20000"
> disableUploadTimeout="true" port="8080"
> address="172.16.10.38" redirectPort="8443">
> </Connector>
> <Connector port="8009" address="172.16.10.38"
> protocol="AJP/1.3"
> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
> redirectPort="8443">
> </Connector>
> <Engine defaultHost="siteName.com" name="siteName">
> <Host name="siteName.com" debug="0"
> appBase="c:\sites\siteName" unpackWARs="true"
> autoDeploy="false" xmlValidation="false" xmlNamespaceAware="false">
> <Context path="" docBase="c:/sites/siteName" debug="0"/>
> <Valve
> className="org.apache.catalina.authenticator.SingleSignOn" debug="0"/>
> <Valve className="org.apache.catalina.valves.AccessLogValve"
> directory="logs" prefix="client-domain." suffix=".txt"
> pattern="common" resolveHosts="false"/>
> <Logger className="org.apache.catalina.logger.FileLogger"
> directory="logs" prefix="client-domain2." suffix=".txt"
> timestamp="true"/></Host>
>
> <Logger className="org.apache.catalina.logger.FileLogger"
> prefix="siteName_log." suffix=".txt" timestamp="true"/>
> <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
> </Engine>
> </Service>
>
>
> BTW I am using the Isapi_Redirector.dll to hook IIS up to Tomcat.
>
>
>
> Thanks for your help.
> Charles
>
>
> -----Original Message-----
> From: Mike Curwen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 26, 2004 9:43 AM
> To: 'Tomcat Users List'
> Subject: RE: Host Directive
>
> Sorry, thought I'd clear something up.
>
> In the Engine element, there's an attribute "defaultHost".
> You'd then create your one Host element with a name element
> that matches the defaultHost attribute of its surrounding Engine.
>
> Then within the Host, you'd have a single context, "the
> default", with a path attribute of empty string. (the empty
> string makes it the default one).
>
> > -----Original Message-----
> > From: Mike Curwen [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, May 26, 2004 9:30 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Host Directive
> >
> >
> > If you can configure more than one Connector, you can use the
> > 'address' attribute on that element to specify which IP address to
> > listen on.
> >
> > Then, inside your connector, declare one host, make it the default,
> > and then you won't need a 'cgi folder'. (If by that, you mean a
> > context name).
> >
> >
> > > -----Original Message-----
> > > From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, May 26, 2004 9:10 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Host Directive
> > >
> > >
> > > I have a few websites that I wish to run JSP pages through Tomcat.
> > > Now there are too many host names to create the multiple Aliases
> > > required to get this working properly. Is there a way to
> configure
> > > the host to listen on a single IP address instead of the
> host name?
> > >
> > > IE
> > > site1.com -> 172.1.1.2
> > > www.site1.com -> 172.1.1.2
> > > other.site1.com -> 172.1.1.2
> > > ... -> 172.1.1.2
> > >
> > > site2.com -> 172.1.1.3
> > > www.site2.com -> 172.1.1.3
> > > other.site2.com -> 172.1.1.3
> > > ... -> 172.1.1.3
> > >
> > >
> > > Also can I configure the root of the site to parse the JSP files?
> > > Currently I have to have all of the JSPs in a cgi folder,
> like the
> > > jsp-examples folder.
> > >
> > > Thank You
> > > Charles Killmer
> > > Netgain Technology
> > > [EMAIL PROTECTED]
> > > Office: (320) 251-4700 ext 107
> > >
> > >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]