tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Turner, John" <JTur...@AAS.com>
Subject RE: Virtual Hosts
Date Fri, 25 Oct 2002 15:16:12 GMT

Nope, just setting up server.xml should be enough.  You will need to restart
Tomcat to regen a new mod_jk.conf, then either restart apache or do
`APACHE_HOME/bin/apachectl graceful`.

John

> -----Original Message-----
> From: Curt LeCaptain [mailto:lecaptainc@itol.com]
> Sent: Friday, October 25, 2002 11:14 AM
> To: Tomcat Users List
> Subject: Re: Virtual Hosts
> 
> 
> Now, what I'm wondering, is since (according to your HOWTO) 
> Tomcat is setup
> to create the <Virtualhost> directive for Apache, will 
> setting up just my
> server.xml do it for me, or will I need to setup Apache also?
> 
> Curt
> 
> 
> 
> ----- Original Message -----
> From: "Turner, John" <JTurner@AAS.com>
> To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
> Sent: Friday, October 25, 2002 10:03 AM
> Subject: RE: Virtual Hosts
> 
> 
> >
> > Glad I could help.
> >
> > Check the documentation for the Host container:
> >
> > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html
> >
> > ...and the documentation for the Context container:
> >
> > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html
> >
> > Basically, a default Tomcat install has a single Virtual 
> Host (localhost)
> > with a single webapp (/examples).  So setup a new Host 
> container that
> mimics
> > the one for localhost, and setup a ROOT Context container 
> for your webapp
> > within the new Host container.
> >
> > On the Apache side, setup a normal Apache VirtualHost, and in that
> > VirtualHost container, put two JkMount statements to map *.jsp and
> /servlet
> > to ajp13.  In workers.properties, duplicate the setup you have for
> > localhost, and change .host to the same name as the virtual 
> host in Apache
> > and the new Host container in server.xml.
> >
> > That should get you started.
> >
> > John
> >
> >
> > > -----Original Message-----
> > > From: Curt LeCaptain [mailto:lecaptainc@itol.com]
> > > Sent: Friday, October 25, 2002 10:50 AM
> > > To: Tomcat Users List
> > > Subject: Virtual Hosts
> > >
> > >
> > > Okay... so, I've redone my complete Tomcat/Apache setup 
> according to
> > > instructions on John Turner's website:
> > >
> > > http://www.johnturner.com/howto/apache1-tomcat404-howto.html
> > >
> > > Everything works as it should! :)
> > >
> > > Now... I'm completely baffled as to how to set up a 
> virtual host in
> > > server.xml, I'm not exactly sure how to setup the elements
> > > and such to get
> > > directories to work.
> > >
> > > IE, I want a virtual host called "dev.infinity-tech.com"
> > > within there, where
> > > JSP's can be launched from the document root of that site
> > > (/www/docs/dev.infinity-tech.com) and servlets can be
> > > launched from a folder
> > > within that directory.  If someone could help me out, or 
> point me in a
> > > direction to figure this out, please, let me know! :)
> > >
> > > Curt LeCaptain
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > > For additional commands, e-mail:
> > > <mailto:tomcat-user-help@jakarta.apache.org>
> > >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
> >
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message