Hi,
First let me say I�m not a guru on this whole thing and I�m trying to
set up Tomcat 4.0.1 for a friend. I have some little experience with
Tomat 3.2.4 but I would like to move to 4.0.1 to be able to use
virtual hosts support (and get the lastest code too).
I added this to my server.xml:
<Host name="mydomain.com">
<Alias name="www.mydomain.com">
<Context path="/context" docBase="/path/mydomain.com/context"/>
</Alias>
</Host>
The path "/path/mydomain.com/context" is the root of his webapp. Then
I proceed to play with httpd.conf where I add this:
<VirtualHost 1.2.3.4>
ServerName mydomain.com
ServerAlias www.mydomain.com
DocumentRoot /path/mydomain.com
WebAppConnection mydomain-conn warp localhost:8008
WebAppDeploy mydomain-context mydomain-conn /context
</VirtualHost>
The webapp.c module is loaded but when I run 'apachectl configtest' I
get these error messages:
[Mon Apr 08 11:04:31 2002] 32105 (wa_main.c:77) WebApp Library initializing
[Mon Apr 08 11:04:31 2002] 32105 (wa_main.c:81) Initializing APR
[Mon Apr 08 11:04:31 2002] 32105 (pr_info.c:66) INFO provider initialized
[Mon Apr 08 11:04:31 2002] 32105 (pr_warp.c:62) WARP provider initialized
[Mon Apr 08 11:04:31 2002] 32105 (wa_main.c:101) WebApp Library initialized
[Mon Apr 08 11:04:31 2002] 32105 (wa_config.c:167) Created connection
"mydomain-conn" (Prov: "warp" Param: "localhost:8008")
[Mon Apr 08 11:04:31 2002] 32105 (wa_config.c:126) Created virtual
host "mydomain.com:80"
[Mon Apr 08 11:04:31 2002] 32105 (wa_config.c:100) Created application
"mydomain-context" in path "/context/"
[Mon Apr 08 11:04:31 2002] 32105 (wa_main.c:187) Application
mydomain-context
deployed for http://mydomain.com:80/context/ (Conn: mydomain-conn)
[Mon Apr 08 11:04:31 2002] 32105 (wa_config.c:167) Created connection
"mydomain-conn" (Prov: "warp" Param: "localhost:8008")
Syntax error on line 1363 of /usr/local/apache/conf/httpd.conf:
Duplicate connection name
Can you guys help me here ?
--
Giovanni P. Tirloni
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>