You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Paul Phillips <pa...@partitura.com> on 2002/03/13 00:37:15 UTC

apache tomcat integration syntax error in httpd.conf

Hello -

I am trying to integrate Apache and Tomcat with the warp connector.

I am following the instructions at:
http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml
which are dated March 6, 2002, so they aren't too old!

I have followed the instructions exactly as stated on my RedHat Linux 7.2 
platform.  I am not using the RedHat Apache, but rather I built it from 
scratch.

Per the instructions, I added these lines to the very end of httpd.conf

<IfModule mod_webapp.c>
 WebAppConnection conn      warp  localhost:8008
 WebAppDeploy     examples    conn  /examples
 WebAppInfo /webapp-info
</IfModule>

When I run apachectl configtest, I get this error message:
Syntax error line xxx
Invalid virtual host name

The line number is the line that is:
 WebAppDeploy     examples    conn  /examples

I cannot figure out why it thinks this is a virtual host name, or what I 
have wrong that is producing the syntax error.

Can anyone help?

Thanks
Paul Phillips

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: apache tomcat integration syntax error in httpd.conf

Posted by August Detlefsen <au...@yahoo.com>.
For virtual hosts, you have to create the webapp connection AFTER you
specify the NameVirtualHost, like this: 

NameVirtualHost 12.34.56.78

# create the webapp connection
WebAppConnection conn      warp  localhost:8008
WebAppInfo /webapp-info


Then actually deploy the webapps within your virtual host blocks: 

<VirtualHost 12.34.56.78>
    ServerName www.mycompany.com
    DocumentRoot "/path/to/mycompany.com"
    WebAppDeploy     ROOT      conn  /
    WebAppDeploy     manager   conn  /manager
</VirtualHost>


--- Paul Phillips <pa...@partitura.com> wrote:
> Here's what else I found since first writing the email quoted below.
> 
> FYI - Tomcat 4.0.3
> mod_webapp binary for linux i386 (I did not compile it)
> 
> If I comment out the WebAppDeploy line, then apachectl configtest
> (and 
> "start") report the same error of invalid virtual host name for the 
> following WebAppInfo line.
> 
> If I comment out both the WebAppDeploy line and the WebAppInfo line, 
> apachectl configtest reports "syntax OK".  However, that is useless, 
> because I haven't associated any tomcat webapps to an apache URL.
> 
> I tried adding a trailing slash to /examples, but that didn't change 
> anything.
> 
> If anybody has any ideas, I would be most grateful.
> 
> Regards,
> Paul Phillips
> 
> 
> 
> --On Tuesday, March 12, 2002 5:37 PM -0600 Paul Phillips 
> <pa...@partitura.com> wrote:
> 
> > Hello -
> >
> > I am trying to integrate Apache and Tomcat with the warp connector.
> >
> > I am following the instructions at:
> > http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml
> > which are dated March 6, 2002, so they aren't too old!
> >
> > I have followed the instructions exactly as stated on my RedHat
> Linux 7.2
> > platform.  I am not using the RedHat Apache, but rather I built it
> from
> > scratch.
> >
> > Per the instructions, I added these lines to the very end of
> httpd.conf
> >
> > <IfModule mod_webapp.c>
> >  WebAppConnection conn      warp  localhost:8008
> >  WebAppDeploy     examples    conn  /examples
> >  WebAppInfo /webapp-info
> > </IfModule>
> >
> > When I run apachectl configtest, I get this error message:
> > Syntax error line xxx
> > Invalid virtual host name
> >
> > The line number is the line that is:
> >  WebAppDeploy     examples    conn  /examples
> >
> > I cannot figure out why it thinks this is a virtual host name, or
> what I
> > have wrong that is producing the syntax error.
> >
> > Can anyone help?
> >
> > Thanks
> > Paul Phillips
> >
> > --
> > To unsubscribe:  
> <ma...@jakarta.apache.org>
> > For additional commands:
> <ma...@jakarta.apache.org>
> > Troubles with the list:
> <ma...@jakarta.apache.org>
> 
> 
> 
> ___________________________________________________
> Paul Phillips
> Director of Orchestral Activities, Meadows School of the Arts
> Southern Methodist University
> 
> "You must sing every note you play, sing even through the rests!"
> Arturo Toscanini
> 
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: apache tomcat integration syntax error in httpd.conf

Posted by Paul Phillips <pa...@partitura.com>.
Here's what else I found since first writing the email quoted below.

FYI - Tomcat 4.0.3
mod_webapp binary for linux i386 (I did not compile it)

If I comment out the WebAppDeploy line, then apachectl configtest (and 
"start") report the same error of invalid virtual host name for the 
following WebAppInfo line.

If I comment out both the WebAppDeploy line and the WebAppInfo line, 
apachectl configtest reports "syntax OK".  However, that is useless, 
because I haven't associated any tomcat webapps to an apache URL.

I tried adding a trailing slash to /examples, but that didn't change 
anything.

If anybody has any ideas, I would be most grateful.

Regards,
Paul Phillips



--On Tuesday, March 12, 2002 5:37 PM -0600 Paul Phillips 
<pa...@partitura.com> wrote:

> Hello -
>
> I am trying to integrate Apache and Tomcat with the warp connector.
>
> I am following the instructions at:
> http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml
> which are dated March 6, 2002, so they aren't too old!
>
> I have followed the instructions exactly as stated on my RedHat Linux 7.2
> platform.  I am not using the RedHat Apache, but rather I built it from
> scratch.
>
> Per the instructions, I added these lines to the very end of httpd.conf
>
> <IfModule mod_webapp.c>
>  WebAppConnection conn      warp  localhost:8008
>  WebAppDeploy     examples    conn  /examples
>  WebAppInfo /webapp-info
> </IfModule>
>
> When I run apachectl configtest, I get this error message:
> Syntax error line xxx
> Invalid virtual host name
>
> The line number is the line that is:
>  WebAppDeploy     examples    conn  /examples
>
> I cannot figure out why it thinks this is a virtual host name, or what I
> have wrong that is producing the syntax error.
>
> Can anyone help?
>
> Thanks
> Paul Phillips
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>



___________________________________________________
Paul Phillips
Director of Orchestral Activities, Meadows School of the Arts
Southern Methodist University

"You must sing every note you play, sing even through the rests!"
Arturo Toscanini

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>