RE: Virtual Hosts

2002-10-25 Thread Turner, John

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:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Virtual Hosts

2002-10-25 Thread Curt LeCaptain
Now, what I'm wondering, is since (according to your HOWTO) Tomcat is setup
to create the  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" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
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>




RE: Virtual Hosts

2002-10-25 Thread Turner, John

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  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" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> 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>




Re: Virtual Hosts

2002-10-25 Thread Curt LeCaptain
Question about appBase...


What exactly would I set that to?

I've got dev.infinity-tech.com as what I want for my website... I want
everything served out of /www/docs/dev.infinity-tech.com/

Is that what I would set as my appBase?

Also, I'm a bit shaky on what the ROOT context is.

Curt L


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Virtual Hosts

2002-10-25 Thread Shapira, Yoav
Hi,

>What exactly would I set that to?

Depends on what you want to accomplish.  We typically leave it as
"webapps" and specify different (absolute) docBases for individual
webapps as necessary.

If you have several webapps under the same location, you can change just
the appBase to point to that location instead of changing each webapp's
docBase attribute.

>I've got dev.infinity-tech.com as what I want for my website... I want
>everything served out of /www/docs/dev.infinity-tech.com/

Do you have just one webapp or many?  

>Is that what I would set as my appBase?

If you have many webapps, all under /www/docs/dev.infinity-tech.com, and
you don't want to set the docBase for each webapp to that location, then
yes, you would set the above as your appBase.

>Also, I'm a bit shaky on what the ROOT context is.

It's simply the webapp with no context name.  The one that's accessed
when the user points his/her browser to your appBase (in the default
configuration).  If you start changing the appBase and docBases, you can
use the ROOT context for other things.

Tomcat gives you many ways to specify where the documents for your
webapps are located.

I assume you've already read the relevant tomcat docs.  If not, look at
the host reference at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html
and the context reference at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html

Yoav Shapira
Millennium ChemInformatics

This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: Virtual Hosts

2002-10-25 Thread Curt LeCaptain
Okay... new interesting question.

Since Mod_JK makes it's own .conf file... it does it just via the
VirtualHost directive.

Is there a way to force it into using a "NameVirtualHost" directive?

Curt


- Original Message -
From: "Curt LeCaptain" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, October 25, 2002 1:20 PM
Subject: Re: Virtual Hosts


> Question about appBase...
>
>
> What exactly would I set that to?
>
> I've got dev.infinity-tech.com as what I want for my website... I want
> everything served out of /www/docs/dev.infinity-tech.com/
>
> Is that what I would set as my appBase?
>
> Also, I'm a bit shaky on what the ROOT context is.
>
> Curt L
>
>
> --
> 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>




Re: Virtual Hosts

2002-10-25 Thread Craig R. McClanahan


On Fri, 25 Oct 2002, Curt LeCaptain wrote:

> Date: Fri, 25 Oct 2002 13:20:45 -0500
> From: Curt LeCaptain <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: Virtual Hosts
>
> Question about appBase...
>
>
> What exactly would I set that to?
>
> I've got dev.infinity-tech.com as what I want for my website... I want
> everything served out of /www/docs/dev.infinity-tech.com/
>
> Is that what I would set as my appBase?

Yes.  The appBase value can be either an absolute path or a relative path
-- if it's relative, it's resolved against $CATALINA_HOME.

>
> Also, I'm a bit shaky on what the ROOT context is.
>

It's the context that is used if the URL doesn't have a prefix that
matches the context path for any other web application.  Essentially, it's
a webapp with a context path of "" (zero length string) -- but that's not
a legal directory name on most operating systems, so there is explicit
code in Tomcat to use ROOT instead.

> Curt L
>

Craig


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




Re: Virtual Hosts

2002-10-25 Thread Robert L Sowders
Perhaps you can gain some insight into this from the attached file.

rls





"Curt LeCaptain" <[EMAIL PROTECTED]>
10/25/2002 07:49 AM
Please respond to "Tomcat Users List"

 
To: "Tomcat Users List" <[EMAIL PROTECTED]>
cc: 
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:   
For additional commands, e-mail: 




Web Hosting with Tomcat 4 and Apache

Overview


There are a number of configuration issues and security concerns
which must be addressed when setting up Apache and Tomcat 4 for
virtual hosting of customer sites in a web hosting environment.

The major conerns are:

1.  Delegating to untrusted customers maintenance of their applications
without compromising server security.

2.  Configuring Apache and Tomcat for virtual hosting.

3.  Surviving poorly written web applications installed by
customers.  This includes fault tolerance and identifying
which customer's web application is causing problems.

4.  Mimimize the amount of hand holding or config changes the
apache and tomcat system administrators have to make.

This is written based on my experiences setting up this type
of hosting environment on Sun Solaris hardware.  Some of this
will be specific to Solaris, but in general should work for
almost any flavor of Unix.

Unix accounts and groups


The user "tomcat" was created for running tomcat, it should
be created similar to the "nobody" account used for running
Apache.  The tomcat user is assigned to the group tomcat.
The tomcat user is a member of group "user".

The group "tomcat" was created as the group the user "tomcat"
is assigned to.

The group "user" was created, this is the group customer
ftp accounts are assigned to.  The "tomcat" account is a
member of this group so that both customers and tomcat
can write files in directories assigned to group "user".

Each customer has their own ftp account which is in group
"user".

There is a "webmaster" administrator shell account.  This
account is for your virtual host administrator. The
webmaster account is assigned to group "user" and is also
a member of group "tomcat".

Directory layout


The layout of directories is designed to make it as easy as
possible for customers to maintain their own web space content
and applications.

Here is an example of how I do it:

The customer is assigned an FTP account which has permission
to read their virtual host directory and write to a subset of
that.

For example, a customer may be assigned the following directory:

/export/home/www.customer.com root:other 755


Within that directory are sub directories which the customer
can read and/or write. Listed are the directory names, 
ownership, and mode.

www webmaster:user 2775
--

Apache document root directory.  Customer and tomcat can
both read/write directories and files.

logs root:other 755
---

Directory where apache access_log and error_log are placed.
We also rotate these logs weekly and use bzip2 to compress
any log files older than 5 weeks.  Log files less than 5
weeks old are left uncompressed so that they can be used
by web statistic software like Analog. Customer can read
files in this directory but not write files.

tomcat tomcat:tomcat 755


Directory used for the tomcat work and tomcat virtual host logs.
Only tomcat can write in this directory. Customer can read
files in this directory.

tomcat/work tomcat:tomcat 755
-

Tomcat work directory for virtual host. Only tomcat can write
files.  Customer can read files. This allows customer to review
java source files generated during a JSP page compile.

tomcat/logs tomcat:tomcat 755 
--

Tomcat log directory for virtual host. Only tomcat can write
files.  Customer can read files. This allows the customer
to review their virtual host application logs.

reports webmaster:tomcat 2775
--

RE: Virtual Hosts

2001-05-14 Thread Ronan Derby

Martin,

With 3.1 if you had multiple virtual hosts, you had to have a seperate
server.xml
file for each vitual host. Tomcat used a seperatee JVM for each virtual
host.
This is handy in a development environment so that you can stop and start
one
virtual host without having to stop and start them all.

However, with 3.2 you can run them all in one JVm (or all seperately,
whichever you
prefer). I think you might have to use the AJp12 protocol with mod_jk if you
wish
to run them in seperate JVMs but if you are using just on JVM you can use
either
ajp13 or ajp12.

Ronan

-Original Message-
From: Martin Mauri [mailto:[EMAIL PROTECTED]]
Sent: 14 May 2001 14:27
To: [EMAIL PROTECTED]
Subject: Virtual Hosts


Hi Users!

As far as I know, with 3.1 versions it's necessary ti run different virtual
hosts mounts in different JVM. But according to the mod_jk module
documentation it seems that it's fixed because the virtual hosts directives
are set in workers.properties, httpd.conf and server.xml. Does anybodu know
if I'm right or wrong with this?

regards.

Lic. Martin O. Mauri
Profesion + Auge A.F.J.P
Parana 666 - Cap. Federal
TE: (011) 4373-7786/7 int: 422
[EMAIL PROTECTED]
www.profesi.com.ar





Re: Virtual Hosts

2001-05-14 Thread Martin Mauri

Thanks Ronan,

Now, suppose I want to do it within the same process, with mod_jk I think I
should have different ports per virtual host shouldn't I?

Do you have an example on how to set up this?

thanks.

m-

> Martin,
>
> With 3.1 if you had multiple virtual hosts, you had to have a seperate
> server.xml
> file for each vitual host. Tomcat used a seperatee JVM for each virtual
> host.
> This is handy in a development environment so that you can stop and start
> one
> virtual host without having to stop and start them all.
>
> However, with 3.2 you can run them all in one JVm (or all seperately,
> whichever you
> prefer). I think you might have to use the AJp12 protocol with mod_jk if
you
> wish
> to run them in seperate JVMs but if you are using just on JVM you can use
> either
> ajp13 or ajp12.
>
> Ronan
>
> -Original Message-
> From: Martin Mauri [mailto:[EMAIL PROTECTED]]
> Sent: 14 May 2001 14:27
> To: [EMAIL PROTECTED]
> Subject: Virtual Hosts
>
>
> Hi Users!
>
> As far as I know, with 3.1 versions it's necessary ti run different
virtual
> hosts mounts in different JVM. But according to the mod_jk module
> documentation it seems that it's fixed because the virtual hosts
directives
> are set in workers.properties, httpd.conf and server.xml. Does anybodu
know
> if I'm right or wrong with this?
>
> regards.
>
> Lic. Martin O. Mauri
> Profesion + Auge A.F.J.P
> Parana 666 - Cap. Federal
> TE: (011) 4373-7786/7 int: 422
> [EMAIL PROTECTED]
> www.profesi.com.ar
>




Re: Virtual Hosts

2001-05-14 Thread Jeff Kilbride

Hi Martin,

Take a look at the mod_jk howto:

http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html

The example configuration shows how to use the  directive in
server.xml to set up virtual hosts using the same JVM. There's no need to
specify different ports.

Thanks,
--jeff

- Original Message -
From: "Martin Mauri" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 14, 2001 11:01 AM
Subject: Re: Virtual Hosts


> Thanks Ronan,
>
> Now, suppose I want to do it within the same process, with mod_jk I think
I
> should have different ports per virtual host shouldn't I?
>
> Do you have an example on how to set up this?
>
> thanks.
>
> m-
>
> > Martin,
> >
> > With 3.1 if you had multiple virtual hosts, you had to have a seperate
> > server.xml
> > file for each vitual host. Tomcat used a seperatee JVM for each virtual
> > host.
> > This is handy in a development environment so that you can stop and
start
> > one
> > virtual host without having to stop and start them all.
> >
> > However, with 3.2 you can run them all in one JVm (or all seperately,
> > whichever you
> > prefer). I think you might have to use the AJp12 protocol with mod_jk if
> you
> > wish
> > to run them in seperate JVMs but if you are using just on JVM you can
use
> > either
> > ajp13 or ajp12.
> >
> > Ronan
> >
> > -Original Message-
> > From: Martin Mauri [mailto:[EMAIL PROTECTED]]
> > Sent: 14 May 2001 14:27
> > To: [EMAIL PROTECTED]
> > Subject: Virtual Hosts
> >
> >
> > Hi Users!
> >
> > As far as I know, with 3.1 versions it's necessary ti run different
> virtual
> > hosts mounts in different JVM. But according to the mod_jk module
> > documentation it seems that it's fixed because the virtual hosts
> directives
> > are set in workers.properties, httpd.conf and server.xml. Does anybodu
> know
> > if I'm right or wrong with this?
> >
> > regards.
> >
> > Lic. Martin O. Mauri
> > Profesion + Auge A.F.J.P
> > Parana 666 - Cap. Federal
> > TE: (011) 4373-7786/7 int: 422
> > [EMAIL PROTECTED]
> > www.profesi.com.ar
> >
>




Re: Virtual Hosts

2001-05-15 Thread Noel E. Lecaros

/etc/hosts

-nel

Kumar Thotapally wrote:

> Hi,
>
> I am able to startup and shutdown multiple JVMs (using server1.xml ... etc). I 
>created applications (for example, JVM1, JVM2) under web-apps.
>
> When I enter http://localhost:8007/jvm1/servlet/HelloWorld1 in my browser,
> it works fine.
>
> However, with the following code in server1.xml :
>
> 
>
> followed by
> 
>
> 
>  docBase="webapps/jvm1"
> crossContext="false"
> debug="1"
> reloadable="true" >
> 
> 
> along with other contexts.
>
> When I enter www.tomcat1.com, I am not able to get the result.
>
> Any suggestions?
>
> Thanks,
>
> Kumar.




Re: Virtual Hosts

2001-05-16 Thread Martin Mauri

Hi Jeff,

I agree, but the example shows an IP based virtual host configuration that
means I have to set up different virtual IP addresses in my OS and I don't
want to, I'd like to know how to configure named based virtual hosts within
the same JVM.

Any idea?

regards,

Martin

> Hi Martin,
>
> Take a look at the mod_jk howto:
>
> http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html
>
> The example configuration shows how to use the  directive in
> server.xml to set up virtual hosts using the same JVM. There's no need to
> specify different ports.
>
> Thanks,
> --jeff
>
> - Original Message -
> From: "Martin Mauri" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, May 14, 2001 11:01 AM
> Subject: Re: Virtual Hosts
>
>
> > Thanks Ronan,
> >
> > Now, suppose I want to do it within the same process, with mod_jk I
think
> I
> > should have different ports per virtual host shouldn't I?
> >
> > Do you have an example on how to set up this?
> >
> > thanks.
> >
> > m-
> >
> > > Martin,
> > >
> > > With 3.1 if you had multiple virtual hosts, you had to have a seperate
> > > server.xml
> > > file for each vitual host. Tomcat used a seperatee JVM for each
virtual
> > > host.
> > > This is handy in a development environment so that you can stop and
> start
> > > one
> > > virtual host without having to stop and start them all.
> > >
> > > However, with 3.2 you can run them all in one JVm (or all seperately,
> > > whichever you
> > > prefer). I think you might have to use the AJp12 protocol with mod_jk
if
> > you
> > > wish
> > > to run them in seperate JVMs but if you are using just on JVM you can
> use
> > > either
> > > ajp13 or ajp12.
> > >
> > > Ronan
> > >
> > > -Original Message-
> > > From: Martin Mauri [mailto:[EMAIL PROTECTED]]
> > > Sent: 14 May 2001 14:27
> > > To: [EMAIL PROTECTED]
> > > Subject: Virtual Hosts
> > >
> > >
> > > Hi Users!
> > >
> > > As far as I know, with 3.1 versions it's necessary ti run different
> > virtual
> > > hosts mounts in different JVM. But according to the mod_jk module
> > > documentation it seems that it's fixed because the virtual hosts
> > directives
> > > are set in workers.properties, httpd.conf and server.xml. Does anybodu
> > know
> > > if I'm right or wrong with this?
> > >
> > > regards.
> > >
> > > Lic. Martin O. Mauri
> > > Profesion + Auge A.F.J.P
> > > Parana 666 - Cap. Federal
> > > TE: (011) 4373-7786/7 int: 422
> > > [EMAIL PROTECTED]
> > > www.profesi.com.ar
> > >
> >




Re: Virtual Hosts

2001-05-16 Thread Jeff Kilbride

Hi Martin,

I'm using name-based vhosts and they work the same as the IP-based. Just
substitute the name for the IP.

Here's my server.xml config:






Set one of these up for each virtual host in Apache. Also note that if you
use the ServerAlias directive in Apache to make your host respond to more
than one name (i.e.  www.myhost.com *and* myhost.com ), you need to have two
entries in your server.xml file -- which will cause all of your servlets to
be init'ed and instantiated twice. The Host directive in server.xml doesn't
take wildcards or multiple host names. (I wish it did!)

Also, you should put all your JkMount directives for that specific host
inside your  directives in your apache config. If they are
outside your  directive, all hosts on the machine will inherit
the JkMount points.

Thanks,
--jeff

- Original Message -
From: "Martin Mauri" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 16, 2001 6:40 AM
Subject: Re: Virtual Hosts


> Hi Jeff,
>
> I agree, but the example shows an IP based virtual host configuration that
> means I have to set up different virtual IP addresses in my OS and I don't
> want to, I'd like to know how to configure named based virtual hosts
within
> the same JVM.
>
> Any idea?
>
> regards,
>
> Martin
>
> > Hi Martin,
> >
> > Take a look at the mod_jk howto:
> >
> >
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html
> >
> > The example configuration shows how to use the  directive in
> > server.xml to set up virtual hosts using the same JVM. There's no need
to
> > specify different ports.
> >
> > Thanks,
> > --jeff
> >
> > - Original Message -
> > From: "Martin Mauri" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, May 14, 2001 11:01 AM
> > Subject: Re: Virtual Hosts
> >
> >
> > > Thanks Ronan,
> > >
> > > Now, suppose I want to do it within the same process, with mod_jk I
> think
> > I
> > > should have different ports per virtual host shouldn't I?
> > >
> > > Do you have an example on how to set up this?
> > >
> > > thanks.
> > >
> > > m-
> > >
> > > > Martin,
> > > >
> > > > With 3.1 if you had multiple virtual hosts, you had to have a
seperate
> > > > server.xml
> > > > file for each vitual host. Tomcat used a seperatee JVM for each
> virtual
> > > > host.
> > > > This is handy in a development environment so that you can stop and
> > start
> > > > one
> > > > virtual host without having to stop and start them all.
> > > >
> > > > However, with 3.2 you can run them all in one JVm (or all
seperately,
> > > > whichever you
> > > > prefer). I think you might have to use the AJp12 protocol with
mod_jk
> if
> > > you
> > > > wish
> > > > to run them in seperate JVMs but if you are using just on JVM you
can
> > use
> > > > either
> > > > ajp13 or ajp12.
> > > >
> > > > Ronan
> > > >
> > > > -Original Message-
> > > > From: Martin Mauri [mailto:[EMAIL PROTECTED]]
> > > > Sent: 14 May 2001 14:27
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Virtual Hosts
> > > >
> > > >
> > > > Hi Users!
> > > >
> > > > As far as I know, with 3.1 versions it's necessary ti run different
> > > virtual
> > > > hosts mounts in different JVM. But according to the mod_jk module
> > > > documentation it seems that it's fixed because the virtual hosts
> > > directives
> > > > are set in workers.properties, httpd.conf and server.xml. Does
anybodu
> > > know
> > > > if I'm right or wrong with this?
> > > >
> > > > regards.
> > > >
> > > > Lic. Martin O. Mauri
> > > > Profesion + Auge A.F.J.P
> > > > Parana 666 - Cap. Federal
> > > > TE: (011) 4373-7786/7 int: 422
> > > > [EMAIL PROTECTED]
> > > > www.profesi.com.ar
> > > >
> > >
>




Re: Virtual Hosts

2001-06-16 Thread Luba Powell

Jason:
Scott Tatum has a page on virtual hosting.  I think it is very informative.
http://www.worldcom.com/main.phtml?grph=1

I am not sure if he still can be reached at:
[EMAIL PROTECTED]

These are the subjects that he addressed at one time:
 1. Introduction
> 2. Virtual Hosting Options
> 2.1 Tomcat Standalone
> 2.2 Tomcat with Apache
> 2.2.1 Apache + Single Tomcat Instance
> 2.2.2 Apache + Multiple Tomcat Instances
> 2.4 AJP12 vs. AJP13
> 2.5 General Do's and Dont's
> 3. Configuring Tomcat Standalone
> 3.1 Configuration Files Involved
> 3.2 Modifying server.xml
> 4. Configuring Tomcat + Single Tomcat Instance
> 4.1 Configuration Files Involved
> 4.2 Configuring server.xml
> 4.3 Configuring workers.properties
> 4.4 Configuring uriworkermap.properties
> 4.5 Configuring mod_jk.conf
> 4.6 Testing and Troubleshooting
> 5. Configuring Tomcat + Multiple Tomcat Instances
> 4.1 Configuration Files Involved
> 4.2 Creating and Configuring Separate server.xml Files
> 4.3 Configuring workers.properties
> 4.4 Configuring uriworkermap.properties
> 4.5 Configuring mod_jk.conf
> 4.6 Testing and Troubleshooting
>

R/Luba

- Original Message -
From: "Jason Koeninger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 16, 2001 5:29 PM
Subject: Virtual Hosts


> Let me see if I can take a different approach on these
> questions.  I've done a few different configurations for
> virtual hosting and haven't been very pleased with
> any of them.  So, what I'd like to know is how people on
> this list recommend you do virtual hosting.  In our particular
> situation, we have Apache 1.3.19 with mod_jk on one
> system and Tomcat 3.3m3 on another.  There are both
> name-based virtual hosts and virtual hosts with unique
> IP addresses on the same system.
>
> I have several ideas I plan to try to fix some problems I've
> run into, but I'd appreciate any recommendations from the
> list before I waste a lot more time.
>
> Just to let you know, I've tried using Tomcat's built in virtual
> hosting and was reasonably successful if Tomcat was on the
> same machine as Apache.  However, IP address-based hosts
> with my current configuration are exposing JSP code when the
> IP address is used in the request.  I've used mod_rewrite to rewrite
> the URL, but I still have problems on clients that don't send the
> HTTP 1.1 request that includes the host name.
>
> Once upgraded to Tomcat 3.3m3, name-based hosting seems
> to work fine in this setup, and any potential problems will likely be
> worked out with mod_rewrite.  However, some clients want an
> IP.  So, my next thought is to alias private IP addresses to the
> Tomcat machine for each unique host and use different workers
> for each host in the JkMount directives in the VirtualHost sections
> of Apache's configuration.  The down-side to that is in Tomcat 3.2,
> I was having to include Host entries in server.xml for each unique
> IP and each unique host name.
>
> Anyway, if you have any recommendations, I'd love to hear them.
> If I had the time, I'd just dig into the code and figure this stuff out,
but
> I don't have the time just yet.
>
> Best Regards,
>
> Jason Koeninger
> J&J Computer Consulting
> http://www.jjcc.com
>
>
>
>




Re: Virtual Hosts

2001-06-16 Thread Luba Powell

My appologies, Jason.
I have sent you the wrong URL in the previous message.
Visit:

http://www.crosswinds.net/~workshopx/projects/jakarta-uguide/tomcat.ug-p2.to
mcat-and-apache.html#conf-examp.1

It should cover:
virtual-hosting with jakarta + apache
configuration-example : minimal
configuration-example : Apache-static
configuration-example : per-context JVM : 1
configuration-example : per-context JVM : 2
configuration-example : VHosts

Hope this page will help.

R/Luba


- Original Message -
From: "Luba Powell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Jason Koeninger" <[EMAIL PROTECTED]>
Sent: Saturday, June 16, 2001 6:37 PM
Subject: Re: Virtual Hosts


> Jason:
> Scott Tatum has a page on virtual hosting.  I think it is very
informative.
> http://www.worldcom.com/main.phtml?grph=1
>
> I am not sure if he still can be reached at:
> [EMAIL PROTECTED]
>
> These are the subjects that he addressed at one time:
>  1. Introduction
> > 2. Virtual Hosting Options
> > 2.1 Tomcat Standalone
> > 2.2 Tomcat with Apache
> > 2.2.1 Apache + Single Tomcat Instance
> > 2.2.2 Apache + Multiple Tomcat Instances
> > 2.4 AJP12 vs. AJP13
> > 2.5 General Do's and Dont's
> > 3. Configuring Tomcat Standalone
> > 3.1 Configuration Files Involved
> > 3.2 Modifying server.xml
> > 4. Configuring Tomcat + Single Tomcat Instance
> > 4.1 Configuration Files Involved
> > 4.2 Configuring server.xml
> > 4.3 Configuring workers.properties
> > 4.4 Configuring uriworkermap.properties
> > 4.5 Configuring mod_jk.conf
> > 4.6 Testing and Troubleshooting
> > 5. Configuring Tomcat + Multiple Tomcat Instances
> > 4.1 Configuration Files Involved
> > 4.2 Creating and Configuring Separate server.xml Files
> > 4.3 Configuring workers.properties
> > 4.4 Configuring uriworkermap.properties
> > 4.5 Configuring mod_jk.conf
> > 4.6 Testing and Troubleshooting
> >
>
> R/Luba
>
> - Original Message -
> From: "Jason Koeninger" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, June 16, 2001 5:29 PM
> Subject: Virtual Hosts
>
>
> > Let me see if I can take a different approach on these
> > questions.  I've done a few different configurations for
> > virtual hosting and haven't been very pleased with
> > any of them.  So, what I'd like to know is how people on
> > this list recommend you do virtual hosting.  In our particular
> > situation, we have Apache 1.3.19 with mod_jk on one
> > system and Tomcat 3.3m3 on another.  There are both
> > name-based virtual hosts and virtual hosts with unique
> > IP addresses on the same system.
> >
> > I have several ideas I plan to try to fix some problems I've
> > run into, but I'd appreciate any recommendations from the
> > list before I waste a lot more time.
> >
> > Just to let you know, I've tried using Tomcat's built in virtual
> > hosting and was reasonably successful if Tomcat was on the
> > same machine as Apache.  However, IP address-based hosts
> > with my current configuration are exposing JSP code when the
> > IP address is used in the request.  I've used mod_rewrite to rewrite
> > the URL, but I still have problems on clients that don't send the
> > HTTP 1.1 request that includes the host name.
> >
> > Once upgraded to Tomcat 3.3m3, name-based hosting seems
> > to work fine in this setup, and any potential problems will likely be
> > worked out with mod_rewrite.  However, some clients want an
> > IP.  So, my next thought is to alias private IP addresses to the
> > Tomcat machine for each unique host and use different workers
> > for each host in the JkMount directives in the VirtualHost sections
> > of Apache's configuration.  The down-side to that is in Tomcat 3.2,
> > I was having to include Host entries in server.xml for each unique
> > IP and each unique host name.
> >
> > Anyway, if you have any recommendations, I'd love to hear them.
> > If I had the time, I'd just dig into the code and figure this stuff out,
> but
> > I don't have the time just yet.
> >
> > Best Regards,
> >
> > Jason Koeninger
> > J&J Computer Consulting
> > http://www.jjcc.com
> >
> >
> >
> >
>




