First, the Host element should be nested inside the Engine element. As for
the "Connection duplicated" error, do you have another WebAppConnection
statement with the same connection name in the httpd.conf?
RS
"Giovanni P. Tirloni" <[EMAIL PROTECTED]> on 04/15/2002 09:28:42 AM
Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:
Subject: Tomcat 4.0.4 + WARP
Hi,
Is there anything wrong with my server.xml for virtual domains with
Apache? I've that domain and in httpd.conf I have this:
<VirtualHost 1.2.3.4>
ServerName mydomain.com
ServerAlias www.mydomain.com
DocumentRoot /home/mydomain.com
WebAppConnection mydomain-conn warp localhost:8008
WebAppDeploy mydomain-context mydomain-conn /context
</VirtualHost>
server.xml:
<Server port="8005" shutdown="SHUTDOWN" debug="5">
<Service name="Tomcat-Apache">
<Connector className="org.apache.catalina.connector.warp.WarpConnector"
port="8008" minProcessors="5" maxProcessors="30"
enableLookups="false" appBase="webapps"
acceptCount="10" debug="0"/>
<Engine className="org.apache.catalina.connector.warp.WarpEngine"
name="Apache" debug="0">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="apache_log." suffix=".txt"
timestamp="true"/>
<Realm className="org.apache.catalina.realm.MemoryRealm" />
</Engine>
<Host name="mydomain.com">
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="true" />
<Context path="/context" docBase="/home/mydomain.com/context" />
</Host>
</Service>
</Server>
I think there must be something wrong with <Listener> since I'm using
the warp connection and there's "ajp.tomcat4" there. Would this cause
a "Connection duplicated" error when starting Apache ?
--
Giovanni P. Tirloni
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>