tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Eggers <its_toas...@yahoo.com>
Subject Re: basic 2 virtual hosts configuration
Date Wed, 16 Jun 2010 10:10:00 GMT
You're right of course.

I meant you don't copy over the manager web application separately from the ROOT. It's in
$CATALINA_HOME/server/webapps/manager and the manager.xml file in $CATALINA_HOME/conf/Catalina/<host>
has a docBase attribute.

/mde/

--- On Wed, 6/16/10, Pid <pid@pidster.com> wrote:

> From: Pid <pid@pidster.com>
> Subject: Re: basic 2 virtual hosts configuration
> To: "Tomcat Users List" <users@tomcat.apache.org>
> Date: Wednesday, June 16, 2010, 2:58 AM
> On 16/06/2010 08:12, Mark Eggers
> wrote:
> > MB,
> > 
> > You can follow the instructions given for Tomcat 6 on
> this wiki page:
> > 
> > http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts
> > 
> > The only difference is that the Manager application
> for Tomcat 5.5.29 is contained in the ROOT application. 
> 
> Eh?  I'm not sure you meant what that actually says.
> 
> 
> p
> 
> > This means that you will skip the following step.
> >
> > 3. Copy the manager application from
> $CATALINA_HOME/webapps to each of the 
> >    virtual host webapp directories
> >    1. For virtual host foo, this means
> copying manager to
> >       hosts/foo-host/webapps
> (full path depends on actual location to
> >       match the server.xml
> entry)
> >    2. For virtual host bar, this means
> copying manager to
> >       hosts/bar-host/webapps
> (full path depends on actual location
> >       to match the server.xml
> entry)
> > 
> > I just tested this on my 5.5.29 installation on Fedora
> 13 (Java 6.0.20). Works as advertised.
> > 
> > just my two cents . . . 
> > 
> > /mde/
> > 
> > --- On Tue, 6/15/10, MB <digital.discuss@gmail.com>
> wrote:
> > 
> >> From: MB <digital.discuss@gmail.com>
> >> Subject: Re: basic 2 virtual hosts configuration
> >> To: "Tomcat Users List" <users@tomcat.apache.org>
> >> Date: Tuesday, June 15, 2010, 10:21 PM
> >> Caldarale, Charles R said:
> >>
> >>> Nothing, but you must do it correctly.
> >> Yes, I figured that much. :)
> >>
> >>> You don't set the path attribute - in almost
> all cases
> >> it is illegal
> >>> (and "/" is never correct, under any
> circumstances -
> >> read the doc).
> >> Interesting. Time for a reread.
> >>
> >>>>   <Engine
> name="Catalina"
> >> defaultHost="kron">
> >>>>        <Realm
> >>
> className="org.apache.catalina.realm.UserDatabaseRealm"
> >>>>           
>   
> >> resourceName="UserDatabase" />
> >>>>        <Host
> >> name="medpsy"
> appBase="/home/webbplatser/medpsy.no" />
> >>>>        <Host
> >> name="kron" appBase="/home/webbplatser/kron.no"
> />
> >>>>      </Engine>
> >>>
> >>> The above looks ok.
> >> Thanks
> >>
> >>>> Fragment context settings in
> >> /Catalina/kron/ROOT.xml (similar
> >>>> for the other site:
> >>>>
> >>>>  
> >>   
> docBase="/home/webbplatser/kron.no/ROOT"
> >>>>      path="/"
> >>> Take out the docBase and path attributes;
> they're not
> >> allowed here.  The
> >>> path is derived from the name of the .xml
> file, and the
> >> webapp is
> >>> located in the <Host> appBase, so
> docBase must
> >> not be used.
> >> This seems to be vital info I'll try and
> incorporate. Time
> >> for testing!
> >>
> >>> Why have you declared the above?  Where
> in the doc
> >> does it say you
> >>> should do that?
> >> Actually Tomcat did that.
> >>
> >> Thanks for your response, Charles. Very helpful.
> >>
> >>
> >>
> >> Hassan Schroeder said
> >>
> >>> In the documentation?
> >>>
> >>> http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html
> >>
> >> Thanks for your response, Hassan. Perhaps I should
> have
> >> been more clear
> >> what I had done already.
> >>
> >> I've read that page, took my time, cleaned out my
> old
> >> install,
> >> reinstalled 5.5.28, updated and installed 5.5.29.
> I also
> >> have 3 books
> >> about Tomcat with similar instructions.
> Information about
> >> Tomcat often
> >> seem to me to be incomplete, not entirely relevant
> to what
> >> I want to set
> >> up - multiple hosts, standalone and so on - or is
> often
> >> way too detailed
> >> or just not based around real world examples,
> which makes
> >> it difficult
> >> to extract info.
> >> I have succeeded many times before setting up
> server with
> >> Tomcat 4. In
> >> contrast configuring Apache2 - with vhosts anyway
> - is a
> >> piece of cake
> >> to setup. Not the same cup of tea, but
> nevertheless.
> >>
> >> I really want to understand Tomcat in this regard
> as it's
> >> very
> >> difficult to run a java-based server unless you
> have a
> >> virtual server
> >> and this means -  for me anyway - I have to
> set it up and
> >> administrate
> >> it as there's no budget and no people I know that
> I can ask
> >> as of now.
> >>
> >> In return for any help I receive, I'll write a
> guide for
> >> mere mortals,
> >> put it on the web and make it known here, so no
> pesky
> >> newbies have to
> >> ask about this more than necessarily.
> >>
> >> This setup is so basic it should just work.
> Folding up my
> >> sleeves.....
> >>
> >>
> >>
> >>
> >>
> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >> For additional commands, e-mail: users-help@tomcat.apache.org
> >>
> >>
> > 
> > 
> >       
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> > 
> 
> 
> 


      


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message