Re: basic 2 virtual hosts configuration

2010-06-16 Thread Mark Eggers
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. 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.disc...@gmail.com wrote:

 From: MB digital.disc...@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-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 





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



Re: basic 2 virtual hosts configuration

2010-06-16 Thread Pid
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.disc...@gmail.com wrote:
 
 From: MB digital.disc...@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-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


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




signature.asc
Description: OpenPGP digital signature


Re: basic 2 virtual hosts configuration

2010-06-16 Thread Mark Eggers
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 p...@pidster.com wrote:

 From: Pid p...@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.disc...@gmail.com
 wrote:
  
  From: MB digital.disc...@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-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
  
  
        
  
  
 
 -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
  
 
 
 





-
To unsubscribe, e-mail

Re: basic 2 virtual hosts configuration

2010-06-16 Thread Hassan Schroeder
On Tue, Jun 15, 2010 at 10:21 PM, MB digital.disc...@gmail.com wrote:

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.

 In return for any help I receive, I'll write a guide for mere mortals,

That's what that virtual hosting how-to is *intended* to provide -- what
exactly about it did you find difficult or confusing to follow?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan

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



Re: basic 2 virtual hosts configuration

2010-06-16 Thread MB
Hassan Schroeder said:

That's what that virtual hosting how-to is *intended* to provide 
And? The how-to not very real world for people in my situation and
doesn't contain all the relevant info in one page. That's what I intend
to write when I get my head around it all. Unless I find a link to an
existing article. 

The Wiki link from Mark Eggers was nice and very useful, except I'd like
to see a production server article instead. That and O'reilly's Tomcat,
The definitive guide (of 2008) have gotten me closer to a real
solution. At least my hosts work now.

Now, if I only could make Netbeans 6.8 (PPC OS X 10.5) to run my local
5.5.29 as nice as the built-in 6. It keeps complaining about stuff even
as I have chmod'ed it correctly. 


-- what
exactly about it did you find difficult or confusing to follow?
Too little real world, simple examples are only so good. There seem to
be only one good way to use the fragment Context file, so why waste time
on the others first? They could be listed further down. 
Real world examples for development and production server setting would
be way better.

Unless I find something I will write it later.




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



Re: basic 2 virtual hosts configuration

2010-06-16 Thread Hassan Schroeder
On Wed, Jun 16, 2010 at 11:29 AM, MB digital.disc...@gmail.com wrote:

 And? The how-to not very real world for people in my situation

 Too little real world

You keep saying that, without detail. What is not real world about
the content of the how-to?  It is, after all, intended to be a minimalist
description, and it certainly works if followed.

What additional *specific* real world information would you include?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan

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



Re: basic 2 virtual hosts configuration

2010-06-16 Thread MB
Hassan Schroeder said:

On Wed, Jun 16, 2010 at 11:29 AM, MB digital.disc...@gmail.com wrote:

 And? The how-to not very real world for people in my situation

 Too little real world

You keep saying that, without detail. What is not real world about
the content of the how-to?  It is, after all, intended to be a minimalist
description, and it certainly works if followed.
I'm sorry Hassan, but I don't have time with a meta-debate right now.
That the how-to didn't work out for me is proof enough a more useful one
can be written. Maybe not a perfect one, but a more useful one for
people in my situation.

What additional *specific* real world information would you include?
Eh, stuff that doesn't have to be extracted in order to be useful.
Generalization is useful, but a minimal ampount of specifics are more
useful. I have to get back to you on the specifics. I have work to do
right now.

I'm thankful for the help received so far here, so I'll try and give
back when I have the opportunity. 


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



Re: basic 2 virtual hosts configuration

2010-06-16 Thread Hassan Schroeder
On Wed, Jun 16, 2010 at 12:13 PM, MB digital.disc...@gmail.com wrote:

 I'm sorry Hassan, but I don't have time with a meta-debate right now.

I'm not trying to debate anything, I'm trying to understand what
*exactly* you found lacking so it can be improved.

 That the how-to didn't work out for me is proof enough a more useful one
 can be written. Maybe not a perfect one, but a more useful one for
 people in my situation.

which is different how from that of the target audience?

What additional *specific* real world information would you include?
 Eh, stuff that doesn't have to be extracted in order to be useful.
 Generalization is useful, but a minimal ampount of specifics are more
 useful. I have to get back to you on the specifics.

Lord, I give up.

 I'm thankful for the help received so far here, so I'll try and give
 back when I have the opportunity.

That's how open source works...

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan

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



RE: basic 2 virtual hosts configuration

2010-06-16 Thread Caldarale, Charles R
 From: MB [mailto:digital.disc...@gmail.com]
 Subject: Re: basic 2 virtual hosts configuration
 
 Listener className=org.apache.catalina.startup.TldConfig/
 
  Why have you declared the above?  Where in the doc does it say you
  should do that?

 Actually Tomcat did that.

Tomcat did what?  Inserted a Listener element inside one of your Contexts?  
Please describe precisely how Tomcat did that.

Note that the TldConfig class doesn't implement the necessary interfaces so it 
can never be a valid subject of a Listener element.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



Re: basic 2 virtual hosts configuration

2010-06-15 Thread Hassan Schroeder
On Tue, Jun 15, 2010 at 4:23 PM, MB digital.disc...@gmail.com wrote:

 GUIDES?
 Anyone that can point to a guide that focuses only on the steps
 necessary to configure Tomcat 5.5.x for 2 or more virtual hosts?

In the documentation?

http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan

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



RE: basic 2 virtual hosts configuration

2010-06-15 Thread Caldarale, Charles R
 From: MB [mailto:digital.disc...@gmail.com]
 Subject: basic 2 virtual hosts configuration
 
 to deploy 2 virtual hosts in Tomcat 5.5.29 (no Apache) what more than
 the server.xml file below and a context.xml per each host in Catalina
 do you need to set up?

Nothing, but you must do it correctly.

 Where do I set path, like for /?

You don't set the path attribute - in almost all cases it is illegal (and / 
is never correct, under any circumstances - read the doc).

  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.

 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.

 workDir=work/Catalina/kron/_

Remove the workDir attribute, since you've done nothing but specify the default.

   Listener className=org.apache.catalina.startup.TldConfig/

Why have you declared the above?  Where in the doc does it say you should do 
that?

 GUIDES?

It's all in the docs:
http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

Don't forget to look in the Tomcat logs for deployment problems.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



Re: basic 2 virtual hosts configuration

2010-06-15 Thread MB
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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org