Re: Virtual hosts

2001-12-31 Thread Ljubo Brglez

Lonnie wrote:

> When I modified the server.xml file it di not work. Is it possible to 
> run Tomcat on port 80 when you are also running other virtual hosts 
> with Apache? If it is I'll continue to read and play around. if it is

Why not? You need mod_webapp or mod_jk for apache.

Ljubo



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Virtual Hosts

2001-02-16 Thread sfarrell



I think you need to upgrade to tomcat 3.2.1 - to get support for virtual hosting.

Scott






Bertone Advertising <[EMAIL PROTECTED]>
16/02/2001 03:41 AM
Please respond to tomcat-user

        
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        Virtual Hosts

I am using tomcat 3.0 with Apache and mod_jk to run jsp. I have got it functioning for one domain by changing the server.xml:

 


 

I works for the one domain. Problem is, I want to use jsp on other domains as well. When I run them, they look for the page.jsp on the domain I referenced in the server.xml.
I am a total freshman at this stuff. Can anyone please offer specific examples as to how I may accomplish this? 
Thank you for your time.
Andrea


Do You Yahoo!?
- Get personalized email addresses from Yahoo! Mail Personal Address - only $35 a year!



RE: Virtual Hosts

2001-02-19 Thread Saurabh Shukla



Did u 
add the Virtual Host directtive in server.xml ? which version of tomcat are you 
using ? 
 
Shuklix

  -Original Message-From: Bertone Advertising 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, February 15, 2001 
  11:11 PMTo: [EMAIL PROTECTED]Subject: 
  Virtual Hosts
  I am using tomcat 3.0 with Apache and mod_jk to run jsp. I have got it 
  functioning for one domain by changing the server.xml:
   
   
  I works for the one domain. Problem is, I want to use jsp on other 
  domains as well. When I run them, they look for the page.jsp on the domain I 
  referenced in the server.xml.
  I am a total freshman at this stuff. Can anyone please offer specific 
  examples as to how I may accomplish this? 
  Thank you for your time.
  Andrea
  
  
  Do You Yahoo!?- Get personalized email addresses from Yahoo! Mail Personal Address - only 
  $35 a year!


Re: Virtual Hosts

2003-01-23 Thread Chris Schild
Tom,
I could possibly use some of the information.  I am running on the same
releases: Apache 2.0.43, Tomcat 4.1.18 & win2k.
My problem is that I can't get to the directory of my virtualHosts.

e.g. http://localhost/examples is not a problem BUT
http://mysite.com/examples will not work.  I just noticed an err in the log
saying -
Directory index forbidden by rule: C:/Apache/Tomcat4.1/path/to/examples

Can't find where to make my edits so the directory can be seen.

Maybe this is a related issue?  Either way if you know how to configure the
systems so that the directory will be shown, I would much appreciated it!

- Original Message -
From: "Tom Holmes Jr." <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 22, 2003 11:37 PM
Subject: Virtual Hosts


> I have finally discovered the problem on why some of my web-apps are
working
> and some are not ... it is either my configuration or a MAJOR SERIOUS BUG
> with Apache 2.0.43 and Tomcat 4.1.18 on Windows 2000.
>
> I have included a copy of my httpd.conf file because it is the only one
that
> matters here.  The server.xml file has one  tag and then it has 4
> different  tags with 1  for each virtual host.
>
> When we have two virtual host/web-apps listed below ONLY the JSP pages
work
> for the second web-app.  They do NOT work for the first web-app listed.
If
> I flip these virtual hosts around and then restart the Apache/Tomcat
server,
> then the opposite is true.  I then tried 3 web-apps and again ... ONLY the
> last web-app works and the JSP pages are correctly served.
>
> If anyone needs the other files:  jk2.properties or workers2.properites or
> server.xml, please let me know and I can provide them.  I am sure that
these
> files are ok.  Switching the  tags around in the  tag did
not
> seem to have any effect.
>
> I may try this same configuration on my Red Hat Linux 8.0 box and see if
the
> same problem happens.  At least that way I could say the problem is
> cross-platform or just limitations on the Windows 2000 versions.
>
> If I can be of any help, or if you need any more information, please let
me
> know.  I ask that someone please look at this issue and my configuration
and
> recommend a solution.   I really want to use Apache and Tomcat together,
but
> this is incredibly frustrating and should not be a problem.   Thanks.
>
>   Tom
>
> 
>  ServerName test.tomholmes.net
>  ServerAdmin [EMAIL PROTECTED]
>  DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/test
>  
>   JkUriSet worker ajp13:localhost:8009
>  
>  ErrorLog logs/test-error_log
>  CustomLog logs/test-access_log common
>  DirectoryIndex default.jsp index.jsp
> 
>
> 
>  ServerName meditech.tomholmes.net
>  ServerAdmin [EMAIL PROTECTED]
>  DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/meditech
>  
>   JkUriSet uri meditech.tomholmes.net
>   JkUriSet worker ajp13:localhost:8009
>  
>  ErrorLog logs/meditech-error_log
>  CustomLog logs/meditech-access_log common
>  DirectoryIndex default.jsp
> 
>
>






> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Virtual Hosts

2003-01-23 Thread John Ruffin
I'm having a similar issue.  I'm running tc4.1.18 on w2k server.
http://localhost/examples works but http://mysite.com/examples doesn't.  I
searched the archives and found some information on creating a host file
with the FQDN as the name but that didn't seem to work.  Is there something
else I need to change?  Do I need to configure my firewall || router to let
additional ports through?  Right now, port:80 (http) serves static content
with no problem.

I'm new - thanks for your help.

-Original Message-
From: Chris Schild [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 1:16 PM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: Virtual Hosts


Tom,
I could possibly use some of the information.  I am running on the same
releases: Apache 2.0.43, Tomcat 4.1.18 & win2k.
My problem is that I can't get to the directory of my virtualHosts.

e.g. http://localhost/examples is not a problem BUT
http://mysite.com/examples will not work.  I just noticed an err in the log
saying -
Directory index forbidden by rule: C:/Apache/Tomcat4.1/path/to/examples

Can't find where to make my edits so the directory can be seen.

Maybe this is a related issue?  Either way if you know how to configure the
systems so that the directory will be shown, I would much appreciated it!

- Original Message -
From: "Tom Holmes Jr." <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 22, 2003 11:37 PM
Subject: Virtual Hosts


> I have finally discovered the problem on why some of my web-apps are
working
> and some are not ... it is either my configuration or a MAJOR SERIOUS BUG
> with Apache 2.0.43 and Tomcat 4.1.18 on Windows 2000.
>
> I have included a copy of my httpd.conf file because it is the only one
that
> matters here.  The server.xml file has one  tag and then it has 4
> different  tags with 1  for each virtual host.
>
> When we have two virtual host/web-apps listed below ONLY the JSP pages
work
> for the second web-app.  They do NOT work for the first web-app listed.
If
> I flip these virtual hosts around and then restart the Apache/Tomcat
server,
> then the opposite is true.  I then tried 3 web-apps and again ... ONLY the
> last web-app works and the JSP pages are correctly served.
>
> If anyone needs the other files:  jk2.properties or workers2.properites or
> server.xml, please let me know and I can provide them.  I am sure that
these
> files are ok.  Switching the  tags around in the  tag did
not
> seem to have any effect.
>
> I may try this same configuration on my Red Hat Linux 8.0 box and see if
the
> same problem happens.  At least that way I could say the problem is
> cross-platform or just limitations on the Windows 2000 versions.
>
> If I can be of any help, or if you need any more information, please let
me
> know.  I ask that someone please look at this issue and my configuration
and
> recommend a solution.   I really want to use Apache and Tomcat together,
but
> this is incredibly frustrating and should not be a problem.   Thanks.
>
>   Tom
>
> 
>  ServerName test.tomholmes.net
>  ServerAdmin [EMAIL PROTECTED]
>  DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/test
>  
>   JkUriSet worker ajp13:localhost:8009
>  
>  ErrorLog logs/test-error_log
>  CustomLog logs/test-access_log common
>  DirectoryIndex default.jsp index.jsp
> 
>
> 
>  ServerName meditech.tomholmes.net
>  ServerAdmin [EMAIL PROTECTED]
>  DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/meditech
>  
>   JkUriSet uri meditech.tomholmes.net
>   JkUriSet worker ajp13:localhost:8009
>  
>  ErrorLog logs/meditech-error_log
>  CustomLog logs/meditech-access_log common
>  DirectoryIndex default.jsp
> 
>
>






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


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



The information in this email is confidential and may be 
legally privileged. It is intended solely for the addressee,
and access by anyone else is unauthorized.

If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be
taken in reliance on it, is prohibited and may be unlawful. 

If you believe that you have received this email in error, 
please advise us by calling (901) 385 3688, or emailing
[EMAIL PROTECTED], and then delete this message
and all copies and backups thereof. Thank you.



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




RE: Virtual Hosts

2003-01-23 Thread Turner, John

In server.xml there is an element named Host with a parameter named "name"
with a value of "localhost".  Within that Host element is a Context for
"/examples".

In order to get "mydomain.com/examples" to work, you either:

1) Use  within  to alias mydomain.com to localhost

or

2) copy the localhost Host element, change name's value to "mydomain.com",
and then within that new Host element, setup a Context for whatever you
want.

John


> -Original Message-
> From: John Ruffin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 3:42 PM
> To: 'Tomcat Users List'
> Subject: RE: Virtual Hosts
> 
> 
> I'm having a similar issue.  I'm running tc4.1.18 on w2k server.
> http://localhost/examples works but 
> http://mysite.com/examples doesn't.  I
> searched the archives and found some information on creating 
> a host file
> with the FQDN as the name but that didn't seem to work.  Is 
> there something
> else I need to change?  Do I need to configure my firewall || 
> router to let
> additional ports through?  Right now, port:80 (http) serves 
> static content
> with no problem.
> 
> I'm new - thanks for your help.
> 
> -Original Message-
> From: Chris Schild [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 1:16 PM
> To: Tomcat Users List
> Cc: [EMAIL PROTECTED]
> Subject: Re: Virtual Hosts
> 
> 
> Tom,
> I could possibly use some of the information.  I am running 
> on the same
> releases: Apache 2.0.43, Tomcat 4.1.18 & win2k.
> My problem is that I can't get to the directory of my virtualHosts.
> 
> e.g. http://localhost/examples is not a problem BUT
> http://mysite.com/examples will not work.  I just noticed an 
> err in the log
> saying -
> Directory index forbidden by rule: 
> C:/Apache/Tomcat4.1/path/to/examples
> 
> Can't find where to make my edits so the directory can be seen.
> 
> Maybe this is a related issue?  Either way if you know how to 
> configure the
> systems so that the directory will be shown, I would much 
> appreciated it!
> 
> - Original Message -
> From: "Tom Holmes Jr." <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 22, 2003 11:37 PM
> Subject: Virtual Hosts
> 
> 
> > I have finally discovered the problem on why some of my web-apps are
> working
> > and some are not ... it is either my configuration or a 
> MAJOR SERIOUS BUG
> > with Apache 2.0.43 and Tomcat 4.1.18 on Windows 2000.
> >
> > I have included a copy of my httpd.conf file because it is 
> the only one
> that
> > matters here.  The server.xml file has one  tag and 
> then it has 4
> > different  tags with 1  for each virtual host.
> >
> > When we have two virtual host/web-apps listed below ONLY 
> the JSP pages
> work
> > for the second web-app.  They do NOT work for the first 
> web-app listed.
> If
> > I flip these virtual hosts around and then restart the Apache/Tomcat
> server,
> > then the opposite is true.  I then tried 3 web-apps and 
> again ... ONLY the
> > last web-app works and the JSP pages are correctly served.
> >
> > If anyone needs the other files:  jk2.properties or 
> workers2.properites or
> > server.xml, please let me know and I can provide them.  I 
> am sure that
> these
> > files are ok.  Switching the  tags around in the 
>  tag did
> not
> > seem to have any effect.
> >
> > I may try this same configuration on my Red Hat Linux 8.0 
> box and see if
> the
> > same problem happens.  At least that way I could say the problem is
> > cross-platform or just limitations on the Windows 2000 versions.
> >
> > If I can be of any help, or if you need any more 
> information, please let
> me
> > know.  I ask that someone please look at this issue and my 
> configuration
> and
> > recommend a solution.   I really want to use Apache and 
> Tomcat together,
> but
> > this is incredibly frustrating and should not be a problem. 
>   Thanks.
> >
> >   Tom
> >
> > 
> >  ServerName test.tomholmes.net
> >  ServerAdmin [EMAIL PROTECTED]
> >  DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/test
> >  
> >   JkUriSet worker ajp13:localhost:8009
> >  
> >  ErrorLog logs/test-error_log
> >  CustomLog logs/test-access_log common
> >  DirectoryIndex default.jsp index.jsp
> > 
> >
> > 
> >  ServerName meditech.tomholmes.net
> >  ServerAdmin [EMAIL PROTECTED]
> &

Re: Virtual Hosts

2003-01-23 Thread Lajos Moczar
And make sure both your domains are setup correctly in /etc/hosts 
(assuming you're on a 'nix). One problem I've seen is that if you don't 
have the /etc/hosts correct, Tomcat will default to one of the , 
just like Apache will default to the first  block.

Lajos



Turner, John wrote:
In server.xml there is an element named Host with a parameter named "name"
with a value of "localhost".  Within that Host element is a Context for
"/examples".

In order to get "mydomain.com/examples" to work, you either:

1) Use  within  to alias mydomain.com to localhost

or

2) copy the localhost Host element, change name's value to "mydomain.com",
and then within that new Host element, setup a Context for whatever you
want.

John




-Original Message-
From: John Ruffin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 3:42 PM
To: 'Tomcat Users List'
Subject: RE: Virtual Hosts


I'm having a similar issue.  I'm running tc4.1.18 on w2k server.
http://localhost/examples works but 
http://mysite.com/examples doesn't.  I
searched the archives and found some information on creating 
a host file
with the FQDN as the name but that didn't seem to work.  Is 
there something
else I need to change?  Do I need to configure my firewall || 
router to let
additional ports through?  Right now, port:80 (http) serves 
static content
with no problem.

I'm new - thanks for your help.

