RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread J. Norment
webapps/host0/index.html .

On Mon, 16 Dec 2002 18:46:28 -0500, Turner, John wrote:

I'm sorry, what's wrong isn't exactly clear from your post.  What
should
http://host0.com show besides the default welcome page?

John


-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 4:27 PM
To: Tomcat Users List
Subject: Virtual Domains with Tomcat 4.1.12 Standalone

I haven't seen this question answered yet:

I'm trying to set up virtual domains with Tomcat 4.1.12.  ( Not
running
Apache )
I have modified my server.xml file as follows.

webapps/host0 contains a basic index.html .

What might I be doing wrong?
(http://host0.com shows the default index.jsp. )

Is there a way to see the information that Tomcat receives when
http://host0.com is requested?

( thanks )


!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

!-- This part is added: --

Host name=host0.com debug=0 appBase=webapps/host0
unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=host0. suffix=.log
timestamp=true/
Context path= docBase=webapps/host0 debug=0
reloadable=true/
Context path=/test docBase=webapps/host0 debug=0
reloadable=true/
/Host

!-- End, added part. --

!-- Normally, users must authenticate themselves to each web
app
individually.  Uncomment the following entry if you would like

a user to be authenticated the first time they encounter a

resource protected by a security constraint, and then have
that
user identity maintained across *all* web applications
contained
in this virtual host. --


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002


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




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




RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread J. Norment
Hmm.  I think the answer to your question is no -- I am trying to get a very basic 
version of virtual domains working.  I noted in the past that renaming index.jsp to 
index.notjsp and putting an index.html file in the /ROOT directory resulted in tomcat 
loading index.html.

So... I'm trying to load index.html in a directory where no index.jsp exists.  ( 
Should have the same result: [webapps/host0/]index.html should be loaded, assuming 
that Tomcat process the virtual host as I want it to. )

BTW: If I want a .jsp to be loaded instead of an .htm or .html (default behavior?) if 
both exist in the directory, Do I need that step with the web.xml file?



On Tue, 17 Dec 2002 08:28:11 -0500, Turner, John wrote:

You want index.html to show instead of index.jsp?  My tongue-in-cheek
response is rename index.html to index.jsp.  Another response
would be
check the welcome file element in web.xml for your webapp.

John


-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 8:21 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


webapps/host0/index.html .

On Mon, 16 Dec 2002 18:46:28 -0500, Turner, John wrote:

I'm sorry, what's wrong isn't exactly clear from your post.  What
should
http://host0.com show besides the default welcome page?

John


-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 4:27 PM
To: Tomcat Users List
Subject: Virtual Domains with Tomcat 4.1.12 Standalone

I haven't seen this question answered yet:

I'm trying to set up virtual domains with Tomcat 4.1.12.  ( Not
running
Apache )
I have modified my server.xml file as follows.

webapps/host0 contains a basic index.html .

