tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Giovanni P. Tirloni" <tirl...@bs2.com.br>
Subject Re: Tomcat4 and Virtual Hosts
Date Mon, 08 Apr 2002 14:44:27 GMT
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:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
> 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:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message