You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gustavo Lima <li...@opengate.com.br> on 2001/10/19 18:30:49 UTC
Setting an APACHE VHOST to work with TOMCAT
Hi All,
I have an APACHE 1.3.14 with lots of vitual hosts using name virtual host
anda the same IP.
I have TOMCAT 3.2.3 with java 1.3 working fine in standalone mode and APACHE
working with mod_jk.
My problem is when I try to use APACHE to call jsp.
I have an archive named xyzw.war that creates the dir xyzw in the vhost like
(http://www.xyzw.com/xyzw) it calls the index of that site as I had typed
just www.xyzw.com
When I call it via 8080 port everything goes ok.
In my Apache I made some changes following TOMCAT manuals like:
<VirtualHost 200.xxx.xxx.xxx>
ServerAdmin webmaster@xyzwe.com
ServerName www.xyzw.com
DocumentRoot /home/xyzw
CustomLog logs/xyzw-access.log common
ScriptAlias /cgi-bin /home/xyzw/cgi-bin
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
</VirtualHost>
and in my server.xml I added as follows:
<Host name="www.xyzw.com">
<Context path=""
docBase="/home/xyzw"/>
<Context path="/xyzw"
docBase="webapps/ROOT" />
</Host>
Am I doing something wrong or not doing something?
Thank“s for any help.
Gustavo
OPENGATE Gustavo P. M. Lima Supervisor de Sistemas http://www.opendf.com.br
gustavop@opendf.com.br
----- Original Message -----
From: "Roy K. Mayr R." <sy...@uapar.edu>
To: <to...@jakarta.apache.org>
Sent: Friday, October 19, 2001 11:13 AM
Subject: Re: Log Visitor's IP address?
> I Craig...
>
> In "localhost_access_log.YYYY-MM-DD.txt" I can find IP address of proxy
> (many times....). How I can get real IP address ??
>
> Roy
>
> ----- Original Message -----
> From: "Craig R. McClanahan" <cr...@apache.org>
> To: <to...@jakarta.apache.org>
> Sent: Wednesday, October 17, 2001 4:19 PM
> Subject: Re: Log Visitor's IP address?
>
>
> > On Wed, 17 Oct 2001, Miao, Franco CAWS:EX wrote:
> >
> > > Date: Wed, 17 Oct 2001 11:19:10 -0700
> > > From: "Miao, Franco CAWS:EX" <Fr...@gems7.gov.bc.ca>
> > > Reply-To: tomcat-user@jakarta.apache.org
> > > To: "'tomcat-user@jakarta.apache.org'"
<to...@jakarta.apache.org>
> > > Subject: Log Visitor's IP address?
> > >
> > > How to config Tomcat to log visitor's IP address?
> > >
> > > Thanks,
> >
> > It already does. Checkout the "localhost_access_log.YYYY-MM-DD.txt"
file
> > in the "logs" directory.
> >
> > >
> > > Franco
> > >
> >
> > Craig
> >
> >
>
>