What might I be doing wrong?
(http://host0.com shows the default index.jsp. )

Is there a way to see the information that Tomcat receives when
http://host0.com is requested?

( thanks )


!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

!-- This part is added: --

Host name=host0.com debug=0 appBase=webapps/host0
unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=host0. suffix=.log
timestamp=true/
Context path= docBase=webapps/host0 debug=0
reloadable=true/
Context path=/test docBase=webapps/host0 debug=0
reloadable=true/
/Host

!-- End, added part. --

!-- Normally, users must authenticate themselves to each web
app
individually.  Uncomment the following entry if you would like

a user to be authenticated the first time they encounter a

resource protected by a security constraint, and then have
that
user identity maintained across *all* web applications
contained
in this virtual host. --


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002


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




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

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




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




RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread J. Norment
That sounds almost exactly like what I'm trying to do.  Does your test box setup also 
have Apache installed?  If not, what did you do to get some.server.com showing up?


On Tue, 17 Dec 2002 09:14:08 -0500, Turner, John wrote:

Sorry, maybe someone else can answer your question.  I'm just not
understanding the problem.  I have a RH 7.3 test box setup, with two
virtual
hosts (one is localhost, the other is some.server.com), and the
welcome
files display correctly.  If it isn't working for you, I would
suggest that
the issue is with your virtual hosting configuration, not your
welcome
file/index.html configuration.

John

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 9:03 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


Hmm.  I think the answer to your question is no -- I am
trying to get a very basic version of virtual domains
working.  I noted in the past that renaming index.jsp to
index.notjsp and putting an index.html file in the /ROOT
directory resulted in tomcat loading index.html.

So... I'm trying to load index.html in a directory where no
index.jsp exists.  ( Should have the same result:
[webapps/host0/]index.html should be loaded, assuming that
Tomcat process the virtual host as I want it to. )

BTW: If I want a .jsp to be loaded instead of an .htm or
.html (default behavior?) if both exist in the directory, Do
I need that step with the web.xml file?


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




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




RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread J. Norment
This is the change that I had made to the server.xml file:

!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps unpackWARs=true 
autoDeploy=true

!-- This part is added: --

Host name=host0.com debug=0 appBase=webapps/host0 unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger directory=logs 
prefix=host0. suffix=.log timestamp=true/
Context path= docBase=webapps/host0 debug=0 reloadable=true/
Context path=/test docBase=webapps/host0 debug=0 reloadable=true/
/Host

!-- End, added part. --

Is this is the change that you are referring to in adding the host tag?

If that is not working, how would I track down what is broken?
(ie, are there log files saying exactly what Tomcat is getting from the request?)

As for adding an alias for localhost, wouldn't that mean that only one host was used?
Ultimately, I'd like host0.com and host1.com to be different hosts for Tomcat.

Applying Occam's Razor, I'm pretty sure that something is screwed on my end, but not 
sure how to track it down, at this point...


On Tue, 17 Dec 2002 09:27:14 -0500, Turner, John wrote:

It has Apache installed, but I just verified this behavior using
http://some.server.com:8080 which bypasses Apache.

If you need a virtual host setup in Tomcat, modify server.xml and
add a Host
element with a name parameter set to the FQDN that will be in the
URL.
Alternatively, if you want some.server.com to be treated as
localhost, add
an Alias tag to the localhost Host element in server.xml.

Apache VirtualHost = Tomcat Host (roughly speaking)

Host name=some.server.com

...some stuff here like Contexts, etc

/Host

The server.xml that comes with Tomcat has what you need already in
it.  The
default server.xml file has a single virtual host (localhost) with a
three
Contexts (admin, manager, examples).  Copy what you need from that.
The
Host element for localhost has a lot of stuff in it, probably stuff
you
don't need.  Just delete most of it, and you should be fine.
Alternatively,
find the localhost Host element in server.xml and change the name
parameter
from localhost to your.server.com, restart Tomcat, and test it
out and
see if the behavior is what you want, then just copy that.

John

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 9:20 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


That sounds almost exactly like what I'm trying to do.  Does
your test box setup also have Apache installed?  If not, what
did you do to get some.server.com showing up?


On Tue, 17 Dec 2002 09:14:08 -0500, Turner, John wrote:

Sorry, maybe someone else can answer your question.  I'm just not
understanding the problem.  I have a RH 7.3 test box setup, with
two
virtual
hosts (one is localhost, the other is some.server.com), and the
welcome
files display correctly.  If it isn't working for you, I would
suggest that
the issue is with your virtual hosting configuration, not your
welcome
file/index.html configuration.

John


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




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




RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread J. Norment
I *don't* want to change that order.

On Tue, 17 Dec 2002 09:55:06 -0500, Cox, Charlie wrote:
check out conf/web.xml and its welcome-file-list. there you can
set the
order of welcome pages to load.(index,jsp first, then index.html,
etc)

Charlie

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 9:03 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


Hmm.  I think the answer to your question is no -- I am
trying to get a very basic version of virtual domains
working.  I noted in the past that renaming index.jsp to
index.notjsp and putting an index.html file in the /ROOT
directory resulted in tomcat loading index.html.

So... I'm trying to load index.html in a directory where no
index.jsp exists.  ( Should have the same result:
[webapps/host0/]index.html should be loaded, assuming that
Tomcat process the virtual host as I want it to. )

BTW: If I want a .jsp to be loaded instead of an .htm or
.html (default behavior?) if both exist in the directory, Do
I need that step with the web.xml file?



On Tue, 17 Dec 2002 08:28:11 -0500, Turner, John wrote:

You want index.html to show instead of index.jsp?  My tongue-in-
cheek
response is rename index.html to index.jsp.  Another response
would be
check the welcome file element in web.xml for your webapp.

John


-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 8:21 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


webapps/host0/index.html .

On Mon, 16 Dec 2002 18:46:28 -0500, Turner, John wrote:

I'm sorry, what's wrong isn't exactly clear from your post.  
What
should
http://host0.com show besides the default welcome page?

John


-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 4:27 PM
To: Tomcat Users List
Subject: Virtual Domains with Tomcat 4.1.12 Standalone

I haven't seen this question answered yet:

I'm trying to set up virtual domains with Tomcat 4.1.12.  ( Not
running
Apache )
I have modified my server.xml file as follows.

