On Mon, 8 Apr 2002, Jean-Luc BEAUDET wrote: > "Giovanni P. Tirloni" a �crit : > > > 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]> > > Well, Giovanni > > The code on the screen is not so clear. > > Try First to make simpler like: > > WebAppConnection Conn warp localhost:8008 > > WebAppDeploy MyContext Conn /context/ > > WebAppInfo WebInfo > > And give us the ariund 1363 line...
Using it outside <VirtualHost> works just fine. The connection is created. app loaded, etc. But I really need to add specifically (sp) to that virtual domain and nothing else The 1363 line is "WebAppConnection mydomain-conn warp localhost:8008" inside <VirtualHost> for mydomain.com Before I was declaring the connection "conn" outside <VirtualHost> and trying to use it from inside it with a "WebAppDeploy mydomain-context conn /context" and that would say the connection "conn" was not configured. Then I moved it onto <VirtualHost> and now it says it�s duplicated but I�ve removed that previous "conn" connection so the only WebAppConnection that I�ve is that one inside mydomain�s <VirtualHost>. Even if I had forgotten (sp) the previous connection they shouldn�t conflict, should they? I�ve used different connections names. I don�t understand why it tries to create the connection again after the whole process is finished. -- Giovanni P. Tirloni -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
