What was it????

----- Original Message ----- 
From: "Mark Page" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 1:24 PM
Subject: Re: [newbie] tomcat5+apache2 virtual hosting


> I've sorted it - thanks anyway :)
> 
> On Thu, 2004-04-22 at 17:59, Mark Page wrote:
> > Hi all,
> > 
> > I'm going nuts trying to do something pretty straight forward, namely
> > getting TOMCAT to serve .jsp files via apache virtual hosts and still
> > keep the default tomcat stuff at port 8080.
> > 
> > I've read every howto I can find and can only get one or the other to
> > work. My confusion seems to revolve around the <context> element in
> > server.xml.
> > 
> > What I want is to be able to do is point at http://localhost:8080 and
> > see the tomcat welcome page. I then want to point to
> > http://test.int/test.jsp and see the .jsp output.
> > 
> > The test.jsp file resides in /var/www/html/beta but I keep getting
> > tomcat 404 error, so I guess it's having problems locating the .jsp and
> > therefore suspect my contexts are incorrect.
> > 
> > I would be grateful is someone could have a look at my server.xml and
> > hhtpd.conf snippets and enlighten me.
> > 
> > Regards.
> > 
> > 
> > 
> > this is how my server.xml is:
> > 
> >       <Host name="localhost" debug="0" appBase="webapps"
> >        unpackWARs="true" autoDeploy="true"
> >        xmlValidation="false" xmlNamespaceAware="false">
> > 
> >        <Logger className="org.apache.catalina.logger.FileLogger"
> >             directory="logs"  prefix="localhost_log." suffix=".txt"
> >             timestamp="true"/>
> > 
> > <Context path="" docBase="ROOT" debug="0"/> <!--welcome page-->
> >       </Host>
> > 
> > <host name="test.int" debug="0" appBase="/var/www/html/beta"
> > unpackWARs="true" autoDeploy="true">
> > 
> > <Context path="" docBase="/var/www/html/beta" debug="9"/> <!-- where
> > test.jsp resides -->
> > 
> > <Logger className="org.apache.catalina.logger.FileLogger"
> >             directory="logs"  prefix="test_int_log." suffix=".txt"
> >             timestamp="true" />
> > </host>
> > 
> > and the relevant bit of httpd.conf:
> > 
> > <VirtualHost *>
> >     ServerName test.int
> >     ServerAdmin [EMAIL PROTECTED]
> >     DocumentRoot /var/www/html/beta
> >        <Location "/*.jsp">
> >         JkUriSet worker ajp13:localhost:8009
> >    </Location>
> > </VirtualHost>
> > 
> > 
> > 
> > I have also tried using the workers2.properties file instead of the
> > JkUriSet by entering
> > 
> > [uri:test.int/*.jsp]
> > worker=ajp13:localhost:8009
> > 
> > but it dosen't seem to make much difference
> > 
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to