webapps/host0 contains a basic index.html .

What might I be doing wrong?
(http://host0.com shows the default index.jsp. )

Is there a way to see the information that Tomcat receives when
http://host0.com is requested?

( thanks )


!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

!-- This part is added: --

Host name=host0.com debug=0 appBase=webapps/host0
unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=host0. suffix=.log
timestamp=true/
Context path= docBase=webapps/host0 debug=0
reloadable=true/
Context path=/test docBase=webapps/host0 debug=0
reloadable=true/
/Host

!-- End, added part. --

!-- Normally, users must authenticate themselves to each web
app
individually.  Uncomment the following entry if you would like

a user to be authenticated the first time they encounter a

resource protected by a security constraint, and then have
that
user identity maintained across *all* web applications
contained
in this virtual host. --


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date:
11/13/2002


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date:
11/13/2002


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




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

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




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

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




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




RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread J. Norment
Hari:

Thanks for the response.
( For that matter, thanks for everyone's response so far... )

I want the behavior to be:

http://localhost - loads up the default welcome page, root/index.jsp
http://host0.com - loads up host0's index page
http://host1.com - loads up host1's index page

Is changing the default host part of the solution?



On Tue, 17 Dec 2002 10:22:20 -0500, Hari Venkatesan wrote:
You have two Host name defined and only one closing tag for the
host. Did you change Engine name=Standalone
defaultHost=localhost debug=99 to reflect host0.com in the
defaultHost

Hari

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:15 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone

This is the change that I had made to the server.xml file:

!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

!-- This part is added: --

Host name=host0.com debug=0 appBase=webapps/host0
unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=host0. suffix=.log timestamp=true/
Context path= docBase=webapps/host0 debug=0
reloadable=true/
Context path=/test docBase=webapps/host0 debug=0
reloadable=true/
/Host

!-- End, added part. --

Is this is the change that you are referring to in adding the host
tag?

If that is not working, how would I track down what is broken?
(ie, are there log files saying exactly what Tomcat is getting from
the request?)

As for adding an alias for localhost, wouldn't that mean that only
one host was used?
Ultimately, I'd like host0.com and host1.com to be different hosts
for Tomcat.

Applying Occam's Razor, I'm pretty sure that something is screwed on
my end, but not sure how to track it down, at this point...


On Tue, 17 Dec 2002 09:27:14 -0500, Turner, John wrote:

It has Apache installed, but I just verified this behavior using
http://some.server.com:8080 which bypasses Apache.

If you need a virtual host setup in Tomcat, modify server.xml and
add a Host
element with a name parameter set to the FQDN that will be in the
URL.
Alternatively, if you want some.server.com to be treated as
localhost, add
an Alias tag to the localhost Host element in server.xml.

Apache VirtualHost = Tomcat Host (roughly speaking)

Host name=some.server.com

...some stuff here like Contexts, etc

/Host

The server.xml that comes with Tomcat has what you need already in
it.  The
default server.xml file has a single virtual host (localhost) with a
three
Contexts (admin, manager, examples).  Copy what you need from that.
The
Host element for localhost has a lot of stuff in it, probably stuff
you
don't need.  Just delete most of it, and you should be fine.
Alternatively,
find the localhost Host element in server.xml and change the name
parameter
from localhost to your.server.com, restart Tomcat, and test it
out and
see if the behavior is what you want, then just copy that.

John

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 9:20 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


That sounds almost exactly like what I'm trying to do.  Does
your test box setup also have Apache installed?  If not, what
did you do to get some.server.com showing up?


On Tue, 17 Dec 2002 09:14:08 -0500, Turner, John wrote:

Sorry, maybe someone else can answer your question.  I'm just not
understanding the problem.  I have a RH 7.3 test box setup, with
two
virtual
hosts (one is localhost, the other is some.server.com), and the
welcome
files display correctly.  If it isn't working for you, I would
suggest that
the issue is with your virtual hosting configuration, not your
welcome
file/index.html configuration.

John


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




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


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




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




RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread J. Norment
Got it, John.  Thanks for your time. ( not being sarcastic... forgot to thank you 
earlier. )
( For the record, I only posted the small snippet because that was all that I changed 
from out of the box )

I'll try to verify the XML tags now.
( I've thought about this before, but I'll look at it again. )

I thought that maybe I had something screwy going on with part of the request being 
blocked, but I honestly don't know that part intimately enough to look at it and 
verify that everything is coming through ok.


On Tue, 17 Dec 2002 11:03:06 -0500, Turner, John wrote:

No, it is not.  Leave defaultHost alone.

Setup a Host element for host0.com and host1.com.

If this is not working, either post your entire server.xml or post
log file
snippets with error messages.  XML files are sensitive to properly
closed
tags and elements...including just a small snippet of your
server.xml file
doesn't let anyone verify that you've positioned and closed the new
tags
correctly because we can't see any of the other tags.

My apologies, but this is starting to get fairly tedious.  Adding a
new Host
element is a trivial exercise, all you have to do is make sure you
position
it correctly and close it correctly.  There's really nothing else to
do.  If
you have to, copy server.xml to server-work.xml, delete all of the
comments
and other extra information, and work with the resulting smaller
file until
you get the new elements closed and positioned correctly.
Server.xml is no
different than and HTML file...position and close everything
properly, and
it works.

John

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:36 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


Hari:

Thanks for the response.
( For that matter, thanks for everyone's response so far... )

I want the behavior to be:

http://localhost - loads up the default welcome page,
root/index.jsp
http://host0.com - loads up host0's index page
http://host1.com - loads up host1's index page

Is changing the default host part of the solution?



On Tue, 17 Dec 2002 10:22:20 -0500, Hari Venkatesan wrote:
You have two Host name defined and only one closing tag for the
host. Did you change Engine name=Standalone
defaultHost=localhost debug=99 to reflect host0.com in the
defaultHost

Hari

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:15 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone

This is the change that I had made to the server.xml file:

!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

!-- This part is added: --

Host name=host0.com debug=0 appBase=webapps/host0
unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=host0. suffix=.log timestamp=true/
Context path= docBase=webapps/host0 debug=0
reloadable=true/
Context path=/test docBase=webapps/host0 debug=0
reloadable=true/
/Host

!-- End, added part. --

Is this is the change that you are referring to in adding the host
tag?

If that is not working, how would I track down what is broken?
(ie, are there log files saying exactly what Tomcat is getting
from
the request?)

As for adding an alias for localhost, wouldn't that mean that only
one host was used?
Ultimately, I'd like host0.com and host1.com to be different
hosts
for Tomcat.

Applying Occam's Razor, I'm pretty sure that something is screwed
on
my end, but not sure how to track it down, at this point...


On Tue, 17 Dec 2002 09:27:14 -0500, Turner, John wrote:

It has Apache installed, but I just verified this behavior using
http://some.server.com:8080 which bypasses Apache.

If you need a virtual host setup in Tomcat, modify server.xml and
add a Host
element with a name parameter set to the FQDN that will be in the
URL.
Alternatively, if you want some.server.com to be treated as
localhost, add
an Alias tag to the localhost Host element in server.xml.

Apache VirtualHost = Tomcat Host (roughly speaking)

Host name=some.server.com

...some stuff here like Contexts, etc

/Host

The server.xml that comes with Tomcat has what you need already
in
it.  The
default server.xml file has a single virtual host (localhost)
with a
three
Contexts (admin, manager, examples).  Copy what you need from
that.
The
Host element for localhost has a lot of stuff in it, probably
stuff
you
don't need.  Just delete most of it, and you should be fine.
Alternatively,
find the localhost Host element in server.xml and change the name
parameter
from localhost to your.server.com, restart Tomcat, and test
it
out and
see if the behavior is what you want, then just copy that.

John

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 9:20 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


That sounds almost exactly

RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread J. Norment
Hari:

My guess is that something.com would need to have a DNS record in a nameserver  ( 
that resolves to the box that you have Tomcat on. )


On Tue, 17 Dec 2002 11:09:30 -0500, Hari Venkatesan wrote:
If I leave the defaultHost to localhost and have a host
name=something.com, when I type in the url
http://something.com/{webapp}/index.jsp, I get a server not found or
DNS error. Do I need to define something.com anywhere else in win2000

Hari


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 11:04 AM
To: 'Tomcat Users List'
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


Changing defaultHost is not the solution.

John


-Original Message-
From: Hari Venkatesan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:51 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


I really don't know if changing the defaulthost name is the
solution. R u able to serve the pages with the configuration
you have now without changing the defaulthost name or are you
getting a DNS error.

IF you want to serve pages the way you want it, then each of
the host entries you have in server.xml should have
context defined with its own Web.xml file.

Hari

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:36 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone

Hari:

Thanks for the response.
( For that matter, thanks for everyone's response so far... )

I want the behavior to be:

http://localhost - loads up the default welcome page,
root/index.jsp
http://host0.com - loads up host0's index page
http://host1.com - loads up host1's index page

Is changing the default host part of the solution?



On Tue, 17 Dec 2002 10:22:20 -0500, Hari Venkatesan wrote:
You have two Host name defined and only one closing tag for the
host. Did you change Engine name=Standalone
defaultHost=localhost debug=99 to reflect host0.com in the
defaultHost

Hari

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:15 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone

This is the change that I had made to the server.xml file:

!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

!-- This part is added: --

Host name=host0.com debug=0 appBase=webapps/host0
unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=host0. suffix=.log timestamp=true/
Context path= docBase=webapps/host0 debug=0
reloadable=true/
Context path=/test docBase=webapps/host0 debug=0
reloadable=true/
/Host

!-- End, added part. --

Is this is the change that you are referring to in adding the host
tag?

If that is not working, how would I track down what is broken?
(ie, are there log files saying exactly what Tomcat is getting
from
the request?)

As for adding an alias for localhost, wouldn't that mean that only
one host was used?
Ultimately, I'd like host0.com and host1.com to be different
hosts
for Tomcat.

Applying Occam's Razor, I'm pretty sure that something is screwed
on
my end, but not sure how to track it down, at this point...


On Tue, 17 Dec 2002 09:27:14 -0500, Turner, John wrote:

It has Apache installed, but I just verified this behavior using
http://some.server.com:8080 which bypasses Apache.

If you need a virtual host setup in Tomcat, modify server.xml and
add a Host
element with a name parameter set to the FQDN that will be in the
URL.
Alternatively, if you want some.server.com to be treated as
localhost, add
an Alias tag to the localhost Host element in server.xml.

Apache VirtualHost = Tomcat Host (roughly speaking)

Host name=some.server.com

...some stuff here like Contexts, etc

/Host

The server.xml that comes with Tomcat has what you need already
in
it.  The
default server.xml file has a single virtual host (localhost)
with a
three
Contexts (admin, manager, examples).  Copy what you need from
that.
The
Host element for localhost has a lot of stuff in it, probably
stuff
you
don't need.  Just delete most of it, and you should be fine.
Alternatively,
find the localhost Host element in server.xml and change the name
parameter
from localhost to your.server.com, restart Tomcat, and test
it
out and
see if the behavior is what you want, then just copy that.

John

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 9:20 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


That sounds almost exactly like what I'm trying to do.  Does
your test box setup also have Apache installed?  If not, what
did you do to get some.server.com showing up?


On Tue, 17 Dec 2002 09:14:08 -0500, Turner, John wrote:

Sorry, maybe someone else can answer your question.  I'm just
not
understanding the problem.  I have

RE: Virtual Domains with Tomcat 4.1.12 Standalone

2002-12-17 Thread J. Norment
Just wanted to let you know: I got it working.  I ended up uninstalling Tomcat 4.1.12 
and installing Tomcat 4.1.17, and it worked almost from the start.  (I'm guessing that 
I somehow corrupted my server.xml file.)  Thanks for all your help!


On Tue, 17 Dec 2002 11:19:56 -0500, Turner, John wrote:

If you post your server.xml, someone will look at it.  I can't
promise I
will, as time is everything, but someone will.  If you could remove
the
comments from it and post an uncommented version, that would make it
smaller
and easier to scan.

John


-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 11:12 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


Got it, John.  Thanks for your time. ( not being sarcastic...
forgot to thank you earlier. )
( For the record, I only posted the small snippet because
that was all that I changed from out of the box )

I'll try to verify the XML tags now.
( I've thought about this before, but I'll look at it again. )

I thought that maybe I had something screwy going on with
part of the request being blocked, but I honestly don't know
that part intimately enough to look at it and verify that
everything is coming through ok.


On Tue, 17 Dec 2002 11:03:06 -0500, Turner, John wrote:

No, it is not.  Leave defaultHost alone.

Setup a Host element for host0.com and host1.com.

If this is not working, either post your entire server.xml or post
log file
snippets with error messages.  XML files are sensitive to properly
closed
tags and elements...including just a small snippet of your
server.xml file
doesn't let anyone verify that you've positioned and closed the
new
tags
correctly because we can't see any of the other tags.

My apologies, but this is starting to get fairly tedious.  Adding
a
new Host
element is a trivial exercise, all you have to do is make sure you
position
it correctly and close it correctly.  There's really nothing else
to
do.  If
you have to, copy server.xml to server-work.xml, delete all of the
comments
and other extra information, and work with the resulting smaller
file until
you get the new elements closed and positioned correctly.
Server.xml is no
different than and HTML file...position and close everything
properly, and
it works.

John

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:36 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone


Hari:

Thanks for the response.
( For that matter, thanks for everyone's response so far... )

I want the behavior to be:

http://localhost - loads up the default welcome page,
root/index.jsp
http://host0.com - loads up host0's index page
http://host1.com - loads up host1's index page

Is changing the default host part of the solution?



On Tue, 17 Dec 2002 10:22:20 -0500, Hari Venkatesan wrote:
You have two Host name defined and only one closing tag for the
host. Did you change Engine name=Standalone
defaultHost=localhost debug=99 to reflect host0.com in
the
defaultHost

Hari

-Original Message-
From: J. Norment [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:15 AM
To: Tomcat Users List
Subject: RE: Virtual Domains with Tomcat 4.1.12 Standalone

This is the change that I had made to the server.xml file:

!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

!-- This part is added: --

Host name=host0.com debug=0 appBase=webapps/host0
unpackWARs=true
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=host0. suffix=.log
timestamp=true/
Context path= docBase=webapps/host0 debug=0
reloadable=true/
Context path=/test docBase=webapps/host0 debug=0
reloadable=true/
/Host

!-- End, added part. --

Is this is the change that you are referring to in adding the
host
tag?

If that is not working, how would I track down what is broken?
(ie, are there log files saying exactly what Tomcat is getting
from
the request?)

As for adding an alias for localhost, wouldn't that mean that
only
one host was used?
Ultimately, I'd like host0.com and host1.com to be different
hosts
for Tomcat.

Applying Occam's Razor, I'm pretty sure that something is
screwed
on
my end, but not sure how to track it down, at this point...


On Tue, 17 Dec 2002 09:27:14 -0500, Turner, John wrote:

It has Apache installed, but I just verified this behavior
using
http://some.server.com:8080 which bypasses Apache.

If you need a virtual host setup in Tomcat, modify server.xml
and
add a Host
element with a name parameter set to the FQDN that will be in
the
URL.
Alternatively, if you want some.server.com to be treated as
localhost, add
an Alias tag to the localhost Host element in server.xml.

Apache VirtualHost = Tomcat Host (roughly speaking)

Host name=some.server.com

...some stuff here like Contexts, etc

/Host

The server.xml that comes with Tomcat has what you need already

Re: app roll out.

2002-12-16 Thread J. Norment
name the starting page of your app index.jsp ?

On Mon, 16 Dec 2002 15:28:39 -0600, Alexander Wallace wrote:
Hi there. Almost ready to deploy my app to test in real world.  I'm
using
apache + tomcat (using mod_jk).  My app name is wxyz, and I have
purchased
the domain name i want it to be under. I want to call
www.mydomain.com and
get my app's index. instead of typing the www.mydomain.com/wxyz.

How can i do that? Can someone, if not tell me how, tell me where to
read to
learn how to do it?

Sorry about the newbienezz of the email. I know nothing about this
things.

Thanks!


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




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




Tomcat 4.1? Apache? Cocoon?

2002-12-15 Thread J. Norment
At the risk of this being off-topic, I'll keep this short:
I've seen articles mentioning Tomcat running with Apache (and the occasional mention 
of cocoon)..
What would be the purpose of running Tomcat with Apache (and cocoon)?
(I'm looking for a real high-level kind of answer)
If this is off-topic, please direct me to the appropriate group to ask these general 
kinds of questions.

Thanks.


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




Tomcat 4.1 and Virtual Domains

2002-12-15 Thread J. Norment
I have looked high and low to try to avoid posting yet *another* question on how to 
set up Tomcat with virtual domains, however, I have not been able to find what I've 
been looking for.  I have Tomcat 4.1 set up and have followed the FAQ at 
http://www.galatea.com/flashguides/virtual-hosting-tomcat.xml , but can only get the 
default index.jsp to display with www.domain0.com and www.domain1.com ... what might I 
be doing wrong?

Thanks.


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