-Original Message-
From: Chris Schild [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 1:16 PM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: Virtual Hosts


Tom,
I could possibly use some of the information.  I am running 
on the same
releases: Apache 2.0.43, Tomcat 4.1.18 & win2k.
My problem is that I can't get to the directory of my virtualHosts.

e.g. http://localhost/examples is not a problem BUT
http://mysite.com/examples will not work.  I just noticed an 
err in the log
saying -
Directory index forbidden by rule: 
C:/Apache/Tomcat4.1/path/to/examples

Can't find where to make my edits so the directory can be seen.

Maybe this is a related issue?  Either way if you know how to 
configure the
systems so that the directory will be shown, I would much 
appreciated it!

- Original Message -
From: "Tom Holmes Jr." <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 22, 2003 11:37 PM
Subject: Virtual Hosts



I have finally discovered the problem on why some of my web-apps are


working


and some are not ... it is either my configuration or a 

MAJOR SERIOUS BUG


with Apache 2.0.43 and Tomcat 4.1.18 on Windows 2000.

I have included a copy of my httpd.conf file because it is 

the only one
that


matters here.  The server.xml file has one  tag and 

then it has 4


different  tags with 1  for each virtual host.

When we have two virtual host/web-apps listed below ONLY 

the JSP pages
work


for the second web-app.  They do NOT work for the first 

web-app listed.
If


I flip these virtual hosts around and then restart the Apache/Tomcat


server,


then the opposite is true.  I then tried 3 web-apps and 

again ... ONLY the


last web-app works and the JSP pages are correctly served.

If anyone needs the other files:  jk2.properties or 

workers2.properites or


server.xml, please let me know and I can provide them.  I 

am sure that
these


files are ok.  Switching the  tags around in the 

 tag did
not


seem to have any effect.

I may try this same configuration on my Red Hat Linux 8.0 

box and see if
the


same problem happens.  At least that way I could say the problem is
cross-platform or just limitations on the Windows 2000 versions.

If I can be of any help, or if you need any more 

information, please let
me


know.  I ask that someone please look at this issue and my 

configuration
and


recommend a solution.   I really want to use Apache and 

Tomcat together,
but


this is incredibly frustrating and should not be a problem. 

 Thanks.


 Tom


ServerName test.tomholmes.net
ServerAdmin [EMAIL PROTECTED]
DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/test

 JkUriSet worker ajp13:localhost:8009

ErrorLog logs/test-error_log
CustomLog logs/test-access_log common
DirectoryIndex default.jsp index.jsp



ServerName meditech.tomholmes.net
ServerAdmin [EMAIL PROTECTED]
DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/meditech

 JkUriSet uri meditech.tomholmes.net
 JkUriSet worker ajp13:localhost:8009

ErrorLog logs/meditech-error_log
CustomLog logs/meditech-access_log common
DirectoryIndex default.jsp





--
--





--
To unsubscribe, e-mail:


<mailto:[EMAIL PROTECTED]>


For additional commands, e-mail:


<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:
<mailto:[EM

Re: Virtual Hosts

2003-01-23 Thread Chris Schild
I'm having the same problem.  In the log files apache2/logs/COM_error_log I
get a:  Directory index forbidden by rule:   Is there a definition in
http.conf that I need to alter???


- Original Message -
From: "John Ruffin" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 2:42 PM
Subject: RE: Virtual Hosts


> I'm having a similar issue.  I'm running tc4.1.18 on w2k server.
> http://localhost/examples works but http://mysite.com/examples doesn't.  I
> searched the archives and found some information on creating a host file
> with the FQDN as the name but that didn't seem to work.  Is there
something
> else I need to change?  Do I need to configure my firewall || router to
let
> additional ports through?  Right now, port:80 (http) serves static content
> with no problem.
>
> I'm new - thanks for your help.
>
> -Original Message-
> From: Chris Schild [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 1:16 PM
> To: Tomcat Users List
> Cc: [EMAIL PROTECTED]
> Subject: Re: Virtual Hosts
>
>
> Tom,
> I could possibly use some of the information.  I am running on the same
> releases: Apache 2.0.43, Tomcat 4.1.18 & win2k.
> My problem is that I can't get to the directory of my virtualHosts.
>
> e.g. http://localhost/examples is not a problem BUT
> http://mysite.com/examples will not work.  I just noticed an err in the
log
> saying -
> Directory index forbidden by rule: C:/Apache/Tomcat4.1/path/to/examples
>
> Can't find where to make my edits so the directory can be seen.
>
> Maybe this is a related issue?  Either way if you know how to configure
the
> systems so that the directory will be shown, I would much appreciated it!
>
> - Original Message -
> From: "Tom Holmes Jr." <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 22, 2003 11:37 PM
> Subject: Virtual Hosts
>
>
> > I have finally discovered the problem on why some of my web-apps are
> working
> > and some are not ... it is either my configuration or a MAJOR SERIOUS
BUG
> > with Apache 2.0.43 and Tomcat 4.1.18 on Windows 2000.
> >
> > I have included a copy of my httpd.conf file because it is the only one
> that
> > matters here.  The server.xml file has one  tag and then it has
4
> > different  tags with 1  for each virtual host.
> >
> > When we have two virtual host/web-apps listed below ONLY the JSP pages
> work
> > for the second web-app.  They do NOT work for the first web-app listed.
> If
> > I flip these virtual hosts around and then restart the Apache/Tomcat
> server,
> > then the opposite is true.  I then tried 3 web-apps and again ... ONLY
the
> > last web-app works and the JSP pages are correctly served.
> >
> > If anyone needs the other files:  jk2.properties or workers2.properites
or
> > server.xml, please let me know and I can provide them.  I am sure that
> these
> > files are ok.  Switching the  tags around in the  tag did
> not
> > seem to have any effect.
> >
> > I may try this same configuration on my Red Hat Linux 8.0 box and see if
> the
> > same problem happens.  At least that way I could say the problem is
> > cross-platform or just limitations on the Windows 2000 versions.
> >
> > If I can be of any help, or if you need any more information, please let
> me
> > know.  I ask that someone please look at this issue and my configuration
> and
> > recommend a solution.   I really want to use Apache and Tomcat together,
> but
> > this is incredibly frustrating and should not be a problem.   Thanks.
> >
> >   Tom
> >
> > 
> >  ServerName test.tomholmes.net
> >  ServerAdmin [EMAIL PROTECTED]
> >  DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/test
> >  
> >   JkUriSet worker ajp13:localhost:8009
> >  
> >  ErrorLog logs/test-error_log
> >  CustomLog logs/test-access_log common
> >  DirectoryIndex default.jsp index.jsp
> > 
> >
> > 
> >  ServerName meditech.tomholmes.net
> >  ServerAdmin [EMAIL PROTECTED]
> >  DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/meditech
> >  
> >   JkUriSet uri meditech.tomholmes.net
> >   JkUriSet worker ajp13:localhost:8009
> >  
> >  ErrorLog logs/meditech-error_log
> >  CustomLog logs/meditech-access_log common
> >  DirectoryIndex default.jsp
> > 
> >
> >
>
>
> --

Re: Virtual Hosts

2003-01-23 Thread Chris Schild
This is when I go the url http://mydomain.com/examples
http://mydomain.com/examples/jsp/index.html works just fine


I'm having the same problem.  In the log files apache2/logs/COM_error_log I
get a:  Directory index forbidden by rule:   Is there a definition in
http.conf that I need to alter???

- Original Message -
From: "John Ruffin" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 2:42 PM
Subject: RE: Virtual Hosts


> I'm having a similar issue.  I'm running tc4.1.18 on w2k server.
> http://localhost/examples works but http://mysite.com/examples doesn't.  I
> searched the archives and found some information on creating a host file
> with the FQDN as the name but that didn't seem to work.  Is there
something
> else I need to change?  Do I need to configure my firewall || router to
let
> additional ports through?  Right now, port:80 (http) serves static content
> with no problem.
>
> I'm new - thanks for your help.
>
> -Original Message-
> From: Chris Schild [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 1:16 PM
> To: Tomcat Users List
> Cc: [EMAIL PROTECTED]
> Subject: Re: Virtual Hosts
>
>
> Tom,
> I could possibly use some of the information.  I am running on the same
> releases: Apache 2.0.43, Tomcat 4.1.18 & win2k.
> My problem is that I can't get to the directory of my virtualHosts.
>
> e.g. http://localhost/examples is not a problem BUT
> http://mysite.com/examples will not work.  I just noticed an err in the
log
> saying -
> Directory index forbidden by rule: C:/Apache/Tomcat4.1/path/to/examples
>
> Can't find where to make my edits so the directory can be seen.
>
> Maybe this is a related issue?  Either way if you know how to configure
the
> systems so that the directory will be shown, I would much appreciated it!
>
> - Original Message -
> From: "Tom Holmes Jr." <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 22, 2003 11:37 PM
> Subject: Virtual Hosts
>
>
> > I have finally discovered the problem on why some of my web-apps are
> working
> > and some are not ... it is either my configuration or a MAJOR SERIOUS
BUG
> > with Apache 2.0.43 and Tomcat 4.1.18 on Windows 2000.
> >
> > I have included a copy of my httpd.conf file because it is the only one
> that
> > matters here.  The server.xml file has one  tag and then it has
4
> > different  tags with 1  for each virtual host.
> >
> > When we have two virtual host/web-apps listed below ONLY the JSP pages
> work
> > for the second web-app.  They do NOT work for the first web-app listed.
> If
> > I flip these virtual hosts around and then restart the Apache/Tomcat
> server,
> > then the opposite is true.  I then tried 3 web-apps and again ... ONLY
the
> > last web-app works and the JSP pages are correctly served.
> >
> > If anyone needs the other files:  jk2.properties or workers2.properites
or
> > server.xml, please let me know and I can provide them.  I am sure that
> these
> > files are ok.  Switching the  tags around in the  tag did
> not
> > seem to have any effect.
> >
> > I may try this same configuration on my Red Hat Linux 8.0 box and see if
> the
> > same problem happens.  At least that way I could say the problem is
> > cross-platform or just limitations on the Windows 2000 versions.
> >
> > If I can be of any help, or if you need any more information, please let
> me
> > know.  I ask that someone please look at this issue and my configuration
> and
> > recommend a solution.   I really want to use Apache and Tomcat together,
> but
> > this is incredibly frustrating and should not be a problem.   Thanks.
> >
> >   Tom
> >
> > 
> >  ServerName test.tomholmes.net
> >  ServerAdmin [EMAIL PROTECTED]
> >  DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/test
> >  
> >   JkUriSet worker ajp13:localhost:8009
> >  
> >  ErrorLog logs/test-error_log
> >  CustomLog logs/test-access_log common
> >  DirectoryIndex default.jsp index.jsp
> > 
> >
> > 
> >  ServerName meditech.tomholmes.net
> >  ServerAdmin [EMAIL PROTECTED]
> >  DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/meditech
> >  
> >   JkUriSet uri meditech.tomholmes.net
> >   JkUriSet worker ajp13:localhost:8009
> >  
> >  ErrorLog logs/meditech-error_log
> >  CustomLog logs/meditech-access_log common
> >  DirectoryIndex default.

Re: Virtual Hosts

2003-01-23 Thread Chris Schild
Does any know what would cause this message:
Directory index forbidden by rule: C:\apache\qv


This is when I go the url http://mydomain.com/examples
http://mydomain.com/examples/jsp/index.html works just fine


I'm having the same problem.  In the log files apache2/logs/COM_error_log I
get a:  Directory index forbidden by rule:   Is there a definition in
http.conf that I need to alter???

- Original Message -
From: "John Ruffin" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 2:42 PM
Subject: RE: Virtual Hosts


> I'm having a similar issue.  I'm running tc4.1.18 on w2k server.
> http://localhost/examples works but http://mysite.com/examples doesn't.  I
> searched the archives and found some information on creating a host file
> with the FQDN as the name but that didn't seem to work.  Is there
something
> else I need to change?  Do I need to configure my firewall || router to
let
> additional ports through?  Right now, port:80 (http) serves static content
> with no problem.
>
> I'm new - thanks for your help.
>
> -Original Message-
> From: Chris Schild [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 1:16 PM
> To: Tomcat Users List
> Cc: [EMAIL PROTECTED]
> Subject: Re: Virtual Hosts
>
>
> Tom,
> I could possibly use some of the information.  I am running on the same
> releases: Apache 2.0.43, Tomcat 4.1.18 & win2k.
> My problem is that I can't get to the directory of my virtualHosts.
>
> e.g. http://localhost/examples is not a problem BUT
> http://mysite.com/examples will not work.  I just noticed an err in the
log
> saying -
> Directory index forbidden by rule: C:/Apache/Tomcat4.1/path/to/examples
>
> Can't find where to make my edits so the directory can be seen.
>
> Maybe this is a related issue?  Either way if you know how to configure
the
> systems so that the directory will be shown, I would much appreciated it!
>
> - Original Message -
> From: "Tom Holmes Jr." <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 22, 2003 11:37 PM
> Subject: Virtual Hosts
>
>
> > I have finally discovered the problem on why some of my web-apps are
> working
> > and some are not ... it is either my configuration or a MAJOR SERIOUS
BUG
> > with Apache 2.0.43 and Tomcat 4.1.18 on Windows 2000.
> >
> > I have included a copy of my httpd.conf file because it is the only one
> that
> > matters here.  The server.xml file has one  tag and then it has
4
> > different  tags with 1  for each virtual host.
> >
> > When we have two virtual host/web-apps listed below ONLY the JSP pages
> work
> > for the second web-app.  They do NOT work for the first web-app listed.
> If
> > I flip these virtual hosts around and then restart the Apache/Tomcat
> server,
> > then the opposite is true.  I then tried 3 web-apps and again ... ONLY
the
> > last web-app works and the JSP pages are correctly served.
> >
> > If anyone needs the other files:  jk2.properties or workers2.properites
or
> > server.xml, please let me know and I can provide them.  I am sure that
> these
> > files are ok.  Switching the  tags around in the  tag did
> not
> > seem to have any effect.
> >
> > I may try this same configuration on my Red Hat Linux 8.0 box and see if
> the
> > same problem happens.  At least that way I could say the problem is
> > cross-platform or just limitations on the Windows 2000 versions.
> >
> > If I can be of any help, or if you need any more information, please let
> me
> > know.  I ask that someone please look at this issue and my configuration
> and
> > recommend a solution.   I really want to use Apache and Tomcat together,
> but
> > this is incredibly frustrating and should not be a problem.   Thanks.
> >
> >   Tom
> >
> > 
> >  ServerName test.tomholmes.net
> >  ServerAdmin [EMAIL PROTECTED]
> >  DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/test
> >  
> >   JkUriSet worker ajp13:localhost:8009
> >  
> >  ErrorLog logs/test-error_log
> >  CustomLog logs/test-access_log common
> >  DirectoryIndex default.jsp index.jsp
> > 
> >
> > 
> >  ServerName meditech.tomholmes.net
> >  ServerAdmin [EMAIL PROTECTED]
> >  DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/meditech
> >  
> >   JkUriSet uri meditech.tomholmes.net
> >   JkUriSet worker ajp13:localhost:8009
> >  
> >  ErrorLog logs/meditech-err

Re: Virtual Hosts

2003-01-23 Thread Tom Holmes Jr.
Hi Chris, I am afraid we have two seperate issues.  It seems like I solved
your issues a few days ago and have a few new ones to work out.  If you need
any more help, send me a message directly and I will see how I can help.
However, it seems so far that the answers you have already got will work.

My issue is a little different, I have 3 virtual hosts and 3 different
web-apps defined under httpd.conf, and I have 3 different  and
 tags in server.xml.  The JSP pages ONLY work with the last web-app
defined.  What I mean by 'works' is that the JSP pages get compiled into
servlets, and then get served correctly by performing the business logic.

Any other web-apps defined in the httpd.conf file do not work.  What I mean
by they 'do not work' is that the JSP pages do not get compiled into
servlets, and do not execuet the business logic.  Instead the JSP code shows
up clear as day as if you were opening a text file.  This is a major
security problem, and I thought it was fixed.

I've posted this issue at least on 3 different occasions now with no answers
from anyone.  It could be because this issue only happens on a Windows
platform?   I guess my next step is to test out this problem on Red Hat 8.0
Linux.   If I can duplicate the same problem on that platform, I bet it will
expedite a fix.  Of course, if this isn't a bug in Tomcat, then I'd expect
someone would point out that my configuration is wrong ... but that hasn't
happened yet.

Thanks.

  Tom


- Original Message -
From: "Chris Schild" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 7:12 PM
Subject: Re: Virtual Hosts


> Does any know what would cause this message:
> Directory index forbidden by rule: C:\apache\qv
>
>
> This is when I go the url http://mydomain.com/examples
> http://mydomain.com/examples/jsp/index.html works just fine
>
>
> I'm having the same problem.  In the log files apache2/logs/COM_error_log
I
> get a:  Directory index forbidden by rule:   Is there a definition in
> http.conf that I need to alter???
>
> - Original Message -
> From: "John Ruffin" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Thursday, January 23, 2003 2:42 PM
> Subject: RE: Virtual Hosts
>
>
> > I'm having a similar issue.  I'm running tc4.1.18 on w2k server.
> > http://localhost/examples works but http://mysite.com/examples doesn't.
I
> > searched the archives and found some information on creating a host file
> > with the FQDN as the name but that didn't seem to work.  Is there
> something
> > else I need to change?  Do I need to configure my firewall || router to
> let
> > additional ports through?  Right now, port:80 (http) serves static
content
> > with no problem.
> >
> > I'm new - thanks for your help.
> >
> > -Original Message-
> > From: Chris Schild [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 23, 2003 1:16 PM
> > To: Tomcat Users List
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: Virtual Hosts
> >
> >
> > Tom,
> > I could possibly use some of the information.  I am running on the same
> > releases: Apache 2.0.43, Tomcat 4.1.18 & win2k.
> > My problem is that I can't get to the directory of my virtualHosts.
> >
> > e.g. http://localhost/examples is not a problem BUT
> > http://mysite.com/examples will not work.  I just noticed an err in the
> log
> > saying -
> > Directory index forbidden by rule: C:/Apache/Tomcat4.1/path/to/examples
> >
> > Can't find where to make my edits so the directory can be seen.
> >
> > Maybe this is a related issue?  Either way if you know how to configure
> the
> > systems so that the directory will be shown, I would much appreciated
it!
> >
> > - Original Message -
> > From: "Tom Holmes Jr." <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, January 22, 2003 11:37 PM
> > Subject: Virtual Hosts
> >
> >
> > > I have finally discovered the problem on why some of my web-apps are
> > working
> > > and some are not ... it is either my configuration or a MAJOR SERIOUS
> BUG
> > > with Apache 2.0.43 and Tomcat 4.1.18 on Windows 2000.
> > >
> > > I have included a copy of my httpd.conf file because it is the only
one
> > that
> > > matters here.  The server.xml file has one  tag and then it
has
> 4
> > > different  tags with 1  for each virtual host.
> > >
> > > When we 

Re: Virtual Hosts

2003-01-23 Thread Ed Robbins
If your getting these in your apache logs then you don't have Apache
configured to call Tomcat.  Apache has to configured so that when it
sees a URL ending in /examples that it passes it along to Tomcat.  For
instance, using mod_jk with ajp13 the following would do it:

JkMount /examples/* ajp13

This of course would be under the virtual host section for mysite.com

So you may have something like:


  DocumentRoot /home/httpd/htdocs/mysite
  ServerName mysite.com
  JkMount /*.jsp ajp13
  JkMount /examples/* ajp13


Hope this helps.

Ed
On Thu, 2003-01-23 at 17:21, Chris Schild wrote:
> I'm having the same problem.  In the log files apache2/logs/COM_error_log I
> get a:  Directory index forbidden by rule:   Is there a definition in
> http.conf that I need to alter???
> 
> 
> - Original Message -
> From: "John Ruffin" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Thursday, January 23, 2003 2:42 PM
> Subject: RE: Virtual Hosts
> 
> 
> > I'm having a similar issue.  I'm running tc4.1.18 on w2k server.
> > http://localhost/examples works but http://mysite.com/examples doesn't.  I
> > searched the archives and found some information on creating a host file
> > with the FQDN as the name but that didn't seem to work.  Is there
> something
> > else I need to change?  Do I need to configure my firewall || router to
> let
> > additional ports through?  Right now, port:80 (http) serves static content
> > with no problem.
> >
> > I'm new - thanks for your help.
> >
> > -----Original Message-
> > From: Chris Schild [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 23, 2003 1:16 PM
> > To: Tomcat Users List
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: Virtual Hosts
> >
> >
> > Tom,
> > I could possibly use some of the information.  I am running on the same
> > releases: Apache 2.0.43, Tomcat 4.1.18 & win2k.
> > My problem is that I can't get to the directory of my virtualHosts.
> >
> > e.g. http://localhost/examples is not a problem BUT
> > http://mysite.com/examples will not work.  I just noticed an err in the
> log
> > saying -
> > Directory index forbidden by rule: C:/Apache/Tomcat4.1/path/to/examples
> >
> > Can't find where to make my edits so the directory can be seen.
> >
> > Maybe this is a related issue?  Either way if you know how to configure
> the
> > systems so that the directory will be shown, I would much appreciated it!
> >
> > - Original Message -
> > From: "Tom Holmes Jr." <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, January 22, 2003 11:37 PM
> > Subject: Virtual Hosts
> >
> >
> > > I have finally discovered the problem on why some of my web-apps are
> > working
> > > and some are not ... it is either my configuration or a MAJOR SERIOUS
> BUG
> > > with Apache 2.0.43 and Tomcat 4.1.18 on Windows 2000.
> > >
> > > I have included a copy of my httpd.conf file because it is the only one
> > that
> > > matters here.  The server.xml file has one  tag and then it has
> 4
> > > different  tags with 1  for each virtual host.
> > >
> > > When we have two virtual host/web-apps listed below ONLY the JSP pages
> > work
> > > for the second web-app.  They do NOT work for the first web-app listed.
> > If
> > > I flip these virtual hosts around and then restart the Apache/Tomcat
> > server,
> > > then the opposite is true.  I then tried 3 web-apps and again ... ONLY
> the
> > > last web-app works and the JSP pages are correctly served.
> > >
> > > If anyone needs the other files:  jk2.properties or workers2.properites
> or
> > > server.xml, please let me know and I can provide them.  I am sure that
> > these
> > > files are ok.  Switching the  tags around in the  tag did
> > not
> > > seem to have any effect.
> > >
> > > I may try this same configuration on my Red Hat Linux 8.0 box and see if
> > the
> > > same problem happens.  At least that way I could say the problem is
> > > cross-platform or just limitations on the Windows 2000 versions.
> > >
> > > If I can be of any help, or if you need any more information, please let
> > me
> > > know.  I ask that someone please look at this issue and my configuration
> > and
> > > recommend a solution.   I really want to use Apache and Tomcat together,
> > but

RE: Virtual Hosts

2003-01-23 Thread Turner, John

Sorry, I would love to try and help, but I don't use JK2, so anything I
suggested would be a wild guess and more likely to waste your time then
solve anything.  Not doubting you, but I would be very surprised if this was
a problem/bug with Tomcat...I am sure there are people out there with
working multi-Host/multi-Context configurations.  I know my 4.1.18 test
server (Solaris) has two Hosts configured with 2 hosts in each, but that
uses JK.

Have you looked in bugzilla to see if anyone else has reported this?

John


-Original Message-
From: Tom Holmes Jr. [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 23, 2003 9:36 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Virtual Hosts


Hi Chris, I am afraid we have two seperate issues.  It seems like I solved
your issues a few days ago and have a few new ones to work out.  If you need
any more help, send me a message directly and I will see how I can help.
However, it seems so far that the answers you have already got will work.

My issue is a little different, I have 3 virtual hosts and 3 different
web-apps defined under httpd.conf, and I have 3 different  and
 tags in server.xml.  The JSP pages ONLY work with the last web-app
defined.  What I mean by 'works' is that the JSP pages get compiled into
servlets, and then get served correctly by performing the business logic.

Any other web-apps defined in the httpd.conf file do not work.  What I mean
by they 'do not work' is that the JSP pages do not get compiled into
servlets, and do not execuet the business logic.  Instead the JSP code shows
up clear as day as if you were opening a text file.  This is a major
security problem, and I thought it was fixed.

I've posted this issue at least on 3 different occasions now with no answers
from anyone.  It could be because this issue only happens on a Windows
platform?   I guess my next step is to test out this problem on Red Hat 8.0
Linux.   If I can duplicate the same problem on that platform, I bet it will
expedite a fix.  Of course, if this isn't a bug in Tomcat, then I'd expect
someone would point out that my configuration is wrong ... but that hasn't
happened yet.

Thanks.

  Tom


- Original Message -
From: "Chris Schild" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 7:12 PM
Subject: Re: Virtual Hosts


> Does any know what would cause this message:
> Directory index forbidden by rule: C:\apache\qv
>
>
> This is when I go the url http://mydomain.com/examples 
> http://mydomain.com/examples/jsp/index.html works just fine
>
>
> I'm having the same problem.  In the log files 
> apache2/logs/COM_error_log
I
> get a:  Directory index forbidden by rule:   Is there a definition 
> in http.conf that I need to alter???
>
> - Original Message -
> From: "John Ruffin" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Thursday, January 23, 2003 2:42 PM
> Subject: RE: Virtual Hosts
>
>
> > I'm having a similar issue.  I'm running tc4.1.18 on w2k server. 
> > http://localhost/examples works but http://mysite.com/examples 
> > doesn't.
I
> > searched the archives and found some information on creating a host 
> > file with the FQDN as the name but that didn't seem to work.  Is 
> > there
> something
> > else I need to change?  Do I need to configure my firewall || router 
> > to
> let
> > additional ports through?  Right now, port:80 (http) serves static
content
> > with no problem.
> >
> > I'm new - thanks for your help.
> >
> > -Original Message-
> > From: Chris Schild [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 23, 2003 1:16 PM
> > To: Tomcat Users List
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: Virtual Hosts
> >
> >
> > Tom,
> > I could possibly use some of the information.  I am running on the 
> > same
> > releases: Apache 2.0.43, Tomcat 4.1.18 & win2k.
> > My problem is that I can't get to the directory of my virtualHosts.
> >
> > e.g. http://localhost/examples is not a problem BUT 
> > http://mysite.com/examples will not work.  I just noticed an err in 
> > the
> log
> > saying -
> > Directory index forbidden by rule: 
> > C:/Apache/Tomcat4.1/path/to/examples
> >
> > Can't find where to make my edits so the directory can be seen.
> >
> > Maybe this is a related issue?  Either way if you know how to 
> > configure
> the
> > systems so that the directory will be shown, I would much 
> > appreciated
it!
> >
> > - Original Message ---

Re: Virtual Hosts

2003-01-23 Thread Tom Holmes Jr.
John, don't worry about it.

I got a couple of people who have a similiar configuration (Apache 2.0.43,
Tomcat 4.1.18, and Win2k) with the same setup looking into my configuration
files.   If they can have multiple virtual hosts with multiple contexts
working, then it must be something with my configuration.

With open source projects the later versions are usually more stable, but
the old idiom 'new systems generate new problems' also applies as well.
I'll just keep working on this and waiting for these projects to become more
stable.

Thanks.

- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 10:44 PM
Subject: RE: Virtual Hosts


>
> Sorry, I would love to try and help, but I don't use JK2, so anything I
> suggested would be a wild guess and more likely to waste your time then
> solve anything.  Not doubting you, but I would be very surprised if this
was
> a problem/bug with Tomcat...I am sure there are people out there with
> working multi-Host/multi-Context configurations.  I know my 4.1.18 test
> server (Solaris) has two Hosts configured with 2 hosts in each, but that
> uses JK.
>
> Have you looked in bugzilla to see if anyone else has reported this?
>
> John
>
>
> -Original Message-
> From: Tom Holmes Jr. [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 9:36 PM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: Re: Virtual Hosts
>
>
> Hi Chris, I am afraid we have two seperate issues.  It seems like I solved
> your issues a few days ago and have a few new ones to work out.  If you
need
> any more help, send me a message directly and I will see how I can help.
> However, it seems so far that the answers you have already got will work.
>
> My issue is a little different, I have 3 virtual hosts and 3 different
> web-apps defined under httpd.conf, and I have 3 different  and
>  tags in server.xml.  The JSP pages ONLY work with the last
web-app
> defined.  What I mean by 'works' is that the JSP pages get compiled into
> servlets, and then get served correctly by performing the business logic.
>
> Any other web-apps defined in the httpd.conf file do not work.  What I
mean
> by they 'do not work' is that the JSP pages do not get compiled into
> servlets, and do not execuet the business logic.  Instead the JSP code
shows
> up clear as day as if you were opening a text file.  This is a major
> security problem, and I thought it was fixed.
>
> I've posted this issue at least on 3 different occasions now with no
answers
> from anyone.  It could be because this issue only happens on a Windows
> platform?   I guess my next step is to test out this problem on Red Hat
8.0
> Linux.   If I can duplicate the same problem on that platform, I bet it
will
> expedite a fix.  Of course, if this isn't a bug in Tomcat, then I'd expect
> someone would point out that my configuration is wrong ... but that hasn't
> happened yet.
>
> Thanks.
>
>   Tom
>
>
> - Original Message -
> From: "Chris Schild" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, January 23, 2003 7:12 PM
> Subject: Re: Virtual Hosts
>
>
> > Does any know what would cause this message:
> > Directory index forbidden by rule: C:\apache\qv
> >
> >
> > This is when I go the url http://mydomain.com/examples
> > http://mydomain.com/examples/jsp/index.html works just fine
> >
> >
> > I'm having the same problem.  In the log files
> > apache2/logs/COM_error_log
> I
> > get a:  Directory index forbidden by rule:   Is there a definition
> > in http.conf that I need to alter???
> >
> > - Original Message -
> > From: "John Ruffin" <[EMAIL PROTECTED]>
> > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > Sent: Thursday, January 23, 2003 2:42 PM
> > Subject: RE: Virtual Hosts
> >
> >
> > > I'm having a similar issue.  I'm running tc4.1.18 on w2k server.
> > > http://localhost/examples works but http://mysite.com/examples
> > > doesn't.
> I
> > > searched the archives and found some information on creating a host
> > > file with the FQDN as the name but that didn't seem to work.  Is
> > > there
> > something
> > > else I need to change?  Do I need to configure my firewall || router
> > > to
> > let
> > > additional ports through?  Right now, port:80 (http) serves static
> content
&

RE: Virtual Hosts

2003-01-24 Thread Robert L Sowders
Try this from Umberto,

It may shed some light.

rls






"Turner, John" <[EMAIL PROTECTED]>
01/23/2003 07:44 PM
Please respond to "Tomcat Users List"

 
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
    cc: 
Subject:RE: Virtual Hosts



Sorry, I would love to try and help, but I don't use JK2, so anything I
suggested would be a wild guess and more likely to waste your time then
solve anything.  Not doubting you, but I would be very surprised if this 
was
a problem/bug with Tomcat...I am sure there are people out there with
working multi-Host/multi-Context configurations.  I know my 4.1.18 test
server (Solaris) has two Hosts configured with 2 hosts in each, but that
uses JK.

Have you looked in bugzilla to see if anyone else has reported this?

John


-Original Message-
From: Tom Holmes Jr. [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 23, 2003 9:36 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Virtual Hosts


Hi Chris, I am afraid we have two seperate issues.  It seems like I solved
your issues a few days ago and have a few new ones to work out.  If you 
need
any more help, send me a message directly and I will see how I can help.
However, it seems so far that the answers you have already got will work.

My issue is a little different, I have 3 virtual hosts and 3 different
web-apps defined under httpd.conf, and I have 3 different  and
 tags in server.xml.  The JSP pages ONLY work with the last 
web-app
defined.  What I mean by 'works' is that the JSP pages get compiled into
servlets, and then get served correctly by performing the business logic.

Any other web-apps defined in the httpd.conf file do not work.  What I 
mean
by they 'do not work' is that the JSP pages do not get compiled into
servlets, and do not execuet the business logic.  Instead the JSP code 
shows
up clear as day as if you were opening a text file.  This is a major
security problem, and I thought it was fixed.

I've posted this issue at least on 3 different occasions now with no 
answers
from anyone.  It could be because this issue only happens on a Windows
platform?   I guess my next step is to test out this problem on Red Hat 
8.0
Linux.   If I can duplicate the same problem on that platform, I bet it 
will
expedite a fix.  Of course, if this isn't a bug in Tomcat, then I'd expect
someone would point out that my configuration is wrong ... but that hasn't
happened yet.

Thanks.

  Tom


- Original Message -
From: "Chris Schild" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 7:12 PM
Subject: Re: Virtual Hosts


> Does any know what would cause this message:
> Directory index forbidden by rule: C:\apache\qv
>
>
> This is when I go the url http://mydomain.com/examples 
> http://mydomain.com/examples/jsp/index.html works just fine
>
>
> I'm having the same problem.  In the log files 
> apache2/logs/COM_error_log
I
> get a:  Directory index forbidden by rule:   Is there a definition 
> in http.conf that I need to alter???
>
> - Original Message -
> From: "John Ruffin" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Thursday, January 23, 2003 2:42 PM
> Subject: RE: Virtual Hosts
>
>
> > I'm having a similar issue.  I'm running tc4.1.18 on w2k server. 
> > http://localhost/examples works but http://mysite.com/examples 
> > doesn't.
I
> > searched the archives and found some information on creating a host 
> > file with the FQDN as the name but that didn't seem to work.  Is 
> > there
> something
> > else I need to change?  Do I need to configure my firewall || router 
> > to
> let
> > additional ports through?  Right now, port:80 (http) serves static
content
> > with no problem.
> >
> > I'm new - thanks for your help.
> >
> > -Original Message-
> > From: Chris Schild [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 23, 2003 1:16 PM
> > To: Tomcat Users List
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: Virtual Hosts
> >
> >
> > Tom,
> > I could possibly use some of the information.  I am running on the 
> > same
> > releases: Apache 2.0.43, Tomcat 4.1.18 & win2k.
> > My problem is that I can't get to the directory of my virtualHosts.
> >
> > e.g. http://localhost/examples is not a problem BUT 
> > http://mysite.com/examples will not work.  I just noticed an err in 
> > the
> log
> > saying -
> > Directory index forbidden by rule: 
> > C:/Apache/Tomcat4.1/path/to/examples
> >
> > Can&

Re: virtual hosts

2003-12-15 Thread Andoni
Hello,

Try this:
Back up server.xml,
Delete all sections that are commented out,
change all tags to be on a single line.
Indent the file properly.
Remove the examples context.

Then comment the file by looking through the Docs.

IMPORTANT: You need to have each host serving from a different directory on
your system. I would recommend having

/webapps//
/webapps//

Etc.

Do not leave any apps/paths/wars at a higher level than any others.

Regards,
Andoni.


- Original Message -
From: "29djeo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 14, 2003 11:14 PM
Subject: virtual hosts


> I followed the directions for setting up tomcat for virutal hosts:
>
> I added the following to server.xml
>
>   
> www.domain1.com
>    directory="logs" prefix="domain1."
suffix=".log" timestamp="true"/>
> 
> 
>   
>
> I also removed the default Host name reference to "localhost".
>
> When I go to http://www.domain1.com I see a blank page and not the
deployed application domain1.  There are also numerous references to
"localhost" in server.xml do these need to be modified to support
multiple domains?
>


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



RE: Virtual hosts

2005-04-25 Thread Fritz Schneider
Dola,

The simplest way is to have a welcome page such as index.html that redirects
the request. It would look like this:



http://www.mysite.com/myapp";>
Redirect to Myapp




Fritz

-Original Message-
From: Dola Woolfe [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 25, 2005 2:31 PM
To: Tom Cat
Subject: Virtual hosts

Hi,

Running TC5.5 as a stand-alone.
I've been reading about the HOST element, and i see
that it can make mysite.com and www.mysite.com go to
the same place. I apologize if I put it in a
simplistic way.

But can it make "www.mysite.com" be forwarded to
"www.mysite.com/myapp"?

Many thanks in advance!

Dola



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

-
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]



Re: Virtual hosts

2005-04-26 Thread Pete Stevens
On Mon, 25 Apr 2005, Dola Woolfe wrote:

> Hi,
>
> Running TC5.5 as a stand-alone.
> I've been reading about the HOST element, and i see
> that it can make mysite.com and www.mysite.com go to
> the same place. I apologize if I put it in a
> simplistic way.

Here's a simple guide to virtual hosts & aliases for the simplest environment
where Tomcat serves all traffic

http://www.ex-parrot.com/~pete/tomcat-vhost.html

Yours,

Pete Stevens

--
Pete Stevens
[EMAIL PROTECTED]
http://www.ex-parrot.com/~pete/

 "Many religions have a belief that if you do not belong to that religion, you
   will go to hell. The number of these religions is greater than one, and, as
someone cannot belong to more than one religion, all souls go to hell."

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



RE: Virtual Hosts

2005-09-15 Thread Allistair Crossley
Simplistically ...

Configure Host elements inside your Engine. Create a folder for each 
application within webapps. Set the Host docBase to each. 

Check out the online ref.

> -Original Message-
> From: Durfee, Bernard [mailto:[EMAIL PROTECTED]
> Sent: 15 September 2005 17:07
> To: tomcat-user@jakarta.apache.org
> Subject: Virtual Hosts
> 
> 
> I am having trouble configuring virtual hosts in Tomcat 5.5.9. I have
> two applications app01 and app02. I have 2 DNS entries
> app01.myserver.com and app02.myserver.com that both point to 
> the machine
> on which Tomcat is running. How do I configure Tomcat to serve from
> app01.war when app01.myserver.com is hit and app02.war when
> app02.myserver.com is hit.
> 
> Thanks,
> Bernie
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
  
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.



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



RE: Virtual Hosts

2005-09-15 Thread Durfee, Bernard
Okay, so I created two  elements in my server.xml...

  

  

...but how do I tell Tomcat which context to process? There will be no
context correct? Do I need a separate appBase directory for each 
element?

Thanks,
Bernie



> -Original Message-
> From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 15, 2005 12:10 PM
> To: Tomcat Users List
> Subject: RE: Virtual Hosts
> 
> 
> Simplistically ...
> 
> Configure Host elements inside your Engine. Create a folder 
> for each application within webapps. Set the Host docBase to each. 
> 
> Check out the online ref.
> 
> > -Original Message-
> > From: Durfee, Bernard [mailto:[EMAIL PROTECTED]
> > Sent: 15 September 2005 17:07
> > To: tomcat-user@jakarta.apache.org
> > Subject: Virtual Hosts
> > 
> > 
> > I am having trouble configuring virtual hosts in Tomcat 
> 5.5.9. I have 
> > two applications app01 and app02. I have 2 DNS entries 
> > app01.myserver.com and app02.myserver.com that both point to the 
> > machine on which Tomcat is running. How do I configure 
> Tomcat to serve 
> > from app01.war when app01.myserver.com is hit and app02.war when
> > app02.myserver.com is hit.
> > 
> > Thanks,
> > Bernie
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
>  
> ---
> QAS Ltd.
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> ---
>   
> Disclaimer:  The information contained within this e-mail is 
> confidential and may be privileged. This email is intended 
> solely for the named recipient only; if you are not 
> authorised you must not disclose, copy, distribute, or retain 
> this message or any part of it. If you have received this 
> message in error please contact the sender at once so that we 
> may take the appropriate action and avoid troubling you 
> further.  Any views expressed in this message are those of 
> the individual sender.  QAS Limited has the right lawfully to 
> record, monitor and inspect messages between its employees 
> and any third party.  Your messages shall be subject to such 
> lawful supervision as QAS Limited deems to be necessary in 
> order to protect its information, its interests and its reputation.  
> 
> Whilst all efforts are made to safeguard Inbound and Outbound 
> emails, QAS Limited cannot guarantee that attachments are 
> virus free or compatible with your systems and does not 
> accept any liability in respect of viruses or computer 
> problems experienced. 
> 
> 
> -
> 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]



Re: Virtual Hosts

2005-09-15 Thread Steve Dodge
You probably want to change the appBase. You can control the contexts by 
creating a context snippet in conf/[Engine name]/[Host name]  or add it 
to META-INF/context.xml in each war.


Hope that helps,
Steve

Durfee, Bernard wrote:


Okay, so I created two  elements in my server.xml...

 

 

...but how do I tell Tomcat which context to process? There will be no
context correct? Do I need a separate appBase directory for each 
element?

Thanks,
Bernie



 


-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 15, 2005 12:10 PM

To: Tomcat Users List
Subject: RE: Virtual Hosts


Simplistically ...

Configure Host elements inside your Engine. Create a folder 
for each application within webapps. Set the Host docBase to each. 


Check out the online ref.

   


-Original Message-
From: Durfee, Bernard [mailto:[EMAIL PROTECTED]
Sent: 15 September 2005 17:07
To: tomcat-user@jakarta.apache.org
Subject: Virtual Hosts


I am having trouble configuring virtual hosts in Tomcat 
 

5.5.9. I have 
   

two applications app01 and app02. I have 2 DNS entries 
app01.myserver.com and app02.myserver.com that both point to the 
machine on which Tomcat is running. How do I configure 
 

Tomcat to serve 
   


from app01.war when app01.myserver.com is hit and app02.war when
app02.myserver.com is hit.

Thanks,
Bernie



 


-
   


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


 

 
---

QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
  
Disclaimer:  The information contained within this e-mail is 
confidential and may be privileged. This email is intended 
solely for the named recipient only; if you are not 
authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this 
message in error please contact the sender at once so that we 
may take the appropriate action and avoid troubling you 
further.  Any views expressed in this message are those of 
the individual sender.  QAS Limited has the right lawfully to 
record, monitor and inspect messages between its employees 
and any third party.  Your messages shall be subject to such 
lawful supervision as QAS Limited deems to be necessary in 
order to protect its information, its interests and its reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound 
emails, QAS Limited cannot guarantee that attachments are 
virus free or compatible with your systems and does not 
accept any liability in respect of viruses or computer 
problems experienced. 



-
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]



Re: Virtual Hosts

2005-09-16 Thread Mahesh S Kudva
This setup has been tested on Apache2+JBoss+mod_jk-1.2.14_for MacOSX. And 
am sure it will work on other platforms as well. This setup also handles 
Apache related webapps..

Make the required entries in the DNS

webapp.war: Extract the war file using zip and rename the folder 
with .war extension. Please put it in your deployment folder.

mod-jk.so: Obtain the modjk.so library file from www.apache.org and place 
then in the modules folder.

Apache-Virtual Host config
--
NameVirtualHost *.*.*.*:80


ServerName webapp.domainname.com
ServerAlias www.webapp.domainname.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /Volumes/Extra/jboss/server/default/deploy/webapp.war
JkMount /* loadbalancer
DirectoryIndex index.html index.jsp
ErrorLog logs/webapp-error_log
CustomLog logs/webapp-access_log common

-
mod-jk.conf

LoadModule jk_module /opt/apache2/modules/mod_jk.so

JkWorkersFile /opt/apache2/conf/workers.properties
JkLogFile /opt/apache2/logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
JkMount /webapp.domain.com/*.jsp loadbalancer
JkMountFile /opt/apache2/conf/uriworkermap.properties
JkShmFile /opt/apache2/logs/jk.shm

JkMount status
Allow from 127.0.0.1
Deny from All


--
Server.xml
-


www.webapp.domain.com




--
--
uriworkermap.properties

/jmx-console=loadbalancer
/jmx-console/*=loadbalancer
/web-console=loadbalancer
/web-console/*=loadbalancer
/webapp.domain.com/*.jsp 

--
--
workers.properties


worker.list=loadbalancer,status

worker.webapp.port=8009
worker.webapp.host=webapp.domain.com
worker.webapp.type=ajp13
worker.webapp.lbfactor=1
worker.webapp.cachesize=10

worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=library
worker.loadbalancer.sticky_session=1
worker.loadbalancer.local_worker_only=1
worker.list=loadbalancer

worker.status.type=status

_

Regards & Thanks

Mahesh S Kudva


-Original Message-
From: Steve Dodge <[EMAIL PROTECTED]>
To: Tomcat Users List 
Date: Thu, 15 Sep 2005 15:57:04 -0500
Subject: Re: Virtual Hosts

> You probably want to change the appBase. You can control the contexts
> by 
> creating a context snippet in conf/[Engine name]/[Host name]  or add it
> to META-INF/context.xml in each war.
> 
> Hope that helps,
> Steve
> 
> Durfee, Bernard wrote:
> 
> >Okay, so I created two  elements in my server.xml...
> >
> >   >appBase="webapps"
> >autoDeploy="true"
> >deployOnStartup="true"
> >deployXML="true"
> >unpackWARs="true"
> >xmlValidation="false"
> >xmlNamespaceAware="false" />
> >
> >   >appBase="webapps"
> >autoDeploy="true"
> >deployOnStartup="true"
> >deployXML="true"
> >unpackWARs="true"
> >xmlValidation="false"
> >xmlNamespaceAware="false" />
> >
> >...but how do I tell Tomcat which context to process? There will be no
> >context correct? Do I need a separate appBase directory for each
> 
> >element?
> >
> >Thanks,
> >Bernie
> >
> >
> >
> >  
> >
> >>-Original Message-
> >>From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
> >>Sent: Thursday, September 15, 2005 12:10 PM
> >>To: Tomcat Users List
> >>Subject: RE: Virtual Hosts
> >>
> >>
> >>Simplistically ...
> >>
> >>Configure Host elements inside your Engine. Create a folder 
> >>for each application within webapps. Set the Host docBase to each. 
> >>
> >>Check out the online ref.
> >>
> >>
> >>
> >>>-Original Message-
> >>>From: Durfee, Bernard [mailto:[EMAIL PROTECTED]
> >>>Sent: 15 September 2005 17:07
> >>>To: tomcat-user@jakarta.apache.org
> >>>Subject: Virtual Hosts
> >>>
> >>>
> >>>I am having trouble configuring virtual hosts in Tomcat 
> >>>  
&g

Re: Virtual Hosts

2005-09-16 Thread Tom Burke
I, too, am having problems configuring virtual hosts, in a Tomcat 5.0.28 
server, with no Apache, on a Windows XP machine. I've studied the 
documentation and am puzzled by one area in particular: the definition 
of 'appBase'. For example, in the text below you suggest putting this in 
the  section within server.xml:


appBase="deploy"

In a Windows environment, what is "deploy"? Is it a directory within the 
tomcat installation? If so, where? I can't see where this location is 
defined, it just seems to be mentioned in server.xml, in other examples 
as well as this one. Obviously there's something I'm not 
understanding...


Tom Burke


- Original Message - 
From: "Mahesh S Kudva" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Friday, September 16, 2005 2:00 PM
Subject: Re: Virtual Hosts


This setup has been tested on Apache2+JBoss+mod_jk-1.2.14_for MacOSX. 
And
am sure it will work on other platforms as well. This setup also 
handles

Apache related webapps..

Make the required entries in the DNS

webapp.war: Extract the war file using zip and rename the folder
with .war extension. Please put it in your deployment folder.

mod-jk.so: Obtain the modjk.so library file from www.apache.org and 
place

then in the modules folder.

Apache-Virtual Host config
--
NameVirtualHost *.*.*.*:80


   ServerName webapp.domainname.com
   ServerAlias www.webapp.domainname.com
   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot /Volumes/Extra/jboss/server/default/deploy/webapp.war
   JkMount /* loadbalancer
   DirectoryIndex index.html index.jsp
   ErrorLog logs/webapp-error_log
   CustomLog logs/webapp-access_log common

-
mod-jk.conf

LoadModule jk_module /opt/apache2/modules/mod_jk.so

JkWorkersFile /opt/apache2/conf/workers.properties
JkLogFile /opt/apache2/logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
JkMount /webapp.domain.com/*.jsp loadbalancer
JkMountFile /opt/apache2/conf/uriworkermap.properties
JkShmFile /opt/apache2/logs/jk.shm

JkMount status
Allow from 127.0.0.1
   Deny from All


--
Server.xml
-


www.webapp.domain.com




--
--
uriworkermap.properties

/jmx-console=loadbalancer
/jmx-console/*=loadbalancer
/web-console=loadbalancer
/web-console/*=loadbalancer
/webapp.domain.com/*.jsp

--
--
workers.properties


worker.list=loadbalancer,status

worker.webapp.port=8009
worker.webapp.host=webapp.domain.com
worker.webapp.type=ajp13
worker.webapp.lbfactor=1
worker.webapp.cachesize=10

worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=library
worker.loadbalancer.sticky_session=1
worker.loadbalancer.local_worker_only=1
worker.list=loadbalancer

worker.status.type=status

_

Regards & Thanks

Mahesh S Kudva


-Original Message-
From: Steve Dodge <[EMAIL PROTECTED]>
To: Tomcat Users List 
Date: Thu, 15 Sep 2005 15:57:04 -0500
Subject: Re: Virtual Hosts


You probably want to change the appBase. You can control the contexts
by
creating a context snippet in conf/[Engine name]/[Host name]  or add 
it

to META-INF/context.xml in each war.

Hope that helps,
Steve

Durfee, Bernard wrote:

>Okay, so I created two  elements in my server.xml...
>
>  appBase="webapps"
>autoDeploy="true"
>deployOnStartup="true"
>deployXML="true"
>unpackWARs="true"
>xmlValidation="false"
>xmlNamespaceAware="false" />
>
>  appBase="webapps"
>autoDeploy="true"
>deployOnStartup="true"
>deployXML="true"
>unpackWARs="true"
>xmlValidation="false"
>xmlNamespaceAware="false" />
>
>...but how do I tell Tomcat which context to process? There will be 
>no

>context correct? Do I need a separate appBase directory for each

>element?
>
>Thanks,
>Bernie
>
>
>
>
>
>>-Original Message-
>>From: Allistair Crossley [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, September 15, 2005 12:10 PM
>>To: Tomcat Users List
>>Subject: RE: Virtual Hosts
>>
>>
>>Simplistically ...
>>
>>Configure Host elements inside your Engine. Create a folder
>>for

Re: Virtual Hosts

2005-09-16 Thread Tom Burke

Mahesh

Thanks for your help.

I think something I don't understand is: what's its root of the virtual 
server's appbase?


I have tomcat (5.0.28) installed in "c:\Tomcat 5.0", with the usual set 
of directories

within that - bin, common, conf, logs, server, shared, temp, webapps,
work. I don't have a development environment at all. I have applications
installed within webapps, using the defaulthost (localhost) and they
work fine. Here's a sample of my server.xml:



 
   

 

 
   
   
 

 
 
   

I've created a directory within webapps called 'some_host' and within
that is a simple jsp, a 'welcome' script. I know that the server, and an 
external PC, know (from use of Hosts files) that some_host.com is mapped 
to the server's IP address, and I can successfully ping that address. 
But I'm not getting the jsp to run! - I just get a 'page unavailable' 
response. There are no errors in the startup log so I think it must be 
that Tomcat doesn't know where to look for the welcome.jsp, which 
suggests that specifying appbase = "webapps/some_host" isn't working.


Tom


- Original Message - 
From: "Mahesh S Kudva" <[EMAIL PROTECTED]>

To: <[EMAIL PROTECTED]>
Sent: Friday, September 16, 2005 3:18 PM
Subject: RE: Virtual Hosts



Hi Tom

"deploy" is a directory in any platform you are running Tomcat until
unless specified. You need to create the directory if not found.
Generally it can be found at /jboss/server/default/deploy

Regards & Thanks

Mahesh S Kudva


---
Robosoft Technologies - Partners in Product Development





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



RE: Virtual Hosts Question

2002-07-10 Thread Turner, John


You can put the mount directives for both mod_jserv and mod_jk into apache's
VirtualHost containers...their shouldn't be any need to put them on
different ports.  Something like this:


AppJServMount /someURL ajpv12://someURL:someTomcat_3.2.1_Port/someURL



JkMount /someURL ajp13


Or is that what isn't working for you?

John Turner
[EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 10:27 AM
To: [EMAIL PROTECTED]
Subject: Virtual Hosts Question


Hi,

I'm trying to run 2 different versions of Tomcat (3.2.1 and 4.0.3) through
1 Apache (1.3.26).  I haven't had much luck running the two modules
ApacheModuleJServ and Mod_jk together through Apache with Include
statements, actually I'm not even sure if it's possible...?


Now I'm going to try setting up a Virtual server on 8080, I'm thinking that
the main server on 80 will handle one include statement for Tomcat3.2.1 and
the Virtual server on 8080 will handle the include statement for
Tomcat4.0.3...Does anyone know if this is possible?

Thanks for any feedback or any other possible alternatives to setting up 2
Tomcat Versions on 1 Apache.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Virtual Hosts Question

2002-07-10 Thread Mark_DiBattista


I was actually trying to do this.


ServerAdmin [EMAIL PROTECTED]
DocumentRoot "F:/apache1.3.26/Apache/htdocs/manual"
ServerName lindos.mapinfo.com
ErrorLog logs/error8080.log
CustomLog logs/access8080.log common
Include "F:/tomcat4.0.3/conf/apache_mod_jk.conf"


The wanted them on different ports because the "site name" is going to be
the same for all my applications, and they're going to be running behind a
load balancing box, that will hide the ports.

What do you think about running two separate version of Apache, one for the
3.2.1 stuff and one for the 4.0.3 stuff?

Is it possible to set up two on the same machine, I've never attempted it
before.

Thanks for your help.


   
   
"Turner, John" 
   
<[EMAIL PROTECTED]   To: "'Tomcat Users List'" 
<[EMAIL PROTECTED]>   
om>  cc:   
           
 Subject: RE: Virtual Hosts Question   
   
07/10/2002 
   
10:33 AM   
   
Please respond 
   
to "Tomcat 
   
Users List"
   
   
   
   
   





You can put the mount directives for both mod_jserv and mod_jk into
apache's
VirtualHost containers...their shouldn't be any need to put them on
different ports.  Something like this:


AppJServMount /someURL ajpv12://someURL:someTomcat_3.2.1_Port/someURL



JkMount /someURL ajp13


Or is that what isn't working for you?

John Turner
[EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 10:27 AM
To: [EMAIL PROTECTED]
Subject: Virtual Hosts Question


Hi,

I'm trying to run 2 different versions of Tomcat (3.2.1 and 4.0.3) through
1 Apache (1.3.26).  I haven't had much luck running the two modules
ApacheModuleJServ and Mod_jk together through Apache with Include
statements, actually I'm not even sure if it's possible...?


Now I'm going to try setting up a Virtual server on 8080, I'm thinking that
the main server on 80 will handle one include statement for Tomcat3.2.1 and
the Virtual server on 8080 will handle the include statement for
Tomcat4.0.3...Does anyone know if this is possible?

Thanks for any feedback or any other possible alternatives to setting up 2
Tomcat Versions on 1 Apache.


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

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






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




RE: Virtual Hosts Question

2002-07-10 Thread Turner, John


As Ralph pointed out, that may be the preferred way to go.  Two instances of
Apache is no problem, you just have to make sure the various parameters are
separate (port, logs, etc).

John Turner
[EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 10:43 AM
To: Tomcat Users List
Subject: RE: Virtual Hosts Question



I was actually trying to do this.


ServerAdmin [EMAIL PROTECTED]
DocumentRoot "F:/apache1.3.26/Apache/htdocs/manual"
ServerName lindos.mapinfo.com
ErrorLog logs/error8080.log
CustomLog logs/access8080.log common
Include "F:/tomcat4.0.3/conf/apache_mod_jk.conf"


The wanted them on different ports because the "site name" is going to be
the same for all my applications, and they're going to be running behind a
load balancing box, that will hide the ports.

What do you think about running two separate version of Apache, one for the
3.2.1 stuff and one for the 4.0.3 stuff?

Is it possible to set up two on the same machine, I've never attempted it
before.

Thanks for your help.


 

"Turner, John"

<[EMAIL PROTECTED]   To: "'Tomcat Users List'"
<[EMAIL PROTECTED]>   
om>      cc:

 Subject: RE: Virtual Hosts
Question  
07/10/2002

10:33 AM

Please respond

to "Tomcat

Users List"

 

 






You can put the mount directives for both mod_jserv and mod_jk into
apache's
VirtualHost containers...their shouldn't be any need to put them on
different ports.  Something like this:


AppJServMount /someURL ajpv12://someURL:someTomcat_3.2.1_Port/someURL



JkMount /someURL ajp13


Or is that what isn't working for you?

John Turner
[EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 10:27 AM
To: [EMAIL PROTECTED]
Subject: Virtual Hosts Question


Hi,

I'm trying to run 2 different versions of Tomcat (3.2.1 and 4.0.3) through
1 Apache (1.3.26).  I haven't had much luck running the two modules
ApacheModuleJServ and Mod_jk together through Apache with Include
statements, actually I'm not even sure if it's possible...?


Now I'm going to try setting up a Virtual server on 8080, I'm thinking that
the main server on 80 will handle one include statement for Tomcat3.2.1 and
the Virtual server on 8080 will handle the include statement for
Tomcat4.0.3...Does anyone know if this is possible?

Thanks for any feedback or any other possible alternatives to setting up 2
Tomcat Versions on 1 Apache.


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

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






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

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




RE: Virtual Hosts Question

2002-07-10 Thread Mark_DiBattista


Ahh, that looks like what I may have to do.  Thank you both for your help.

Since I've got your attention, I've just got one more question.  The reason
I'm setting up two different versions of Tomcat on my machines, wasn't by
choice.  We were actually running everything on Tomcat3.2.1 and it was
working fine.  But in order to stay current, we as a group decided to
upgrade to Tomcat4.0.3 and Apache 1.3.26.  All of our apps made the switch
no problem, except for two of them.  For some reason the JSP's would load.
The applications setup was exactly the same as what we did with 3.2.1 but
for some reason the JSP's wouldn't load with 4.0.3, and no errors were
being thrown in the error logs.  I tried again with another copy of 4.0.3
and tried with 4.0.1 and still the same results.

Have you guys ever heard of such a thing?  One of the pages that didn't
load, this was all we had on the JSP


View/Edit Records
<%@ include file="include/login.jsp" %>



<% request.getRequestDispatcher("servlet/dataedit?" +
com.mapinfo.jsptags.TagBean.PARAMETER_KEY_NAME + "=" +
com.mapinfo.dataedit.DownloadOracleTableBean.PARAMETER_KEY).include(request,

response); %>




Thanks again.
Mark




   
   
"Turner, John" 
   
<[EMAIL PROTECTED]   To: "'Tomcat Users List'" 
<[EMAIL PROTECTED]>   
om>  cc:           
   
 Subject: RE: Virtual Hosts Question   
   
07/10/2002 
   
10:46 AM   
   
Please respond 
   
to "Tomcat 
   
Users List"
   
   
   
   
   





As Ralph pointed out, that may be the preferred way to go.  Two instances
of
Apache is no problem, you just have to make sure the various parameters are
separate (port, logs, etc).

John Turner
[EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 10:43 AM
To: Tomcat Users List
Subject: RE: Virtual Hosts Question



I was actually trying to do this.


ServerAdmin [EMAIL PROTECTED]
DocumentRoot "F:/apache1.3.26/Apache/htdocs/manual"
ServerName lindos.mapinfo.com
ErrorLog logs/error8080.log
CustomLog logs/access8080.log common
Include "F:/tomcat4.0.3/conf/apache_mod_jk.conf"


The wanted them on different ports because the "site name" is going to be
the same for all my applications, and they're going to be running behind a
load balancing box, that will hide the ports.

What do you think about running two separate version of Apache, one for the
3.2.1 stuff and one for the 4.0.3 stuff?

Is it possible to set up two on the same machine, I've never attempted it
before.

Thanks for your help.




"Turner, John"

        <[EMAIL PROTECTED]   To: "'Tomcat Users List'"
<[EMAIL PROTECTED]>
om>  cc:

 Subject: RE: Virtual Hosts
Question
07/10/2002

10:33 AM

Please respond

to "Tomcat

Users List"










You can put the mount directives for both mod_jserv and mod_jk into
apache's
VirtualHost containers...their shouldn't be any need to put them on
different ports.  Something like this:


AppJServMount /someURL ajpv12://someURL:someTomcat_3.2.1_Port/someURL



JkMount /someURL ajp13


Or is that what isn't worki

RE: virtual hosts/certificates

2002-03-01 Thread Anton Brazhnyk

Hi,

> -Original Message-
> From: Bernhard Wraase [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 28, 2002 6:59 PM
> To: [EMAIL PROTECTED]
> Subject: virtual hosts/certificates
> 
> 
> Hello,
> 
> is it possible to use several certificates in one tomcat?
> I would like to configure a different cert for each virtual host.
> I.e.:
> cert A for virtual host 1
> cert B for virtual host 2
> cert C for virtual host 3
> As far as I understand the docs it is not possible.
> 
> Does anybody know a trick?

IMHO it isn't possible on SSL (TLS) specification layer.
AFAIK SSL protects connections on host basis.
You can do tricks only if your virtual hosts are real hosts with
different IPs.

> -- 
> Regards Bernhard
> 

Anton

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: virtual hosts | more

2003-01-03 Thread Turner, John

The default server.xml already has one.  In the default server.xml,
"localhost" is a virtual host.  Basically, all  elements in server.xml
are virtual hosts.

If you post back with an error message or what's happening, maybe someone
can help.

John


-Original Message-
From: Adrian [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 03, 2003 7:47 PM
To: Tomcat Users List
Subject: virtual hosts | more


Anybody got a server.xml example with virtual hosts for tomcat 4.1.xx ? I`m
missing something. 

Adrian



--
To unsubscribe, e-mail:

For additional commands, e-mail:


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: virtual hosts and apache

2002-09-05 Thread Branko Kannenberg

Hi there !

Which connectro are you using? If it's mod_jk, you can use the autoconf 
feature, so you don't have to worry about the virtual host configuration in 
httpd.conf.

Just add

Include /conf/auto/mod_jk.conf

to httpd.conf and something like

  

to the "Server" section of your server.xml file and something like

 

to the "Host" section of your server.xml file

You probably have to adjust the parameters for the "Listener" directive, for a 
description of the parameters have a look at

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html

It's for tomcat 3.3, but I am using 4.0.4 and it's still useful.

Now, everytime you start tomcat, the file
/conf/auto/mod_jk.conf
will be created and includes the neccessary configuration for apache

Ciao,   Branko.




Am Donnerstag, 5. September 2002 08:16 schrieb Dionisio Ruiz de Zarate:
> I know how i must to configure the virtual hosts in apache but in the
> tomcat server.xml i don't know.
>
> 1.- can any body send me one sample?
> 2.- in the apache httpd.conf file, in the virtual host  description i have
> the normal virtual host description but for the interaction with tomcat,
> must i add some lines? which lines are these?(for the integration with
> tomcat)
>
> i am running in one linux platform (SuSE 8).
> thanks



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: virtual hosts and apache

2002-09-05 Thread Dionisio Ruiz de Zarate

I am using tomcat 4.0.2 or 1. web_apps

can you help me?
thanks

Branko Kannenberg
> Hi there !
>
> Which connectro are you using? If it's mod_jk, you can use the autoconf
> feature, so you don't have to worry about the virtual host configuration
> in  httpd.conf.
>
> Just add
>
> Include /conf/auto/mod_jk.conf
>
> to httpd.conf and something like
>
>jkDebug="info" modJk="/opt/apache2/modules/mod_jk.so" />
>
> to the "Server" section of your server.xml file and something like
>
>   append="true" forwardAll="true" noRoot="false" jkDebug="info" />
>
> to the "Host" section of your server.xml file
>
> You probably have to adjust the parameters for the "Listener" directive,
> for a  description of the parameters have a look at
>
> http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html
>
> It's for tomcat 3.3, but I am using 4.0.4 and it's still useful.
>
> Now, everytime you start tomcat, the file
> /conf/auto/mod_jk.conf
> will be created and includes the neccessary configuration for apache
>
> Ciao, Branko.
>
>
>
>
> Am Donnerstag, 5. September 2002 08:16 schrieb Dionisio Ruiz de Zarate:
>> I know how i must to configure the virtual hosts in apache but in the
>> tomcat server.xml i don't know.
>>
>> 1.- can any body send me one sample?
>> 2.- in the apache httpd.conf file, in the virtual host  description i
>> have the normal virtual host description but for the interaction with
>> tomcat, must i add some lines? which lines are these?(for the
>> integration with tomcat)
>>
>> i am running in one linux platform (SuSE 8).
>> thanks
>
>
>
> --
> To unsubscribe, e-mail:
>  For additional
> commands, e-mail: 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: virtual hosts and apache

2002-09-05 Thread Branko Kannenberg

Hi there !

I'm sorry, I have no knowledge about the webapp connector.
You could switch to the mod_jk connector, it has advantages like load 
balancing and serving only dynamic content. But you have to compile it for 
yourself to get a version which works which the apache version you have.
The compiling is a bit tricky but can be done. There are numerous mails in 
this list about compiling the connector package. Two very helpful howtos can 
be found at
http://www.pubbitch.org/jboss/mod_jk2.html
and
http://www.johnturner.com/howto/apache-tomcat-howto.html

Ciao,   Branko.




Am Donnerstag, 5. September 2002 11:00 schrieb Dionisio Ruiz de Zarate:
> I am using tomcat 4.0.2 or 1. web_apps
>
> can you help me?
> thanks
>
> Branko Kannenberg
>
> > Hi there !
> >
> > Which connectro are you using? If it's mod_jk, you can use the autoconf
> > feature, so you don't have to worry about the virtual host configuration
> > in  httpd.conf.
> >
> > Just add
> >
> > Include /conf/auto/mod_jk.conf
> >
> > to httpd.conf and something like
> >
> >> jkDebug="info" modJk="/opt/apache2/modules/mod_jk.so" />
> >
> > to the "Server" section of your server.xml file and something like
> >
> >   > append="true" forwardAll="true" noRoot="false" jkDebug="info" />
> >
> > to the "Host" section of your server.xml file
> >
> > You probably have to adjust the parameters for the "Listener" directive,
> > for a  description of the parameters have a look at
> >
> > http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html
> >
> > It's for tomcat 3.3, but I am using 4.0.4 and it's still useful.
> >
> > Now, everytime you start tomcat, the file
> > /conf/auto/mod_jk.conf
> > will be created and includes the neccessary configuration for apache
> >
> > Ciao,   Branko.
> >
> > Am Donnerstag, 5. September 2002 08:16 schrieb Dionisio Ruiz de Zarate:
> >> I know how i must to configure the virtual hosts in apache but in the
> >> tomcat server.xml i don't know.
> >>
> >> 1.- can any body send me one sample?
> >> 2.- in the apache httpd.conf file, in the virtual host  description i
> >> have the normal virtual host description but for the interaction with
> >> tomcat, must i add some lines? which lines are these?(for the
> >> integration with tomcat)
> >>
> >> i am running in one linux platform (SuSE 8).
> >> thanks
> >
> > --
> > To unsubscribe, e-mail:
> >  For additional
> > commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: virtual hosts and apache

2002-09-05 Thread Turner, John


Hosts are configured in the Host element of server.xml.

For demonstration purposes, the Host element with the name "localhost" in
server.xml is a virtual host.  Copy all of that, and change the "name"
parameter in the Host element to match Apache's VirtualHost.

John


> -Original Message-
> From: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 05, 2002 2:16 AM
> To: [EMAIL PROTECTED]
> Subject: virtual hosts and apache
> 
> 
> I know how i must to configure the virtual hosts in apache but in the
> tomcat server.xml i don't know.
> 
> 1.- can any body send me one sample?
> 2.- in the apache httpd.conf file, in the virtual host  
> description i have
> the normal virtual host description but for the interaction 
> with tomcat,
> must i add some lines? which lines are these?(for the integration with
> tomcat)
> 
> i am running in one linux platform (SuSE 8).
> thanks
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: virtual hosts and apache

2002-09-05 Thread Dionisio Ruiz de Zarate

apache and tomcat 4.0.1, web_apps

can you help me?
thanks




- Original Message -
From: "Branko Kannenberg" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 05, 2002 11:55 AM
Subject: Re: virtual hosts and apache


> Hi there !
>
> Which connectro are you using? If it's mod_jk, you can use the autoconf
> feature, so you don't have to worry about the virtual host configuration
in
> httpd.conf.
>
> Just add
>
> Include /conf/auto/mod_jk.conf
>
> to httpd.conf and something like
>
>jkDebug="info" modJk="/opt/apache2/modules/mod_jk.so" />
>
> to the "Server" section of your server.xml file and something like
>
>   append="true" forwardAll="true" noRoot="false" jkDebug="info" />
>
> to the "Host" section of your server.xml file
>
> You probably have to adjust the parameters for the "Listener" directive,
for a
> description of the parameters have a look at
>
> http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html
>
> It's for tomcat 3.3, but I am using 4.0.4 and it's still useful.
>
> Now, everytime you start tomcat, the file
> /conf/auto/mod_jk.conf
> will be created and includes the neccessary configuration for apache
>
> Ciao, Branko.
>
>
>
>
> Am Donnerstag, 5. September 2002 08:16 schrieb Dionisio Ruiz de Zarate:
> > I know how i must to configure the virtual hosts in apache but in the
> > tomcat server.xml i don't know.
> >
> > 1.- can any body send me one sample?
> > 2.- in the apache httpd.conf file, in the virtual host  description i
have
> > the normal virtual host description but for the interaction with tomcat,
> > must i add some lines? which lines are these?(for the integration with
> > tomcat)
> >
> > i am running in one linux platform (SuSE 8).
> > thanks
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>



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




Re: Virtual Hosts and Tomcat.

2002-04-15 Thread Gregory Moxley Kempster

This looks pretty good for mod_webapp:

http://dcb.sun.com/practices/howtos/tomcat_apache.jsp

Gregory Moxley Kempster
FastTrack Designs
http://www.fasttrackdesigns.com
503-452-3721

- Original Message -
From: "Antonio MATTA" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 15, 2002 2:09 PM
Subject: Virtual Hosts and Tomcat.


>
> Hi,
>
> I am a newbie with Tomcat. I manage a server that runs both apache and
> tomcat.
> I have been looking a good Howto with wich I can learn how to set virtual
> hosts using Tomcat: which modules do I have to set? Which configure files
> do I have to edit?
>
> Any help will be apreciated,
>
> Antonio.
>
> --
> ANTONIO ALEJANDRO MATTA GÓMEZ
> WebMaster
> Facultad de Ingeniería
> Pontificia Universidad Javeriana - Seccional Cali
> Calle 18 No. 118 - 250 Av. Cañasgordas
> Cali, Colombia
> Tel. (+2)  3218200 Ext 575
> Fax. 5552823
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: virtual hosts | more [RBS2003010400002265]

2003-01-03 Thread techassistance
Ahoy there!

This is an automated response, to let you know
that we have received your query and will answer
your email as soon as possible.

We know you'd like to get back to playing our
state-of-the-art online games. We'd therefore like
to assure you that we are determined to keep our
service at the level that you've come to expect
from The River Belle Online Casino.

Thank you for your patience and enjoy your day!

Best wishes,

Sebastian
First Mate

RIVER BELLE ONLINE CASINO


   RIVER BELLE CASINOS ONLINE


RIVER BELLE   ACES HIGH
Enjoy Southern HospitalityFast Paced Casino Action

www.riverbelle.com/a3099  www.aceshigh.com/a3181

24/7 toll-free support24/7 toll-free support

USA:1 888 615 2383USA:1 877 566 0482
CANADA: 1 888 552 4196CANADA: 1 877 776 0549
UK: 0 800 783 4381UK: 0 800 169 8796

E-mail support:   E-mail support
[EMAIL PROTECTED][EMAIL PROTECTED]

E.&O.E.

The River Belle Online Casino respects your online time
and privacy.  If you wish to be removed from our mailing
list and not receive any promotional e-mails from us,
please send an e-mail to [EMAIL PROTECTED] and
type UNSUBSCRIBE in the subject bar.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: virtual hosts - tomcat 4

2003-06-10 Thread Jens Skripczynski
Hi,

I belief your question is, how to link your webapp to '/'
instead of '/webapp'.

So you need to add an explicit context as default context.

  


Fiona:
> I'm using Tomcat 4.1.12 and set up a virtual host in
> my server.xml file. 
> 
> I want to be able to type the url www.myurl.com and
> this to go to the equivalent of going directly to
> localhost:8080/myapp. Currently www.myurl.com will
> replace the localhost section, but i still have to put
> the path of myapp after it to get to the page i want,
> i.e. www.myurl.com/myapp works but www.myurl.com does
> not.
> 
> Here's the host that i added:
> 
>  unpackWARs="true" autoDeploy="true">
>debug="0"
> reloadable="true" crossContext="true">
>   
>   

Ciao

Jens Skripczynski
-- 
E-Mail: skripi-lists(at)myrealbox(dot)com

I think there is a world market for about five computers.
-- Thomas J. Watson, CEO, IBM Corporation, 1947


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



Re: virtual hosts - tomcat 4

2003-06-10 Thread Fiona
I've tried what you suggested, and my host is now:


 

but this still brings me to the ROOT directory. If i
take out the /myapp from the docBase, then i get the
directory listing for / (all folders in webapps). 

I can still get to the page by going to
www.myurl.com/myapp but i want to get to it by just
typing www.myurl.com

Thanks again,

--- Jens Skripczynski <[EMAIL PROTECTED]>
wrote:
> Hi,
> 
> I belief your question is, how to link your webapp
> to '/'
> instead of '/webapp'.
> 
> So you need to add an explicit context as default
> context.
> 
>debug="0"/>
> 
> 
> Fiona:
> > I'm using Tomcat 4.1.12 and set up a virtual host
> in
> > my server.xml file. 
> > 
> > I want to be able to type the url www.myurl.com
> and
> > this to go to the equivalent of going directly to
> > localhost:8080/myapp. Currently www.myurl.com will
> > replace the localhost section, but i still have to
> put
> > the path of myapp after it to get to the page i
> want,
> > i.e. www.myurl.com/myapp works but www.myurl.com
> does
> > not.
> > 
> > Here's the host that i added:
> > 
> >  appBase="webapps"
> > unpackWARs="true" autoDeploy="true">
> >  debug="0"
> > reloadable="true" crossContext="true">
> > 
> > 
> 
> Ciao
> 
> Jens Skripczynski
> -- 
> E-Mail: skripi-lists(at)myrealbox(dot)com
> 
> I think there is a world market for about five
> computers.
> -- Thomas J. Watson,
> CEO, IBM Corporation, 1947
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



Re: virtual hosts - tomcat 4

2003-06-10 Thread Giorgio Ponza
U can try





Giorgio

- Original Message -
From: "Fiona" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Jens
Skripczynski" <[EMAIL PROTECTED]>
Sent: Tuesday, June 10, 2003 1:42 PM
Subject: Re: virtual hosts - tomcat 4


> I've tried what you suggested, and my host is now:
>
>  unpackWARs="true" autoDeploy="true">
>  docBase="E:/jakarta-tomcat-4.1.12/webapps/myapp"
> debug="0"/>
> 
> but this still brings me to the ROOT directory. If i
> take out the /myapp from the docBase, then i get the
> directory listing for / (all folders in webapps).
>
> I can still get to the page by going to
> www.myurl.com/myapp but i want to get to it by just
> typing www.myurl.com
>
> Thanks again,
>
> --- Jens Skripczynski <[EMAIL PROTECTED]>
> wrote:
> > Hi,
> >
> > I belief your question is, how to link your webapp
> > to '/'
> > instead of '/webapp'.
> >
> > So you need to add an explicit context as default
> > context.
> > 
> >> debug="0"/>
> > 
> >
> > Fiona:
> > > I'm using Tomcat 4.1.12 and set up a virtual host
> > in
> > > my server.xml file.
> > >
> > > I want to be able to type the url www.myurl.com
> > and
> > > this to go to the equivalent of going directly to
> > > localhost:8080/myapp. Currently www.myurl.com will
> > > replace the localhost section, but i still have to
> > put
> > > the path of myapp after it to get to the page i
> > want,
> > > i.e. www.myurl.com/myapp works but www.myurl.com
> > does
> > > not.
> > >
> > > Here's the host that i added:
> > >
> > >  > appBase="webapps"
> > > unpackWARs="true" autoDeploy="true">
> > >  > debug="0"
> > > reloadable="true" crossContext="true">
> > > 
> > > 
> >
> > Ciao
> >
> > Jens Skripczynski
> > --
> > E-Mail: skripi-lists(at)myrealbox(dot)com
> >
> > I think there is a world market for about five
> > computers.
> > -- Thomas J. Watson,
> > CEO, IBM Corporation, 1947
> >
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
>
>
> __
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar.yahoo.com
>
> -
> 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]



Re: virtual hosts - tomcat 4

2003-06-10 Thread Dominic Parry
if you set your context path tp "/" It might make a difference. At the moment, the 
path is set to "" which is nothing.

  - Original Message - 
  From: Fiona 
  To: Tomcat Users List ; Jens Skripczynski 
  Sent: Tuesday, June 10, 2003 1:42 PM
  Subject: Re: virtual hosts - tomcat 4


  I've tried what you suggested, and my host is now:

  
   
  
  but this still brings me to the ROOT directory. If i
  take out the /myapp from the docBase, then i get the
  directory listing for / (all folders in webapps). 

  I can still get to the page by going to
  www.myurl.com/myapp but i want to get to it by just
  typing www.myurl.com

  Thanks again,

  --- Jens Skripczynski <[EMAIL PROTECTED]>
  wrote:
  > Hi,
  > 
  > I belief your question is, how to link your webapp
  > to '/'
  > instead of '/webapp'.
  > 
  > So you need to add an explicit context as default
  > context.
  > 
  >debug="0"/>
  > 
  > 
  > Fiona:
  > > I'm using Tomcat 4.1.12 and set up a virtual host
  > in
  > > my server.xml file. 
  > > 
  > > I want to be able to type the url www.myurl.com
  > and
  > > this to go to the equivalent of going directly to
  > > localhost:8080/myapp. Currently www.myurl.com will
  > > replace the localhost section, but i still have to
  > put
  > > the path of myapp after it to get to the page i
  > want,
  > > i.e. www.myurl.com/myapp works but www.myurl.com
  > does
  > > not.
  > > 
  > > Here's the host that i added:
  > > 
  > >  appBase="webapps"
  > > unpackWARs="true" autoDeploy="true">
  > >  debug="0"
  > > reloadable="true" crossContext="true">
  > > 
  > > 
  > 
  > Ciao
  > 
  > Jens Skripczynski
  > -- 
  > E-Mail: skripi-lists(at)myrealbox(dot)com
  > 
  > I think there is a world market for about five
  > computers.
  > -- Thomas J. Watson,
  > CEO, IBM Corporation, 1947
  > 
  > 
  >
  -
  > To unsubscribe, e-mail:
  > [EMAIL PROTECTED]
  > For additional commands, e-mail:
  > [EMAIL PROTECTED]
  > 


  __
  Do you Yahoo!?
  Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
  http://calendar.yahoo.com

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



Re: virtual hosts - tomcat 4

2003-06-10 Thread Fiona
Thanks, this still brings me to the ROOT though, if i
set the path to "/" as suggested in another reply i
then get a HTTP Status 500 error - No context
configured to process this request.

Is there anythign else which could override the gost i
specify?

Thanks!
--- Giorgio Ponza <[EMAIL PROTECTED]> wrote:
> U can try
> 
>  appBase="webapps/myapp"
> unpackWARs="true" autoDeploy="true">
> 
> 
> 
> Giorgio
> 
> - Original Message -
> From: "Fiona" <[EMAIL PROTECTED]>
> To: "Tomcat Users List"
> <[EMAIL PROTECTED]>; "Jens
> Skripczynski" <[EMAIL PROTECTED]>
> Sent: Tuesday, June 10, 2003 1:42 PM
> Subject: Re: virtual hosts - tomcat 4
> 
> 
> > I've tried what you suggested, and my host is now:
> >
> >  appBase="webapps"
> > unpackWARs="true" autoDeploy="true">
> >  > docBase="E:/jakarta-tomcat-4.1.12/webapps/myapp"
> > debug="0"/>
> > 
> > but this still brings me to the ROOT directory. If
> i
> > take out the /myapp from the docBase, then i get
> the
> > directory listing for / (all folders in webapps).
> >
> > I can still get to the page by going to
> > www.myurl.com/myapp but i want to get to it by
> just
> > typing www.myurl.com
> >
> > Thanks again,
> >
> > --- Jens Skripczynski <[EMAIL PROTECTED]>
> > wrote:
> > > Hi,
> > >
> > > I belief your question is, how to link your
> webapp
> > > to '/'
> > > instead of '/webapp'.
> > >
> > > So you need to add an explicit context as
> default
> > > context.
> > > 
> > >docBase="path-to-webapps"
> > > debug="0"/>
> > > 
> > >
> > > Fiona:
> > > > I'm using Tomcat 4.1.12 and set up a virtual
> host
> > > in
> > > > my server.xml file.
> > > >
> > > > I want to be able to type the url
> www.myurl.com
> > > and
> > > > this to go to the equivalent of going directly
> to
> > > > localhost:8080/myapp. Currently www.myurl.com
> will
> > > > replace the localhost section, but i still
> have to
> > > put
> > > > the path of myapp after it to get to the page
> i
> > > want,
> > > > i.e. www.myurl.com/myapp works but
> www.myurl.com
> > > does
> > > > not.
> > > >
> > > > Here's the host that i added:
> > > >
> > > >  > > appBase="webapps"
> > > > unpackWARs="true" autoDeploy="true">
> > > >  > > debug="0"
> > > > reloadable="true" crossContext="true">
> > > > 
> > > > 
> > >
> > > Ciao
> > >
> > > Jens Skripczynski
> > > --
> > > E-Mail: skripi-lists(at)myrealbox(dot)com
> > >
> > > I think there is a world market for about five
> > > computers.
> > > -- Thomas J.
> Watson,
> > > CEO, IBM Corporation, 1947
> > >
> > >
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> >
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Calendar - Free online calendar with sync
> to Outlook(TM).
> > http://calendar.yahoo.com
> >
> >
>
-
> > 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]
> 


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



Re: virtual hosts - tomcat 4

2003-06-10 Thread John Turner
This does it for me:

 

   
directory="logs"  prefix="my-site_log." suffix=".txt" 
timestamp="true"/>

   
   
 

Notice that "c:/websites/my-site" is the site root, not the webapp root.  
That is, in c:/websites/my-site, there is:

c:/websites/my-site/index.jsp
c:/websites/my-site/WEB-INF
c:/websites/my-site/WEB-INF/web.xml
c:/websites/my-site/WEB-INF/classes
There is no ROOT folder in c:/websites/my-site.

John

On Tue, 10 Jun 2003 04:58:49 -0700 (PDT), Fiona <[EMAIL PROTECTED]> 
wrote:

Thanks, this still brings me to the ROOT though, if i
set the path to "/" as suggested in another reply i
then get a HTTP Status 500 error - No context
configured to process this request.
Is there anythign else which could override the gost i
specify?
Thanks!
--- Giorgio Ponza <[EMAIL PROTECTED]> wrote:
U can try




Giorgio

- Original Message -
From: "Fiona" <[EMAIL PROTECTED]>
To: "Tomcat Users List"
<[EMAIL PROTECTED]>; "Jens
Skripczynski" <[EMAIL PROTECTED]>
Sent: Tuesday, June 10, 2003 1:42 PM
Subject: Re: virtual hosts - tomcat 4
> I've tried what you suggested, and my host is now:
>
>  unpackWARs="true" autoDeploy="true">
>  docBase="E:/jakarta-tomcat-4.1.12/webapps/myapp"
> debug="0"/>
> 
> but this still brings me to the ROOT directory. If
i
> take out the /myapp from the docBase, then i get
the
> directory listing for / (all folders in webapps).
>
> I can still get to the page by going to
> www.myurl.com/myapp but i want to get to it by
just
> typing www.myurl.com
>
> Thanks again,
>
> --- Jens Skripczynski <[EMAIL PROTECTED]>
> wrote:
> > Hi,
> >
> > I belief your question is, how to link your
webapp
> > to '/'
> > instead of '/webapp'.
> >
> > So you need to add an explicit context as
default
> > context.
> > 
> >> debug="0"/>
> > 
> >
> > Fiona:
> > > I'm using Tomcat 4.1.12 and set up a virtual
host
> > in
> > > my server.xml file.
> > >
> > > I want to be able to type the url
www.myurl.com
> > and
> > > this to go to the equivalent of going directly
to
> > > localhost:8080/myapp. Currently www.myurl.com
will
> > > replace the localhost section, but i still
have to
> > put
> > > the path of myapp after it to get to the page
i
> > want,
> > > i.e. www.myurl.com/myapp works but
www.myurl.com
> > does
> > > not.
> > >
> > > Here's the host that i added:
> > >
> > >  > appBase="webapps"
> > > unpackWARs="true" autoDeploy="true">
> > >  > debug="0"
> > > reloadable="true" crossContext="true">
> > > 
> > > 
> >
> > Ciao
> >
> > Jens Skripczynski
> > --
> > E-Mail: skripi-lists(at)myrealbox(dot)com
> >
> > I think there is a world market for about five
> > computers.
> > -- Thomas J.
Watson,
> > CEO, IBM Corporation, 1947
> >
> >
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
>
>
> __
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync
to Outlook(TM).
> http://calendar.yahoo.com
>
>
-
> 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]


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: virtual hosts - tomcat 4

2003-06-10 Thread Andoni
Hello,

Tomcat gets a little *confused* when you have hosts at different levels of
the same tree.

What to do is to change your default ROOT context to webapps/default and add
your myapp one to webapps/myapp  Then treat these as you would a webapps
directory.  Don't have one at webapps level and another at webapps/myapp or
it will always get mixed up.

Andoni.

- Original Message -
From: "Fiona" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, June 10, 2003 12:58 PM
Subject: Re: virtual hosts - tomcat 4


> Thanks, this still brings me to the ROOT though, if i
> set the path to "/" as suggested in another reply i
> then get a HTTP Status 500 error - No context
> configured to process this request.
>
> Is there anythign else which could override the gost i
> specify?
>
> Thanks!
> --- Giorgio Ponza <[EMAIL PROTECTED]> wrote:
> > U can try
> >
> >  > appBase="webapps/myapp"
> > unpackWARs="true" autoDeploy="true">
> > 
> > 
> >
> > Giorgio
> >
> > - Original Message -
> > From: "Fiona" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List"
> > <[EMAIL PROTECTED]>; "Jens
> > Skripczynski" <[EMAIL PROTECTED]>
> > Sent: Tuesday, June 10, 2003 1:42 PM
> > Subject: Re: virtual hosts - tomcat 4
> >
> >
> > > I've tried what you suggested, and my host is now:
> > >
> > >  > appBase="webapps"
> > > unpackWARs="true" autoDeploy="true">
> > >  > > docBase="E:/jakarta-tomcat-4.1.12/webapps/myapp"
> > > debug="0"/>
> > > 
> > > but this still brings me to the ROOT directory. If
> > i
> > > take out the /myapp from the docBase, then i get
> > the
> > > directory listing for / (all folders in webapps).
> > >
> > > I can still get to the page by going to
> > > www.myurl.com/myapp but i want to get to it by
> > just
> > > typing www.myurl.com
> > >
> > > Thanks again,
> > >
> > > --- Jens Skripczynski <[EMAIL PROTECTED]>
> > > wrote:
> > > > Hi,
> > > >
> > > > I belief your question is, how to link your
> > webapp
> > > > to '/'
> > > > instead of '/webapp'.
> > > >
> > > > So you need to add an explicit context as
> > default
> > > > context.
> > > > 
> > > >> docBase="path-to-webapps"
> > > > debug="0"/>
> > > > 
> > > >
> > > > Fiona:
> > > > > I'm using Tomcat 4.1.12 and set up a virtual
> > host
> > > > in
> > > > > my server.xml file.
> > > > >
> > > > > I want to be able to type the url
> > www.myurl.com
> > > > and
> > > > > this to go to the equivalent of going directly
> > to
> > > > > localhost:8080/myapp. Currently www.myurl.com
> > will
> > > > > replace the localhost section, but i still
> > have to
> > > > put
> > > > > the path of myapp after it to get to the page
> > i
> > > > want,
> > > > > i.e. www.myurl.com/myapp works but
> > www.myurl.com
> > > > does
> > > > > not.
> > > > >
> > > > > Here's the host that i added:
> > > > >
> > > > >  > > > appBase="webapps"
> > > > > unpackWARs="true" autoDeploy="true">
> > > > >  > > > debug="0"
> > > > > reloadable="true" crossContext="true">
> > > > > 
> > > > > 
> > > >
> > > > Ciao
> > > >
> > > > Jens Skripczynski
> > > > --
> > > > E-Mail: skripi-lists(at)myrealbox(dot)com
> > > >
> > > > I think there is a world market for about five
> > > > computers.
> > > > -- Thomas J.
> > Watson,
> > > > CEO, IBM Corporation, 1947
> > > >
> > > >
> > > >
> > >
> >
> -
> > > > To unsubscribe, e-mail:
> > > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > > [EMAIL PROTECTED]
> > > >
> > >
> > >
> > > __
> > > Do you Yahoo!?
> > > Yahoo! Calendar - Free online calendar with sync
> > to Outlook(TM).
> > > http://calendar.yahoo.com
> > >
> > >
> >
> -
> > > 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]
> >
>
>
> __
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar.yahoo.com
>
> -
> 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]



Re: virtual hosts - tomcat 4

2003-06-10 Thread Fiona
Thanks guys for all the help...this is working now.
John, i did as you suggested below, but also had to
rename the ROOT folder in tomcat/webapps before it
would work...

Thanks again,
Fiona.
--- John Turner <[EMAIL PROTECTED]> wrote:
> 
> This does it for me:
> 
>appBase="c:/websites/my-site" 
> unpackWARs="true" autoDeploy="true">
> 
>  className="org.apache.catalina.logger.FileLogger"
>  directory="logs" 
> prefix="my-site_log." suffix=".txt" 
> timestamp="true"/>
> 
> 
> 
> 
>   
> 
> Notice that "c:/websites/my-site" is the site root,
> not the webapp root.  
> That is, in c:/websites/my-site, there is:
> 
> c:/websites/my-site/index.jsp
> c:/websites/my-site/WEB-INF
> c:/websites/my-site/WEB-INF/web.xml
> c:/websites/my-site/WEB-INF/classes
> 
> There is no ROOT folder in c:/websites/my-site.
> 
> John
> 
> On Tue, 10 Jun 2003 04:58:49 -0700 (PDT), Fiona
> <[EMAIL PROTECTED]> 
> wrote:
> 
> > Thanks, this still brings me to the ROOT though,
> if i
> > set the path to "/" as suggested in another reply
> i
> > then get a HTTP Status 500 error - No context
> > configured to process this request.
> >
> > Is there anythign else which could override the
> gost i
> > specify?
> >
> > Thanks!
> > --- Giorgio Ponza <[EMAIL PROTECTED]> wrote:
> >> U can try
> >>
> >>  >> appBase="webapps/myapp"
> >> unpackWARs="true" autoDeploy="true">
> >> 
> >> 
> >>
> >> Giorgio
> >>
> >> - Original Message -
> >> From: "Fiona" <[EMAIL PROTECTED]>
> >> To: "Tomcat Users List"
> >> <[EMAIL PROTECTED]>; "Jens
> >> Skripczynski" <[EMAIL PROTECTED]>
> >> Sent: Tuesday, June 10, 2003 1:42 PM
> >> Subject: Re: virtual hosts - tomcat 4
> >>
> >>
> >> > I've tried what you suggested, and my host is
> now:
> >> >
> >> >  >> appBase="webapps"
> >> > unpackWARs="true" autoDeploy="true">
> >> >  >> >
> docBase="E:/jakarta-tomcat-4.1.12/webapps/myapp"
> >> > debug="0"/>
> >> > 
> >> > but this still brings me to the ROOT directory.
> If
> >> i
> >> > take out the /myapp from the docBase, then i
> get
> >> the
> >> > directory listing for / (all folders in
> webapps).
> >> >
> >> > I can still get to the page by going to
> >> > www.myurl.com/myapp but i want to get to it by
> >> just
> >> > typing www.myurl.com
> >> >
> >> > Thanks again,
> >> >
> >> > --- Jens Skripczynski
> <[EMAIL PROTECTED]>
> >> > wrote:
> >> > > Hi,
> >> > >
> >> > > I belief your question is, how to link your
> >> webapp
> >> > > to '/'
> >> > > instead of '/webapp'.
> >> > >
> >> > > So you need to add an explicit context as
> >> default
> >> > > context.
> >> > > 
> >> > >>> docBase="path-to-webapps"
> >> > > debug="0"/>
> >> > > 
> >> > >
> >> > > Fiona:
> >> > > > I'm using Tomcat 4.1.12 and set up a
> virtual
> >> host
> >> > > in
> >> > > > my server.xml file.
> >> > > >
> >> > > > I want to be able to type the url
> >> www.myurl.com
> >> > > and
> >> > > > this to go to the equivalent of going
> directly
> >> to
> >> > > > localhost:8080/myapp. Currently
> www.myurl.com
> >> will
> >> > > > replace the localhost section, but i still
> >> have to
> >> > > put
> >> > > > the path of myapp after it to get to the
> page
> >> i
> >> > > want,
> >> > > > i.e. www.myurl.com/myapp works but
> >> www.myurl.com
> >> > > does
> >> > > > not.
> >> > > >
> >> > > > Here's the host that i added:
> >> > > >
> >> > > >  >> > > appBase="webapps"
> >> > > > unpackWARs="true" autoDeploy="true">
> >> > > >  >> > > debug="0"
> >> > > > reloadable="true" crossContext="true">
> >> > > > 
> >> > > > 
> >> > >
> >> > > Ciao
> >> > >
> >> > > Jens Skripczynski
> >> > > --
> >> > > E-Mail: skripi-lists(at)myrealbox(dot)com
> >> > >
> >> > > I think there is a world market for about
> five
> >> > > computers.
> >> > > -- Thomas J.
> >> Watson,
> >> > > CEO, IBM Corporation, 1947
> >> > >
> >> > >
> >> > >
> >> >
> >>
> >
>
-
> >> > > To unsubscribe, e-mail:
> >> > > [EMAIL PROTECTED]
> >> > > For additional commands, e-mail:
> >> > > [EMAIL PROTECTED]
> >> > >
> >> >
> >> >
> >> > __
> >> > Do you Yahoo!?
> >> > Yahoo! Calendar - Free online calendar with
> sync
> >> to Outlook(TM).
> >> > http://calendar.yahoo.com
> >> >
> >> >
> >>
> >
>
-
> >> > To unsubscribe, e-mail:
> >> [EMAIL PROTECTED]
> >> > For additional commands, e-mail:
> >> [EMAIL PROTECTED]
> >> >
> >> >
> >> >
> >>
> >>
> >>
> >>
> >
>
-
> 
=== message truncated ===


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



Re: virtual hosts - tomcat 4

2003-06-10 Thread John Turner
Well, at the risk of confusing the issue, I don't think I would rename the 
ROOT folder in CATALINA_HOME/webapps.  That might be asking for trouble, as 
the ROOT folder is a special folder treated differently by Tomcat in some 
cases than other web application roots.  If it were me, I would leave it 
alone.

In the example I posted, not only is the ROOT folder non-existent, the 
location of the site/application folders isn't even CATALINA_HOME/webapps.  
It works for me, I've tried it so far with 6 virtual hosts 
(c:\websites\site1, ...\site2, ...\site3, and so on).

John

On Tue, 10 Jun 2003 06:35:20 -0700 (PDT), Fiona <[EMAIL PROTECTED]> 
wrote:

Thanks guys for all the help...this is working now.
John, i did as you suggested below, but also had to
rename the ROOT folder in tomcat/webapps before it
would work...
Thanks again,
Fiona.
--- John Turner <[EMAIL PROTECTED]> wrote:
This does it for me:







Notice that "c:/websites/my-site" is the site root,
not the webapp root.  That is, in c:/websites/my-site, there is:
c:/websites/my-site/index.jsp
c:/websites/my-site/WEB-INF
c:/websites/my-site/WEB-INF/web.xml
c:/websites/my-site/WEB-INF/classes
There is no ROOT folder in c:/websites/my-site.

John

On Tue, 10 Jun 2003 04:58:49 -0700 (PDT), Fiona
<[EMAIL PROTECTED]> wrote:
> Thanks, this still brings me to the ROOT though,
if i
> set the path to "/" as suggested in another reply
i
> then get a HTTP Status 500 error - No context
> configured to process this request.
>
> Is there anythign else which could override the
gost i
> specify?
>
> Thanks!
> --- Giorgio Ponza <[EMAIL PROTECTED]> wrote:
>> U can try
>>
>> > appBase="webapps/myapp"
>> unpackWARs="true" autoDeploy="true">
>> 
>> 
>>
>> Giorgio
>>
>> - Original Message -
>> From: "Fiona" <[EMAIL PROTECTED]>
>> To: "Tomcat Users List"
>> <[EMAIL PROTECTED]>; "Jens
>> Skripczynski" <[EMAIL PROTECTED]>
>> Sent: Tuesday, June 10, 2003 1:42 PM
>> Subject: Re: virtual hosts - tomcat 4
>>
>>
>> > I've tried what you suggested, and my host is
now:
>> >
>> > > appBase="webapps"
>> > unpackWARs="true" autoDeploy="true">
>> > > >
docBase="E:/jakarta-tomcat-4.1.12/webapps/myapp"
>> > debug="0"/>
>> > 
>> > but this still brings me to the ROOT directory.
If
>> i
>> > take out the /myapp from the docBase, then i
get
>> the
>> > directory listing for / (all folders in
webapps).
>> >
>> > I can still get to the page by going to
>> > www.myurl.com/myapp but i want to get to it by
>> just
>> > typing www.myurl.com
>> >
>> > Thanks again,
>> >
>> > --- Jens Skripczynski
<[EMAIL PROTECTED]>
>> > wrote:
>> > > Hi,
>> > >
>> > > I belief your question is, how to link your
>> webapp
>> > > to '/'
>> > > instead of '/webapp'.
>> > >
>> > > So you need to add an explicit context as
>> default
>> > > context.
>> > > 
>> > >   > docBase="path-to-webapps"
>> > > debug="0"/>
>> > > 
>> > >
>> > > Fiona:
>> > > > I'm using Tomcat 4.1.12 and set up a
virtual
>> host
>> > > in
>> > > > my server.xml file.
>> > > >
>> > > > I want to be able to type the url
>> www.myurl.com
>> > > and
>> > > > this to go to the equivalent of going
directly
>> to
>> > > > localhost:8080/myapp. Currently
www.myurl.com
>> will
>> > > > replace the localhost section, but i still
>> have to
>> > > put
>> > > > the path of myapp after it to get to the
page
>> i
>> > > want,
>> > > > i.e. www.myurl.com/myapp works but
>> www.myurl.com
>> > > does
>> > > > not.
>> > > >
>> > > > Here's the host that i added:
>> > > >
>> > > > > > > appBase="webapps"
>> > > > unpackWARs="true" autoDeploy="true">
>> > > > > > > debug="0"
>> > > > reloadable="true" crossContext="true">
>> > > > 
>> > > > 
>> > >
>> > > Ciao
>> > >
>> &

Re: virtual hosts - tomcat 4

2003-06-10 Thread Fiona
Thanks for the help, John i did as you outlined below
but it didn't work for me until i renamed the ROOT
folder in the webapps directory of tomcat. Once this
was done it worked fine...

Thanks again,
Fiona.
--- John Turner <[EMAIL PROTECTED]> wrote:
> 
> This does it for me:
> 
>appBase="c:/websites/my-site" 
> unpackWARs="true" autoDeploy="true">
> 
>  className="org.apache.catalina.logger.FileLogger"
>  directory="logs" 
> prefix="my-site_log." suffix=".txt" 
> timestamp="true"/>
> 
> 
> 
> 
>   
> 
> Notice that "c:/websites/my-site" is the site root,
> not the webapp root.  
> That is, in c:/websites/my-site, there is:
> 
> c:/websites/my-site/index.jsp
> c:/websites/my-site/WEB-INF
> c:/websites/my-site/WEB-INF/web.xml
> c:/websites/my-site/WEB-INF/classes
> 
> There is no ROOT folder in c:/websites/my-site.
> 
> John
> 
> On Tue, 10 Jun 2003 04:58:49 -0700 (PDT), Fiona
> <[EMAIL PROTECTED]> 
> wrote:
> 
> > Thanks, this still brings me to the ROOT though,
> if i
> > set the path to "/" as suggested in another reply
> i
> > then get a HTTP Status 500 error - No context
> > configured to process this request.
> >
> > Is there anythign else which could override the
> gost i
> > specify?
> >
> > Thanks!
> > --- Giorgio Ponza <[EMAIL PROTECTED]> wrote:
> >> U can try
> >>
> >>  >> appBase="webapps/myapp"
> >> unpackWARs="true" autoDeploy="true">
> >> 
> >> 
> >>
> >> Giorgio
> >>
> >> - Original Message -
> >> From: "Fiona" <[EMAIL PROTECTED]>
> >> To: "Tomcat Users List"
> >> <[EMAIL PROTECTED]>; "Jens
> >> Skripczynski" <[EMAIL PROTECTED]>
> >> Sent: Tuesday, June 10, 2003 1:42 PM
> >> Subject: Re: virtual hosts - tomcat 4
> >>
> >>
> >> > I've tried what you suggested, and my host is
> now:
> >> >
> >> >  >> appBase="webapps"
> >> > unpackWARs="true" autoDeploy="true">
> >> >  >> >
> docBase="E:/jakarta-tomcat-4.1.12/webapps/myapp"
> >> > debug="0"/>
> >> > 
> >> > but this still brings me to the ROOT directory.
> If
> >> i
> >> > take out the /myapp from the docBase, then i
> get
> >> the
> >> > directory listing for / (all folders in
> webapps).
> >> >
> >> > I can still get to the page by going to
> >> > www.myurl.com/myapp but i want to get to it by
> >> just
> >> > typing www.myurl.com
> >> >
> >> > Thanks again,
> >> >
> >> > --- Jens Skripczynski
> <[EMAIL PROTECTED]>
> >> > wrote:
> >> > > Hi,
> >> > >
> >> > > I belief your question is, how to link your
> >> webapp
> >> > > to '/'
> >> > > instead of '/webapp'.
> >> > >
> >> > > So you need to add an explicit context as
> >> default
> >> > > context.
> >> > > 
> >> > >>> docBase="path-to-webapps"
> >> > > debug="0"/>
> >> > > 
> >> > >
> >> > > Fiona:
> >> > > > I'm using Tomcat 4.1.12 and set up a
> virtual
> >> host
> >> > > in
> >> > > > my server.xml file.
> >> > > >
> >> > > > I want to be able to type the url
> >> www.myurl.com
> >> > > and
> >> > > > this to go to the equivalent of going
> directly
> >> to
> >> > > > localhost:8080/myapp. Currently
> www.myurl.com
> >> will
> >> > > > replace the localhost section, but i still
> >> have to
> >> > > put
> >> > > > the path of myapp after it to get to the
> page
> >> i
> >> > > want,
> >> > > > i.e. www.myurl.com/myapp works but
> >> www.myurl.com
> >> > > does
> >> > > > not.
> >> > > >
> >> > > > Here's the host that i added:
> >> > > >
> >> > > 

Re: virtual hosts - tomcat 4

2003-06-10 Thread John Turner
OK, good luck.  My point was that you had to rename the ROOT folder because 
your websites are in CATALINA_HOME/webapps.  Move the Host's appBase 
outside of CATALINA_HOME, and you won't have to rename the ROOT folder, 
because there won't be any ROOT folder to rename.  And Tomcat will be happy 
because it will still have its ROOT folder in CATALINA_HOME/webapps  when 
it needs it.

Let us know if you have any more problems.

John

On Tue, 10 Jun 2003 07:08:17 -0700 (PDT), Fiona <[EMAIL PROTECTED]> 
wrote:

Thanks for the help, John i did as you outlined below
but it didn't work for me until i renamed the ROOT
folder in the webapps directory of tomcat. Once this
was done it worked fine...
Thanks again,
Fiona.
--- John Turner <[EMAIL PROTECTED]> wrote:
This does it for me:







Notice that "c:/websites/my-site" is the site root,
not the webapp root.  That is, in c:/websites/my-site, there is:
c:/websites/my-site/index.jsp
c:/websites/my-site/WEB-INF
c:/websites/my-site/WEB-INF/web.xml
c:/websites/my-site/WEB-INF/classes
There is no ROOT folder in c:/websites/my-site.

John

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Virtual Hosts and MySQL

2004-07-31 Thread Evgeny Gesin
Well, I solved.
Tomcat loads all* web-apps under "appBase" when
starting virtual hosts. Using different "appBase" for
each virtual "host" solves the problem.

Thanks for not response :))
Evgeny




__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

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



Re: Virtual Hosts and MySQL

2004-07-31 Thread QM
On Sat, Jul 31, 2004 at 12:45:50PM -0700, Evgeny Gesin wrote:
: Tomcat loads all* web-apps under "appBase" when
: starting virtual hosts. Using different "appBase" for
: each virtual "host" solves the problem.

Just for the archives, Tomcat loads *all* webapps when "loadOnStartup"
is true for the  element.  Set it to "false" and you won't have
that problem.

Of course, if you're deploying apps to the same dir, but they're managed
by different vhosts, then you may want to set the 's "autoDeploy"
to false, as well.  Otherwise you'll trigger a deployment on the other
vhosts when you deploy to the intended one...


: Thanks for not response :))

Well, now you have one. ;)

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Virtual Hosts and MySQL

2004-07-31 Thread Evgeny Gesin
Do you meant "deployOnStartup" ("loadOnStartup")? It
is not available in 4.1.xx (my case).

I found easer to manage multiple contexts in separate
directories of virtual hosts, than limit use of
deployment parameters.

Thanks for reply! :)

Evgeny

> On Sat, Jul 31, 2004 at 12:45:50PM -0700, Evgeny
> Gesin wrote:
> : Tomcat loads all* web-apps under "appBase" when
> : starting virtual hosts. Using different "appBase"
> for
> : each virtual "host" solves the problem.
> 
> Just for the archives, Tomcat loads *all* webapps
> when "loadOnStartup"
> is true for the  element.  Set it to "false"
> and you won't have
> that problem.
> 
> Of course, if you're deploying apps to the same dir,
> but they're managed
> by different vhosts, then you may want to set the
> 's "autoDeploy"
> to false, as well.  Otherwise you'll trigger a
> deployment on the other
> vhosts when you deploy to the intended one...
> 
> 
> : Thanks for not response :))
> 
> Well, now you have one. ;)
> 
> -QM
> 
> -- 
> 
> software  -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.com
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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



Re: Virtual Hosts and useCanonical

2004-10-27 Thread agidden
There is a setting somewhere in Tomcat (versions up to 4.1.X at least)
where you enable/disable reverse DNS.
Most of the time you want this off, but I think in your case you may need it
turned on.
I think the swtich is in the Tomcat server.xml, and it relates to the connector you 
are using. Its something like 'enableLookups'.
While this sounds odd, two books I have state you need this to get names
and not IP addresses. Also, the books mention using request.getRemoteHost(), and that 
it is effected by the settings in server.xml

Hope it helps,
Al G

- Original Message -
From: Mike Curwen <[EMAIL PROTECTED]>
Date: Wednesday, October 27, 2004 4:36 pm
Subject: Virtual Hosts and useCanonical

> Yup, I've asked about/commented about this before.  I'm having 
> trouble with
> Vhosts, server names, and how to get the value I want out of
> request.getServerName(), and this is all with apache/jk/tomcat.  
> (apache is
> in the 2's somewhere, jk (not jk2) and tomcat 4.1.30 and 5.0.29).
> 
> "I'm only get the canonical name, help me get the alias"
> http://marc.theaimsgroup.com/?l=tomcat-user&m=108315928213678&w=2
> 
> "I don't care about alias, get me canonical".
> http://marc.theaimsgroup.com/?l=tomcat-user&m=106095508818371&w=2
> 
> So I know that both of these seem to have worked (or been doing a good
> imitation of it).  But now, for the life of me, I can't get
> request.getServerName() to return the canonical ServerName from 
> httpd.conf.
> 
> apache's httpd.conf
> --
> 
>UseCanonicalName On
>ServerName devstar.myhost.com
>ServerAlias www.devstar.myhost.com
>DocumentRoot /home/data3/me20
>
>   AllowOverride None 
>   deny from all 
>
>   JkMount /*.jsp tomcat1 
>   JkMount /login tomcat1 
>ErrorLog /var/log/test/error_log
>CustomLog /var/log/test/access_log common
> 
> 
> 
> 
> 
> tomcat1's server.xml
> --
> 
> www.devstar.myhost.com
> docBase="/home/data3/myhost/"
> etc...
> 
> 
> 
> When I type in http://www.devstar.myhost.com , I was hoping that
> request.getServerName() would give me devstar.myhost.com (without 
> the www).
> But it doesn't. It (jk? tomcat?) doesn't seem to honour the 
> useCanonicaldirective.  There seems to be some "controversy" about 
> this?http://www.mail-archive.com/tomcat-
> [EMAIL PROTECTED]/msg32367.html 
> Have I been going slowly crazy, and this has never worked the way 
> I thought
> it did?
> 
> 
> mike curwen
> intermediate programmer
> globally boundless
> 
> 204 885-7733  ext 227
> www.globallyboundless.com
> 
> 
> ---
> --
> 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]



RE: Virtual Hosts and useCanonical

2004-10-27 Thread Mike Curwen
Those books are making reference to getting the client's IP/hostname.  And
that would be controlled through the connector attribute 'enableLookups'. 

This is about getting the Server's hostname.


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, October 27, 2004 4:48 PM
> To: Tomcat Users List 
> Subject: Re: Virtual Hosts and useCanonical
> 
> 
> There is a setting somewhere in Tomcat (versions up to 4.1.X 
> at least) where you enable/disable reverse DNS. Most of the 
> time you want this off, but I think in your case you may need 
> it turned on. I think the swtich is in the Tomcat server.xml, 
> and it relates to the connector you are using. Its something 
> like 'enableLookups'. While this sounds odd, two books I have 
> state you need this to get names and not IP addresses. Also, 
> the books mention using request.getRemoteHost(), and that it 
> is effected by the settings in server.xml
> 
> Hope it helps,
> Al G
> 


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



Re: Virtual Hosts and useCanonical

2004-10-27 Thread Bill Barker
request.getServerName() is the value of the Host header.  You want 
request.getLocalName().

"Mike Curwen" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Yup, I've asked about/commented about this before.  I'm having trouble 
> with
> Vhosts, server names, and how to get the value I want out of
> request.getServerName(), and this is all with apache/jk/tomcat.  (apache 
> is
> in the 2's somewhere, jk (not jk2) and tomcat 4.1.30 and 5.0.29).
>
> "I'm only get the canonical name, help me get the alias"
> http://marc.theaimsgroup.com/?l=tomcat-user&m=108315928213678&w=2
>
> "I don't care about alias, get me canonical".
> http://marc.theaimsgroup.com/?l=tomcat-user&m=106095508818371&w=2
>
> So I know that both of these seem to have worked (or been doing a good
> imitation of it).  But now, for the life of me, I can't get
> request.getServerName() to return the canonical ServerName from 
> httpd.conf.
>
>
> apache's httpd.conf
> --
> 
>UseCanonicalName On
>ServerName devstar.myhost.com
>ServerAlias www.devstar.myhost.com
>DocumentRoot /home/data3/me20
> 
> AllowOverride None
> deny from all
> 
> JkMount /*.jsp tomcat1
> JkMount /login tomcat1
>ErrorLog /var/log/test/error_log
>CustomLog /var/log/test/access_log common
> 
>
>
>
>
> tomcat1's server.xml
> --
> 
> www.devstar.myhost.com
> docBase="/home/data3/myhost/"
> etc...
>
>
>
> When I type in http://www.devstar.myhost.com , I was hoping that
> request.getServerName() would give me devstar.myhost.com (without the 
> www).
> But it doesn't. It (jk? tomcat?) doesn't seem to honour the useCanonical
> directive.  There seems to be some "controversy" about this?
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg32367.html
>
> Have I been going slowly crazy, and this has never worked the way I 
> thought
> it did?
>
> 
> mike curwen
> intermediate programmer
> globally boundless
>
> 204 885-7733  ext 227
> www.globallyboundless.com 




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



RE: Virtual Hosts and useCanonical

2004-10-28 Thread Mike Curwen
Thanks Bill.  

I suppose I must have been dreaming about getServerName working. Our current
production box is TC4.1.30, and for our next version of the app, I wanted to
target TC5.0.29. Looks like it is a "must have".  Yoav will be happy. ;)



> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
> Sent: Thursday, October 28, 2004 12:21 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Virtual Hosts and useCanonical
> 
> 
> request.getServerName() is the value of the Host header.  You want 
> request.getLocalName().
> 


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



Re: Virtual Hosts and SSL

2004-12-17 Thread Steven J. Owens
Mike,

On Fri, Dec 17, 2004 at 02:04:43PM -0800, Mike Kennedy wrote:
> I can't find anything specific to my question in the FAQs but I'm trying
> to set up a tomcat server with virtual hosts using https. I have two ips,
> each with its own SSL cert as I understand is necessary for https.
> 
> What I want is to have each ip use port 443 with its own document tree
> (virtual host) but I cannot seem to get this to work. When I set up an
> additional ip to use port 443 I get an error 400 (bad request).

 I'm not sure what you mean by "virtual host".  AFAIK there are
generally two uses of the phrase.  

 The first is to refer to a single web server answering to more
than one domain name _without_ using one IP address per domain name.

 The second is to offer a customer seemingly full access to a
server to run their website, without having one separate physical box
per customer.  Some solutions go all the way and try to make the
customer feel like they have root on the box.  Some solutions just provide
the customer a greater-than-end-user level of access to tweaking the
configuration of their webserver, cgi scripts and database.


 If you're asking the first, I don't know if my recent learning
experience with Apache Virtual hosting will be relevant, but it may be
give you some insight into what you're doing.  It may only go for
tomcat used in an apache/modjk/tomcat setup.  Or it may not be at all
relevant to tomcat, whether stand-alone or with apache.

 I recently re-installed my apache server, and in the process set
up apache virtual hosting.  I learned that it's almost impossible to
set up SSL with virtual hosts with apache, you need to use IP-based
hosting if you want to serve multiple domains from one apache
installation via SSL, without any hitches.

 That said, if all you really care about is encrypting the
connection, non-IP based (i.e. virtual) multiple domain hosting is
still tolerable.

 Basically the SSL cert that's served by the server will match the
default virtual host (the first one defined in the configuration).
Requests to the other domains on the SSL port will hit the same SSL
server and get served the SSL cert for the default domain.  The
browser will squawk because the Cert doesn't match the domain.  

 If you're *really* security-conscious, this is a problem, since
there's an opportunity for a man-in-the-middle attack.  Somebody could
slip the browser a bogus Cert and proxy requests to your server,
eavesdropping on them all the while.  But if you're just providing
some encrypted web-access to an application, you may not mind.

 Security is all about trade-offs.

-- 
Steven J. Owens
[EMAIL PROTECTED]

"I'm going to make broad, sweeping generalizations and strong,
 declarative statements, because otherwise I'll be here all night and
 this document will be four times longer and much less fun to read.
 Take it all with a grain of salt." - http://darksleep.com/notablog


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



Re: Virtual Hosts and SSL

2004-12-17 Thread Daniel Watrous
I know that in apache, and I suspect that it is a general rule, an SSL 
(HTTPS) connection requires a unique IP address.  In other words, virtual 
hosts do not work with SSL.

Daniel
- Original Message - 
From: "Mike Kennedy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 17, 2004 3:04 PM
Subject: Virtual Hosts and SSL


Hello,
I can't find anything specific to my question in the FAQs but I'm trying
to set up a tomcat server with virtual hosts using https. I have two ips,
each with its own SSL cert as I understand is necessary for https.
What I want is to have each ip use port 443 with its own document tree
(virtual host) but I cannot seem to get this to work. When I set up an
additional ip to use port 443 I get an error 400 (bad request).
Thanks,
Mike
--
Mike Kennedy
Systems Group, C&C
[EMAIL PROTECTED]
951.827.5922

-
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]


Re: Virtual Hosts and SSL

2004-12-18 Thread QM
On Fri, Dec 17, 2004 at 09:38:01PM -0700, Daniel Watrous wrote:
: I know that in apache, and I suspect that it is a general rule, an SSL 
: (HTTPS) connection requires a unique IP address.  In other words, virtual 
: hosts do not work with SSL.

Correct.  This is (or at least, should be) true all around: the SSL
negotiation takes place at a lower protocol level than the HTTP request
that specifies which virtual host the client wants to see.  Yet, it's
during the negotiation phase that client software compares the requested
hostname to the CN value of the cert.  

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: Virtual Hosts and SSL

2004-12-18 Thread Benson Margulies
Some posters misunderstand virtual hosts.

The first step in creating a virtual host is to assign it a unique IP
address and host name. 

The second step is to configuring the machine's ethernet adapter to have
several IP addresses. This is done on Unix/Linux by creating additional
devices with the : syntax and on Windows by adding them to the config
dialog box.

The third step is to configure the web server to know about all this.


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



Re: Virtual Hosts In Tomcat

2005-08-25 Thread Hassan Schroeder

Dennis Harris wrote:


I have Tomcat 4.1 running on Server 2003. Now I want to point a new
domain to this box using virtual hosts. I have read all the
documentation and I'm still unclear where in the server.xml file to
place this virtual host. Can someone paste an example of the virtual
hosts and where exactly in goes in the server.xml file.


Grossly simplified, the hierarchy is:


  


  
  
  

  



Any help would be appreciated. By the way, I am a newbie with Tomcat.


In which case, I'd recommend using a non-ancient release, i.e., one
in current active development; you'll get more and better responses
to your questions :-)

HTH,
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



Re: Virtual hosts and Threads

2005-09-28 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a 
new topic) please do not reply to an existing message and change the 
subject line. To many of the list archiving services and mail clients 
used by list subscribers this  makes your new message appear as part 
of the old thread. This makes it harder for other users to find 
relevant information when searching the lists.


This is known as thread hijacking and is behaviour that is frowned 
upon on this list. Frequent offenders will be removed from the list.


The correct procedure is to create a new message with a new subject. 
This will start a new thread.


Mark
tomcat-user-owner

Mahesh S Kudva wrote:

Hi All

I have setup virtual hosts for 3 apps with virtual hosts config as 
follows. These virtual hosts are first handled by Apache and mod_jk. My 
apps have scheduler and automated mailing services.


unpackWARs="true">

www.vhost.domain.com
directory="${jboss.server.home.dir}/log" prefix="vhost_log1." 
suffix=".log" timestamp="true"/>
 docBase="${jboss.server.home.dir}/deploy/application.war" debug="0" 
reloadable="true"/>

 

This config is mailing the same mail 7 time. Further I noticed that there 
were 7 service started of the same kind. Querying the developer, he said 
that he had coded the apps to have the mail sent once every week. The 
mails are sent once every week but as said 7 copies of the same mail is 
delivered.


The request for the app results in page not found if I follow the 
following config, even thought there is no error in startup.


docBase="${jboss.server.home.dir}/deploy/application.war" debug="0" 
reloadable="true"/>




Can you guys have any idea on this and help me troubleshoot ???


Regards & Thanks

Mahesh S Kudva


---
Robosoft Technologies - Partners in Product Development


-
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]



RE: virtual hosts on different ports

2001-04-10 Thread Chris Andreou

you can create different contexts that listen on different ports


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 1:22 PM
To: [EMAIL PROTECTED]
Subject: virtual hosts on different ports


Hi,

 Can I configure TOMCAT virutal hosts on different ports, not ip addresses?
I seen this question asked in the archives but there was no responses.

Dave



RE: virtual hosts on different ports

2001-04-10 Thread William Wishon

You can configure tomcat to listen on multiple ports, but you cannot
restrict particular contexts to particular ports.  If you setup tomcat to
listen on ports 8080 and 8082 then all of your contexts become available on
both ports.  Using virtual hosts you can restrict particular contexts to
particular virtual hosts, but all virtual hosts are available on all ports.

That's what I found when I did some research and code archeology a little
while ago. I wanted to separate two contexts by restricting the first
context to the first port, and assigning the second context to the second
port.

-Bill

> -Original Message-
> From: Chris Andreou [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 10, 2001 11:30 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: virtual hosts on different ports
>
>
> you can create different contexts that listen on different ports
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 10, 2001 1:22 PM
> To: [EMAIL PROTECTED]
> Subject: virtual hosts on different ports
>
>
> Hi,
>
>  Can I configure TOMCAT virutal hosts on different ports, not ip
> addresses?
> I seen this question asked in the archives but there was no responses.
>
> Dave




Re: virtual hosts on different ports

2001-04-30 Thread Craig R. McClanahan



On Tue, 10 Apr 2001 [EMAIL PROTECTED] wrote:

> Hi,
> 
>  Can I configure TOMCAT virutal hosts on different ports, not ip addresses?
> I seen this question asked in the archives but there was no responses.
> 
> Dave
> 
> 

Earlier this evening, I answered a question related to running different
sets of webapps for SSL and non-SSL connectors in the same configuration
of Tomcat 4.0.  The same principles would apply to running different sets
of non-SSL based apps on different port numbers as well.

Craig McClanahan





RE: Virtual Hosts on IIS5 & TOMCAT3.2

2001-05-09 Thread Antoan Christov









Hi,

 

I’ve tried
to run Tomcat 3.2 integrated in IIS, but the isapi_redirect.dll fails to load
under my Win2K Pro and IIS5. Can you tell me please is this library works on
your IIS5?

 

Thanks,

Antoan

 

-Original
Message-
From: Sachin Phatak
[mailto:[EMAIL PROTECTED]]
Sent: 08 May 2001 15:49
To: [EMAIL PROTECTED]
Subject: Virtual Hosts on IIS5
& TOMCAT3.2

 

 

Can
someone please direct me to some documentation on this issue? or better explain
it to me.

 

After I
create Virtual Hosts on IIS, do i just add he same filter & Virtual
directory as I did for the default website? 

 

thanks

 

sachin








RE: Virtual Hosts on IIS5 & TOMCAT3.2

2001-05-09 Thread Allan Kamau

I have run Tomcat 3.2.1 with IIS5. This means
isapi_redirect.dll works just fine. You may need to go
through the steps outlined in the tomcat-IIS again
just to be sure.
Sachin, you first create your domain name entry in
your DNS server in your network then you create a web
site (not a virtual directory) on your IIS server. It
is in this web site that you will be expected to the
create a virtual directory called tomcat(I hope I
remembered correctly) and perform the steps outlined
in the tomcat-IIS manual.

Allan Kamau.
Nairobi

--- Antoan Christov <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I’ve tried to run Tomcat 3.2 integrated in IIS, but
> the isapi_redirect.dll
> fails to load under my Win2K Pro and IIS5. Can you
> tell me please is this
> library works on your IIS5?
> 
> Thanks,
> Antoan
> 
> -Original Message-
> From: Sachin Phatak [mailto:[EMAIL PROTECTED]]
> Sent: 08 May 2001 15:49
> To: [EMAIL PROTECTED]
> Subject: Virtual Hosts on IIS5 & TOMCAT3.2
> 
> 
> Can someone please direct me to some documentation
> on this issue? or better
> explain it to me.
> 
> After I create Virtual Hosts on IIS, do i just add
> he same filter & Virtual
> directory as I did for the default website?
> 
> thanks
> 
> sachin
> 


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Re: Virtual Hosts on IIS5 & TOMCAT3.2

2001-05-09 Thread Sachin Phatak

The problem is most likely in teh registry.
Try my earlier post subject : isapi_redirector.dll - Registry - help for
Newbies
thanks
sachin
- Original Message -
From: Antoan Christov
To: [EMAIL PROTECTED]
Sent: Wednesday, May 09, 2001 1:46 PM
Subject: RE: Virtual Hosts on IIS5 & TOMCAT3.2


Hi,

I've tried to run Tomcat 3.2 integrated in IIS, but the isapi_redirect.dll
fails to load under my Win2K Pro and IIS5. Can you tell me please is this
library works on your IIS5?

Thanks,
Antoan

-Original Message-
From: Sachin Phatak [mailto:[EMAIL PROTECTED]]
Sent: 08 May 2001 15:49
To: [EMAIL PROTECTED]
Subject: Virtual Hosts on IIS5 & TOMCAT3.2


Can someone please direct me to some documentation on this issue? or better
explain it to me.

After I create Virtual Hosts on IIS, do i just add he same filter & Virtual
directory as I did for the default website?

thanks

sachin




Re: Virtual Hosts on IIS & Tomcat

2001-08-07 Thread cmanolache

On Fri, 3 Aug 2001, Knaggs, George R wrote:

> Mr Shachor / Tomcat-User,
>
> I hope you don't mind this email but I've been unable to find any
> information on how to configure IIS with Tomcat using a Virtual Host where
> the context path / URI is the root (http://one.domain.com/ and
> http://two.domain.com/).  I have more than one virtual host on this server
> and the uriworkermap.properties doesn't mention anything about configuring
> more than one host using the same uri /servlet/*.  The tomcat-iis-howto
> discusses a similar setup but the contexts have different URIs (/examples/*
> and /webpages/*).


There is work going on to fix this in jakarta-tomcat-connectors. One
workaround is to just forward all /servlet/* to tomcat, and configure
virtual host on tomcat.

Of course, the problems are very complex if you want static files served
by IIS, it can't be done without few fixes in mod_jk.


> I've also had trouble installing the isapi filter for an additional web site
> using the IIS management console.  It doesn't seem to be able load the
> filter a second time.  Is there anything that has to be configured
> differently for installing the filter on a second web-site on the same web
> server.

AFAIK you need a single instance of the isapi filter. The filter should
deal with virtual hosts - unfortunately the code is not yet completed. If
you know some C - you're wellcome to contribute :-)



> Can you please tell me if this is possible and if there is any documentation
> on how to set this up.  I've configured this many times with Apache but I'm
> locked into using IIS4.0 inorder to use a different ISAPI filter that
> provides single-signon features used at my company.

Sorry, I don't use windows. Integrating authentication mechanisms of
server and tomcat is very difficult, planned for a future version of jk.
( probably ajp14 )


Costin




RE: Virtual Hosts on IIS & Tomcat

2001-08-08 Thread Charlie Cox

what I have done is created mulitple virtual hosts on
IIS, set up the uriworkermap.properties to send the
superset of requested url's to tomcat, and then also
set up tomcat with virtual hosts to determine the
context and validity of requests coming through for
each virtual host.

This allows me to have a /servlet directory in each
with the directory being isolated to each context.

of course if your superset of urls overlaps(/examples
for domain1.com handled by tomcat and /examples of
doamin2 handled by iis) then you will have problems

hope this helps
Charlie

> -Original Message-
> From: Knaggs, George R
[mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 03, 2001 8:19 PM
> To: '[EMAIL PROTECTED]';
'[EMAIL PROTECTED]'
> Subject: Virtual Hosts on IIS & Tomcat
> 
> 
> Mr Shachor / Tomcat-User,
> 
> I hope you don't mind this email but I've been
unable to find any
> information on how to configure IIS with Tomcat
using a 
> Virtual Host where
> the context path / URI is the root
(http://one.domain.com/ and
> http://two.domain.com/).  I have more than one
virtual host 
> on this server
> and the uriworkermap.properties doesn't mention
anything 
> about configuring
> more than one host using the same uri /servlet/*. 
The 
> tomcat-iis-howto
> discusses a similar setup but the contexts have
different 
> URIs (/examples/*
> and /webpages/*).
> 
> I've also had trouble installing the isapi filter
for an 
> additional web site
> using the IIS management console.  It doesn't seem
to be able load the
> filter a second time.  Is there anything that has to
be configured
> differently for installing the filter on a second
web-site on 
> the same web
> server.
> 
> Can you please tell me if this is possible and if
there is 
> any documentation
> on how to set this up.  I've configured this many
times with 
> Apache but I'm
> locked into using IIS4.0 inorder to use a different
ISAPI filter that
> provides single-signon features used at my company.
> 
> Any help you can provide would be greatly
appreciated.
> 
> Thanks in advance,
> George Knaggs
> 

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: Virtual Hosts w/ Tomcat+Apache

2001-03-12 Thread tomcat

It's something like this:

server.xml:


  


  



httpd.conf:


   ServerName www.domain.com
   ServerAlias domain.com
   DocumentRoot /home/someone/web/app



Options ExecCGI Indexes Includes FollowSymLinks MultiViews
AllowOverride AuthConfig FileInfo Indexes Limit Options
Order allow,deny
Allow from all





  JkWorkersFile /opt/tomcat/conf/workers.properties
  JkLogFile /opt/tomcat/logs/mod_jk.log

  #
  # Log level to be used by mod_jk
  #
  JkLogLevel error

  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13








On Sun, 11 Mar 2001, Joshua Lifton wrote:

> 
> The "Tomcat-Apache HOWTO" document that comes with the Tomcat 3.2.1 distro
> mentions that there are two different ways to configure Tomcat for virtual
> hosts; one is to use a different Tomcat for each Apache virtual host and
> the other is to use the same Tomcat for each Apache virtual host.  In the
> case of the latter, the HOWTO file mentions that Apache's httpd.conf file
> must be configured using the  directive and gives an example
> of such.  In addition, the HOWTO file states that Tomcat's server.xml must
> be configured using the  directive.  An example is given for this as
> well, but it is identical to the example given for the 
> directive in the httpd.conf file.  Is this a typo?  I checked the
> server.xml file and found a rough sketch of the  directive being
> used for working with virtual hosts, but would like to see a more complete
> example.  Anybody have experience with this?  If it is a typo, how
> do we go about fixing it?  Thanks, josh
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 


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




Re: virtual hosts and manager app

2003-02-14 Thread Craig R. McClanahan


On Thu, 13 Feb 2003, Edgar Dollin wrote:

> Date: Thu, 13 Feb 2003 20:29:48 -0500
> From: Edgar Dollin <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: virtual hosts and manager app
>
> The manager app is pretty nice for applications located in the
> $CATALINA_HOME/webapps directory.  For the manager application to function
> does your application have to be located there or can it be in the arbitrary
> docbase directory of your .
>

There needs to be an instance of the manager web application inside each
.  Where the document root points is totally arbitrary -- for
example, you can share the document root from the standard one by setting
it to the absolute path corresponding to
"$CATALINA_HOME/server/webapp/manager".

> I have added the  for the manager application to my  block
> and the manager application looks like it starts but you can't run any of
> the programs.
>
> Any help would be appreciated.
>

What does "can't run any of the programs" mean?

You'll need to show us details of what your  looks like for the new
virtual host, and what error messages you get in the logs and/or in
respnose to issuing Manager commands in order to figure this one out.

> Thanks
>
> Edgar
>

Craig


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




re: virtual hosts and manager app

2003-02-14 Thread Edgar Dollin
Thanks.  Of course setting up this e-mail caused me to rethink the issue
allowing me to find the answer.
 
The problem was in communication of the manager / admin application with
apache.  The fix/workaround 
was to enable the coyote http 1.1. connector on port 8080 for the 
(I was enabling a separate apache ajp
connector for each service and not the 8080 port.  
 
Does this mean that an apache service connector can only speak to a single
application context?  Anyway, I am
now able to run the ant tasks to reload my app.
 
Edgar
 
> On Thu, 13 Feb 2003, Edgar Dollin wrote:
> 
> > Date: Thu, 13 Feb 2003 20:29:48 -0500
> > From: Edgar Dollin <[EMAIL PROTECTED]  >
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]
 >
> > To: "'[EMAIL PROTECTED]'
 " <[EMAIL PROTECTED]
 >
> > Subject: virtual hosts and manager app
> >
> > The manager app is pretty nice for applications located in the
> > $CATALINA_HOME/webapps directory.  For the manager application to
function
> > does your application have to be located there or can it be in the
arbitrary
> > docbase directory of your .
> >
> 
> There needs to be an instance of the manager web application inside each
> .  Where the document root points is totally arbitrary -- for
> example, you can share the document root from the standard one by setting
> it to the absolute path corresponding to
> "$CATALINA_HOME/server/webapp/manager".
> 
> > I have added the  for the manager application to my 
block
> > and the manager application looks like it starts but you can't run any
of
> > the programs.
> >
> > Any help would be appreciated.
> >
> 
> What does "can't run any of the programs" mean?
> 
> You'll need to show us details of what your  looks like for the new
> virtual host, and what error messages you get in the logs and/or in
> respnose to issuing Manager commands in order to figure this one out.
> 
> > Thanks
> >
> > Edgar
> >
> 
> Craig
> 
> 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
 
For additional commands, e-mail: [EMAIL PROTECTED]
 




RE: Virtual Hosts Kill My JSPs

2004-04-02 Thread LILES, DAVID (CONTRACTOR)
We are configured with multiple  tags and each project has identically named 
JSPs but we don't seem to be experiencing what you have described 

We followed the following document we created 
www.dynamichostings.com/TomCat5IIS5.do

-Dave

-Original Message-
From: Lisa Simaki [mailto:[EMAIL PROTECTED]
Sent: Friday, April 02, 2004 11:19 AM
To: [EMAIL PROTECTED]
Subject: Virtual Hosts Kill My JSPs


Hi, 

Thought I'd try again :)

We are using Tomcat v5.0.19 as a stand-alone server,
with the Coyote HTTP 1.1 Connector, on Windows 2000.
We have Tomcat configured with two virtual hosts
(i.e., two  elements). The virtual hosting is
working great except for a problem with identically
named JSPs across hosts:

NUTSHELL

In a nutshell, when Tomcat translates a JSP into a
servlet, it is *NOT* taking into account which 
the JSP belongs to. It translates the JSP into a
servlet and dumps the resulting Java source code in
the same directory, regardless of what  the JSP
came from. 

This causes a big problem if the different hosts have
a JSP that happens to be the same name, like, say,
index.jsp. Since the generated Java code
(index_jsp.java) is dumped into the same directory,
regardless of which  the JSP originated from,
Tomcat will serve the index.jsp that got translated
first. So, both hosts end up sharing the same
index.jsp.
 

MORE SPECIFICS (More Details)
--
In my server.xml I have two  elements
configured:


   



  


The "name" attribute of the first Host element is
"xxx.test1.com" and the "name" attribute on
the second Host is "xxx.text2.com". Of course, I also
have the Windows "hosts" file set up so that both host
names are associated with 127.0.0.1. In other words,
the "hosts" file has entries for both xxx.test1.com
and xxx.test2.com and they both point to 127.0.0.1.

Both test1 and test2 have their own directories. In
other words, both "appBase" attributes of the 
elements point to the directory appropriate to that
host (xxx.test1.com or xxx.test2.com). 

I hope this is clear so far. 

With Tomcat running I can browse to either
http://xxx.test1.com or http://xxx.test2.com and the
correct page is served. Tomcat seems to be using
virtual hosting just fineexcept...

If both test1 and test2 have a JSP with the same name
(like, say, index.jsp), then there's confusion. The
first index.jsp that gets compiled is the one that
gets served for *BOTH* hosts. For example:

Assume no JSPs are yet compiled.
I go to http://xxx.test1.com/index.jsp, causing the
test1's index.jsp to be compiled and rendered. That's
expected. Now, go to http://xxx.test2.com/index.jsp 
-- the result is still test1's version of index.jsp!

Now, if I modify test2's index.jsp and I go to
http://xxx.test2.com/index.jsp I see what I expect --
test2's JSP with the modification I just made. But now
if I go to http://xxx.test1.com/index.jsp I also see
test2's index.jsp, not test1's JSP!!!

HERE'S WHY IT HAPPENS!
-
Now, I know, partially why this is happening. You know
that Tomcat uses a separate directory to store
compiled JSPs. As I mentioned, Tomcat is not
differentiating between hosts when it writes the Java
source code (from the translated JSP) to this
directory. It's simply putting *all*
compiled JSPs into the same directory (WINNT/temp).
Since both test1 and test2 have identically named
"index.jsp" files, Tomcat does not distinguish them.
In both cases it generates "index_jsp.java" as needed,
overwriting the previous version. That is the crux of
what's causing my grief.

One would think Tomcat would build a directory
structure reflective of the host name and contexts so
that identically named JSPs from different hosts do
not over-write each other.

Can anyone offer any comments on this? Is anyone still
reading at this point?

Thanks,

LS

__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

-
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]



Re: Virtual Hosts Kill My JSPs

2004-04-02 Thread QM
On Fri, Apr 02, 2004 at 09:18:54AM -0800, Lisa Simaki wrote:
: 
:
: 
: 
: 
:   
: 

It's a stretch, but:
I know using "workDir" has been recommended already; but
did you restart Tomcat after adding it?

-also, did said dirs already exist?  

For example,

http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: Virtual Hosts Kill My JSPs

2004-04-02 Thread Lisa Simaki
Are you using IIS as the server? Does IIS forward JSP
requests to Tomcat or are you using Tomcat as your
stand-alone web server?



--- "LILES, DAVID (CONTRACTOR)" <[EMAIL PROTECTED]>
wrote:
> We are configured with multiple  tags and each
> project has identically named JSPs but we don't seem
> to be experiencing what you have described 
> 
> We followed the following document we created
> www.dynamichostings.com/TomCat5IIS5.do
> 
> -Dave
> 
> -Original Message-
> From: Lisa Simaki [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 02, 2004 11:19 AM
> To: [EMAIL PROTECTED]
> Subject: Virtual Hosts Kill My JSPs
> 
> 
> Hi, 
> 
> Thought I'd try again :)
> 
> We are using Tomcat v5.0.19 as a stand-alone server,
> with the Coyote HTTP 1.1 Connector, on Windows 2000.
> We have Tomcat configured with two virtual hosts
> (i.e., two  elements). The virtual hosting is
> working great except for a problem with identically
> named JSPs across hosts:
> 
> NUTSHELL
> 
> In a nutshell, when Tomcat translates a JSP into a
> servlet, it is *NOT* taking into account which
> 
> the JSP belongs to. It translates the JSP into a
> servlet and dumps the resulting Java source code in
> the same directory, regardless of what  the
> JSP
> came from. 
> 
> This causes a big problem if the different hosts
> have
> a JSP that happens to be the same name, like, say,
> index.jsp. Since the generated Java code
> (index_jsp.java) is dumped into the same directory,
> regardless of which  the JSP originated from,
> Tomcat will serve the index.jsp that got translated
> first. So, both hosts end up sharing the same
> index.jsp.
>  
> 
> MORE SPECIFICS (More Details)
> --
> In my server.xml I have two  elements
> configured:
> 
>appBase="C:\TestWebSites\test2"
>   unpackWARs="true" deployOnStartup='true'
>   autoDeploy="false">
> reloadable="false" />
> 
> 
>appBase="C:\TestWebSites\test1"
>   unpackWARs="true" deployOnStartup='true'
>   autoDeploy="false">
>   reloadable="false" />
> 
> 
> The "name" attribute of the first Host element is
> "xxx.test1.com" and the "name" attribute on
> the second Host is "xxx.text2.com". Of course, I
> also
> have the Windows "hosts" file set up so that both
> host
> names are associated with 127.0.0.1. In other words,
> the "hosts" file has entries for both xxx.test1.com
> and xxx.test2.com and they both point to 127.0.0.1.
> 
> Both test1 and test2 have their own directories. In
> other words, both "appBase" attributes of the 
> elements point to the directory appropriate to that
> host (xxx.test1.com or xxx.test2.com). 
> 
> I hope this is clear so far. 
> 
> With Tomcat running I can browse to either
> http://xxx.test1.com or http://xxx.test2.com and the
> correct page is served. Tomcat seems to be using
> virtual hosting just fineexcept...
> 
> If both test1 and test2 have a JSP with the same
> name
> (like, say, index.jsp), then there's confusion. The
> first index.jsp that gets compiled is the one that
> gets served for *BOTH* hosts. For example:
> 
> Assume no JSPs are yet compiled.
> I go to http://xxx.test1.com/index.jsp, causing the
> test1's index.jsp to be compiled and rendered.
> That's
> expected. Now, go to http://xxx.test2.com/index.jsp 
> -- the result is still test1's version of index.jsp!
> 
> Now, if I modify test2's index.jsp and I go to
> http://xxx.test2.com/index.jsp I see what I expect
> --
> test2's JSP with the modification I just made. But
> now
> if I go to http://xxx.test1.com/index.jsp I also see
> test2's index.jsp, not test1's JSP!!!
> 
> HERE'S WHY IT HAPPENS!
> -
> Now, I know, partially why this is happening. You
> know
> that Tomcat uses a separate directory to store
> compiled JSPs. As I mentioned, Tomcat is not
> differentiating between hosts when it writes the
> Java
> source code (from the translated JSP) to this
> directory. It's simply putting *all*
> compiled JSPs into the same directory (WINNT/temp).
> Since both test1 and test2 have identically named
> "index.jsp" files, Tomcat does not distinguish them.
> In both cases it generates "index_jsp.java" as
> needed,
> overwriting the previous version. That is the crux
> of
> what's causing my grief.
> 
> One would think Tomcat would build a directory
> structure reflective of the host name and contexts
> so
> that identically named JSPs from different hosts do
> not over-write each other.
> 
> Can anyone offer any comments on this? Is anyone
> still
> reading at this point?
> 
> Thanks,
> 
> LS
> 
> __
> Do you Yahoo!?
> Yahoo! Small Business $15K Web Design Giveaway 
> http://promotions.yahoo.com/design_giveaway/
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-

Re: Virtual Hosts on Tomcat 5

2004-07-03 Thread Marco Pöhler
Hi Steve,

just add an  directive nested in the -Element. An example can be 
seen in http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html

hope that helps

Marco
---
http://www.optik-preisvergleich.de
http://www.druckerpatronen--preisvergleich.de
http://www.lenses-price-comparison.com

Am Freitag 02 Juli 2004 21:55 schrieb Steve Beaman:
> I'm using Tomcat 5 standalone.
> Everything works just fine, but now
> I need to enter my virtual hosts information
> in the server.xml file.
>
> Does anybody have a server.xml file
> that uses virtual hosts that I could use as an
> example?
>
> Thanks.
>
> ---
>- Steve Beaman   [EMAIL PROTECTED]
> Altura International
> http://SHOP.COM
> http://www.catalogcity.com

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



RE: Virtual Hosts and Properties files..

2000-11-21 Thread Saurabh Shukla


if I am getting you correctly, in your web.xml invoke a servlet at startup
and depending upon
the parameters you can pick up the path from there.  U might have to hard
code something in web.xml.

Shuklix
-Original Message-
From: Scott Hamilton, +61-2-9942 9693 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 22, 2000 8:44 AM
To: [EMAIL PROTECTED]
Subject: Virtual Hosts and Properties files..


Greetings!

   I'm not sure exactly if this is the right forum, but here goes...
   I have JSP page using a Bean (ofcourse) this is defined in a
   virtual host (for Development, Test and Production for each
   DNS domain hosted) I'd like to read a thisbean.properties file
   (using Properties, FileInputStream and File classes)  that
   resides in the /dev/app1/web-inf/classes/ directory for that
   particular host that has a number of environment (dev,test,prod)
   properties for that bean

   So my question (atlast), is there a property I can get to pass
   to the constructor for File to pickup the right file path of
   where the classes really is executing from
   FWIW when I do a file.getCanonicalPath() it returns the directory
   I installed tomcat into (eg: C:\jakarta-tomcat\mybean.properties)


   Many thanx in advance for any info
  Scott, Esq.




Re: Virtual Hosts and Properties files..

2000-11-21 Thread chris edwards

May not be the answer you want but,
but how about 3 different named properties files
and using resource bundle to load the right one dependent on the host http 
header ( will return dev.site.com, or www.site.com) ,
just to be really awkward you could use a 4th properties file which is used 
to load in the respective site domains?

as for collecting http headers, in particular the host one check the snoop 
servlet provided with tomcat in the examples section.

Hope it helps

Chris

At 22:14 21/11/2000 -0500, you wrote:
>Greetings!
>
>I'm not sure exactly if this is the right forum, but here goes...
>I have JSP page using a Bean (ofcourse) this is defined in a
>virtual host (for Development, Test and Production for each
>DNS domain hosted) I'd like to read a thisbean.properties file
>(using Properties, FileInputStream and File classes)  that
>resides in the /dev/app1/web-inf/classes/ directory for that
>particular host that has a number of environment (dev,test,prod)
>properties for that bean
>
>So my question (atlast), is there a property I can get to pass
>to the constructor for File to pickup the right file path of
>where the classes really is executing from
>FWIW when I do a file.getCanonicalPath() it returns the directory
>I installed tomcat into (eg: C:\jakarta-tomcat\mybean.properties)
>
>
>Many thanx in advance for any info
>   Scott, Esq.

---
Chris Edwards
e. [EMAIL PROTECTED]
m. 0772 0266858
---




Re: Virtual Hosts and SSL Certificates

2005-04-28 Thread Mark Thomas
You will need to SSL connectors, once for each host.
Mark
Fritz Schneider wrote:
I am running TC 5.5.8 standalone under Windows XP Pro. I have two domains
coming in to the same IP address, one for production and one for testing.
There are two  elements in my . I have a CA created SSL
certificate for the production domain, but I want to add a self-signed
certificate for the test domain.
My question is: if I import my test certificate with alias tomcat, will that
overwrite my production certificate? Can I import it with a different alias?
If so, how does the SSL Connector find it?
Thanks,
Fritz
-
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]


Re: Virtual Hosts and SSL Certificates

2005-04-28 Thread Mark Thomas
You will need two SSL connectors, once for each host.
Mark
Fritz Schneider wrote:
I am running TC 5.5.8 standalone under Windows XP Pro. I have two domains
coming in to the same IP address, one for production and one for testing.
There are two  elements in my . I have a CA created SSL
certificate for the production domain, but I want to add a self-signed
certificate for the test domain.
My question is: if I import my test certificate with alias tomcat, will that
overwrite my production certificate? Can I import it with a different alias?
If so, how does the SSL Connector find it?
Thanks,
Fritz
-
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]


Re: Virtual Hosts - additional info needed

2005-05-10 Thread Pete Stevens
On Tue, 10 May 2005, Matthew P Puccio wrote:

> I'm running Tomcat 5.5.9 on a Windows2000 server. I am not running Apache
> and for various reasons won't be installing it. I'm not a Tomcat
> administrator so I may sound a bit clueless.
>
> I have tried to follow the instructions on
> http://www.ex-parrot.com/~pete/tomcat-vhost.html but am confused or don't
> understand.
>
> Here's the setup that I want:
> - I have the domain "smpdev.mwhglobal.com" that points at my Tomcat
> server's IP address.
> - My files are in /Tomcat5.5/SMP/
> - I have a Default.jsp page in /Tomcat5.5/SMP/jsp/Default.jsp. There is an
> entry in web.xml for this app for the Welcome file.
> - I have a folder /Tomcat5.5/conf/Catalina/SMP with SMP.xml. That file
> contains  and my database
> connection info.
> - I've tried adding a new  entry in server.xml, based on the info on
> the ex-parrot page (linked above):
>
>  unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
>
> $alias
> 
>
> What I don't know is what "$host" should be or "$alias" in the server.xml
> file.
> I also don't know if some of my folders should actually be called
> "smpdev.mwhglobal.com" instead of "SMP".

You can drop the ... line in your installtion.

$host should be replaced by smpdev.mwhglobal.com

then your directory

webapps/smpdev.mwhglobal.com

should contain an unpacked copy of the site you're working with, including
your web.xml configuration file.


You need to create the configuration file in

conf/Catalina/smpdev.mwhglobal.com/ROOT.xml






A caveat though is I haven't tested the instructions on Windows so you may
need to modify various things to make it go.

Yours,

Pete Stevens

--
Pete Stevens
[EMAIL PROTECTED]
http://www.ex-parrot.com/~pete/

  The last time humans crossed space to a destination was the Apollo 17 mission
  in 1972. In the 32 years since, no man has seen, with his own eyes, Earth as
 that beautiful, solitary blue sphere, and - reality check - no woman has ever
seen it at all.
   -- James Cameron

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



[ANS] RE: virtual hosts on different ports

2001-04-10 Thread davea

I tried setting up different contexts but when TOMCAT started it searched for
the servlets in $TOMCAT_HOME and ignored the docBase directive.

Dave
> From [EMAIL PROTECTED]  Tue Apr 
>10 14:29:42 2001
> Received: from otto.nawcad.navy.mil (otto-internal.nawcad.navy.mil [192.58.199.212])
>   by tecnet1.jcte.jcs.mil (8.9.3/8.9.3) with ESMTP id OAA14334
>   for <[EMAIL PROTECTED]>; Tue, 10 Apr 2001 14:29:37 -0400 (EDT)
> Received: by otto.nawcad.navy.mil; id OAA07525; Tue, 10 Apr 2001 14:29:37 -0400 (EDT)
> Received: from unknown(64.208.42.41) by otto.nawcad.navy.mil via smap (V4.2)
>   id xma006940; Tue, 10 Apr 01 14:29:20 -0400
> Received: (qmail 7703 invoked by uid 500); 10 Apr 2001 18:28:49 -
> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> Precedence: bulk
> Reply-To: [EMAIL PROTECTED]
> list-help: <mailto:[EMAIL PROTECTED]>
> list-unsubscribe: <mailto:[EMAIL PROTECTED]>
> list-post: <mailto:[EMAIL PROTECTED]>
> Delivered-To: mailing list [EMAIL PROTECTED]
> Received: (qmail 7694 invoked from network); 10 Apr 2001 18:28:48 -
> Received: from str-gw.customer.dsl.alter.net (HELO str?connect2.strllc.com) 
>(206.114.235.241)
>   by h31.sny.collab.net with SMTP; 10 Apr 2001 18:28:48 -
> Received: by STR_CONNECT2 with Internet Mail Service (5.5.2650.21)
>   id ; Tue, 10 Apr 2001 14:29:49 -0400
> Message-ID: <B9D7EB6E06F0D1119AA800A0C9C74B4A2731C7@STR_CONNECT2>
> From: Chris Andreou <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: RE: virtual hosts on different ports
> Date: Tue, 10 Apr 2001 14:29:42 -0400
> MIME-Version: 1.0
> X-Mailer: Internet Mail Service (5.5.2650.21)
> Content-Type: text/plain;
>   charset="iso-8859-1"
> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
> 
> you can create different contexts that listen on different ports
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 10, 2001 1:22 PM
> To: [EMAIL PROTECTED]
> Subject: virtual hosts on different ports
> 
> 
> Hi,
> 
>  Can I configure TOMCAT virutal hosts on different ports, not ip addresses?
> I seen this question asked in the archives but there was no responses.
> 
> Dave





[ANS] RE: virtual hosts on different ports

2001-04-11 Thread davea

Bill,

  What you stated is what I'm trying to do. I have a single server, in which I need to 
utiltize ports 8601 and 443.  But, I want each port to examine a certain 'context'.  
Right now I'm manily concerned about 8601 for our developemt team.
Here is my entry from the server.xml and httpsd.conf file.  But, when I try to connect 
to the pages I receive a 404 error and in the jasper log file I notice TOMCAT is 
trying to excute the code from $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes directory.  
Can you give me a clue on what I'm doing wrong.

 Thanks a bunch.

server.xml





httpsd

#  General setup for the virtual host
DocumentRoot "/tecnet/WWW/NetScape/Alpha"
ServerName tecnet1.jcte.jcs.mil
ServerAdmin [EMAIL PROTECTED]
ErrorLog logs/tecnet8601_error_log
TransferLog logs/tecnet8601_access_log
SetEnvIf Request_URI wwwAuthenticatedEntrance.cgi$ login
CustomLog logs/agent_log loginagent env=login
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

Dave


> From [EMAIL PROTECTED]  Tue Apr 
>10 14:50:35 2001
> Received: from otto.nawcad.navy.mil (otto-internal.nawcad.navy.mil [192.58.199.212])
>   by tecnet1.jcte.jcs.mil (8.9.3/8.9.3) with ESMTP id OAA19625
>   for <[EMAIL PROTECTED]>; Tue, 10 Apr 2001 14:50:34 -0400 (EDT)
> Received: by otto.nawcad.navy.mil; id OAA20256; Tue, 10 Apr 2001 14:50:34 -0400 (EDT)
> Received: from unknown(64.208.42.41) by otto.nawcad.navy.mil via smap (V4.2)
>   id xma019868; Tue, 10 Apr 01 14:50:27 -0400
> Received: (qmail 45293 invoked by uid 500); 10 Apr 2001 18:49:36 -
> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> Precedence: bulk
> Reply-To: [EMAIL PROTECTED]
> list-help: <mailto:[EMAIL PROTECTED]>
> list-unsubscribe: <mailto:[EMAIL PROTECTED]>
> list-post: <mailto:[EMAIL PROTECTED]>
> Delivered-To: mailing list [EMAIL PROTECTED]
> Received: (qmail 45276 invoked from network); 10 Apr 2001 18:49:36 -
> Received: from unknown (HELO jnm-main.pictureiq.com) (63.127.69.253)
>   by h31.sny.collab.net with SMTP; 10 Apr 2001 18:49:36 -
> Received: from ecto1 (jnm0-215 [192.168.0.215]) by jnm-main.pictureiq.com with SMTP 
>(Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
>   id HMS1GX6X; Tue, 10 Apr 2001 11:54:00 -0700
> From: "William Wishon" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: RE: virtual hosts on different ports
> Date: Tue, 10 Apr 2001 11:48:33 -0700
> Keywords: MailingLists
> Message-ID: <[EMAIL PROTECTED]>
> MIME-Version: 1.0
> Content-Type: text/plain;
>   charset="iso-8859-1"
> Content-Transfer-Encoding: 7bit
> X-Priority: 3 (Normal)
> X-MSMail-Priority: Normal
> X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
> In-Reply-To: <B9D7EB6E06F0D1119AA800A0C9C74B4A2731C7@STR_CONNECT2>
> Importance: Normal
> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
> 
> You can configure tomcat to listen on multiple ports, but you cannot
> restrict particular contexts to particular ports.  If you setup tomcat to
> listen on ports 8080 and 8082 then all of your contexts become available on
> both ports.  Using virtual hosts you can restrict particular contexts to
> particular virtual hosts, but all virtual hosts are available on all ports.
> 
> That's what I found when I did some research and code archeology a little
> while ago. I wanted to separate two contexts by restricting the first
> context to the first port, and assigning the second context to the second
> port.
> 
> -Bill
> 
> > -Original Message-
> > From: Chris Andreou [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, April 10, 2001 11:30 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: virtual hosts on different ports
> >
> >
> > you can create different contexts that listen on different ports
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, April 10, 2001 1:22 PM
> > To: [EMAIL PROTECTED]
> > Subject: virtual hosts on different ports
> >
> >
> > Hi,
> >
> >  Can I configure TOMCAT virutal hosts on different ports, not ip
> > addresses?
> > I seen this question asked in the archives but there was no responses.
> >
> > Dave
> 





RE: Virtual Hosts problem with Singleton Class

2002-02-18 Thread Mark Ayad

something your missing

A Singleton by it's name creates only a single instance of an object (hence
it marshalls object creation i.e. one instance) which is totally acceptable
for a DB connection pool.

Regards

Mark

-Original Message-
From: Haris Papadopoulos [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2002 08:38
To: [EMAIL PROTECTED]
Subject: Virtual Hosts problem with Singleton Class


Hi,
I 've configured two virtual hosts under Tomcat 4.0.1 working with Apache
1.3.20. They both load (on startup) a Servlet which creates a Singleton
object that (in turn) creates a DB pool. Both servlets are defined in the
separate web.xml files.
It seems that the second servlet does not create the pooling object but
instead it gets an Instance of the one created by the first one (strange
enough since they exist in different contexts).
Everything else seems to work in the appropriate virtual host context. Is
this a matter concerning Singleton objects and maybe a bug, or is there
something I 'm missing?
We 're trying to migrate to Tomcat from Resin and I haven't found any
relative info so far regarding this problem.
Thanks in advance.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




  1   2   >