tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert L Sowders" <rsowd...@usgs.gov>
Subject RE: JK and multiple virtual hosts on Apache (repost)
Date Mon, 09 Dec 2002 23:44:36 GMT
When multiple hosting you usually auto-generate the file.  John turners 
web site has instructions on how to do this.
http://www.johnturner.com/howto/apache1-tomcat404-howto.html
See step 3.

rls





"Madere, Colin" <colin.madere@ieminc.com>
12/09/2002 02:04 PM
Please respond to "Tomcat Users List"

 
        To:     'Tomcat Users List' <tomcat-user@jakarta.apache.org>
        cc: 
        Subject:        RE: JK and multiple virtual hosts on Apache (repost)


Any chance you can get the workers.properties file this person used for
configuring JK?

> -----Original Message-----
> From:          Robert L Sowders [SMTP:rsowders@usgs.gov]
> Sent:          Monday, December 09, 2002 3:48 PM
> To:            Tomcat Users List
> Cc:            'Tomcat Users List'
> Subject:               RE: JK and multiple virtual hosts on Apache 
(repost)
> 
> Perhaps this document can help you a little.
> 
> rls
> 
> 
> 
> 
> 
> "Madere, Colin" <colin.madere@ieminc.com>
> 12/09/2002 12:13 PM
> Please respond to "Tomcat Users List"
> 
> 
>         To:     'Tomcat Users List' <tomcat-user@jakarta.apache.org>
>         cc: 
>         Subject:        RE: JK and multiple virtual hosts on Apache
> (repost)
> 
> 
> Those all reference JK2, but I'm using JK (since it is suggested you use 

> JK
> in production environments due to stability... not to mention the likely
> build problems I'll experience on Solaris 7 ).  Going to hack away at 
this
> for a while and then try to compile JK2 again if all fails.
> 
> And yes, I'm using IP-based Virtual Hosts on Apache.
> 
> 
> > -----Original Message-----
> > From:          Robert L Sowders [SMTP:rsowders@usgs.gov]
> > Sent:          Monday, December 09, 2002 2:48 AM
> > To:            Tomcat Users List
> > Subject:               RE: JK and multiple virtual hosts on Apache 
> (repost)
> > 
> > This has come up quite often in the past.  Search the archives for 
> > JkUriSet.  When using apache/modssl make sure you use IP based virtual 

> > hosts.
> > 
> > rls
> > 
> > 
> > 
> > 
> > 
> > "Madere, Colin" <colin.madere@ieminc.com>
> > 12/08/2002 08:00 PM
> > Please respond to "Tomcat Users List"
> > 
> > 
> >         To:     'Tomcat Users List' <tomcat-user@jakarta.apache.org>
> >         cc: 
> >         Subject:        RE: JK and multiple virtual hosts on Apache
> > (repost)
> > 
> > 
> > Thanks for the input, but I don't want any port numbers in the URLs 
for 
> a
> > number of reasons.  Hence my use of the JK connector (that and only 
> > wanting
> > to set up SSL through Apache and not Tomcat).
> > 
> > I'm quite surprised no one else on this list has a setup similar to 
what
> 
> 
> > I'm
> > doing....
> > 
> > > -----Original Message-----
> > > From:          David Brown [SMTP:dwbrown@webitplanet.com]
> > > Sent:          Friday, December 06, 2002 7:48 PM
> > > To:            'Tomcat Users List'
> > > Subject:               Re: JK and multiple virtual hosts on Apache 
> > (repost)
> > > 
> > > Madere, Colin writes: 
> > > 
> > > > I might have had some list trouble so I'm reposting this (since I 
> got 
> > no
> > > > responses so far). 
> > > > 
> > > >> -----Original Message-----
> > > >> From:               Madere, Colin [SMTP:colin.madere@ieminc.com]
> > > >> Sent:               Thursday, December 05, 2002 5:55 PM
> > > >> To:                 'tomcat-user@jakarta.apache.org'
> > > >> Subject:            4 Apache2 VirtualHosts + 1 Tomcat4 = ? JK 
> > connectors? 
> > > >> 
> > > >> Before I go off into JK configuration craziness, I thought I'd 
post
> 
> 
> > my
> > > >> situation and see what rises to the top. 
> > > >> 
> > > >> What I have: 
> > > >> 
> > > >> 1 Apache 2.0.43 with 4 virutal hosts (3 w/ SSL)
> > > >> 1 Tomcat 4.12 (no virtual hosts as of yet)
> > > >> 1 JK 1.2.0 connector working properly with the non-SSL host from 
> > Apache
> > > 
> > > >> 
> > > >> What I want to do: 
> > > >> 
> > > >> Have any requests for apps running on Tomcat from any of the 4 
> > virtual
> > > >> hosts
> > > >> to be redirected to the same Tomcat instance.  This is mainly for
> > > >> simplicity
> > > >> since I will be using Tomcat Realms for login to determine what 
to 
> do
> > > for
> > > >> a
> > > >> user in the app based on role.  If I have to do 4 virtual hosts 
in
> > > Tomcat,
> > > >> then let me know :) 
> > > >> 
> > > >> Is the "correct" way to make this work with JK to create 4 
> > <Connector>
> > > >> instances at, say, ports 8009-8012 in my tomcat server.xml, then 
> set 
> > up
> > > 4
> > > >> JK
> > > >> workers in "workers.properties" with each respective virtual 
host's
> > > domain
> > > >> name and redirection port?  Or is there some way to use a single
> > > >> connector?
> > > >> (I'm guessing NOT the latter due to the port probably being bound


> by
> > > the
> > > >> connector process) 
> > > >> 
> > > >> Having said this and if my former idea is the "correct" way, for 
> the 
> > JK
> > > >> connector entry in my Tomcat server.xml, is the "redirectPort"
> > > arbitrarily
> > > >> chosen?  I have 8443 in for my single connector/site/host setup, 
> > would
> > > I
> > > >> simply use 8443-8446? 
> > > >> 
> > > >> Any input on this setup appreciated. 
> > > >> 
> > > >> 
> > > >> --
> > > >> 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> 
> > > > 
> > > 
> > > 
> > > Hello Colin, i'm unsure about advising on this because i'm running 
the
> 
> 
> > > non-threading apache 1.3.27. i have a very similar setup as u 
describe
> > > that 
> > > works 4 me: i have 4 virtual hosts running on the public wire plus a 

> dns
> > 
> > 
> > > server. the virtual hosts 4 defined in apache only w/ all https 
> > JDBCRealm 
> > > protected directories serving jsp and servlets redirected from 
apache 
> on
> > 
> > 
> > > port 8443. all https cgi-bin is redirected through port 443. 
otherwise
> 
> 
> > all
> > > 
> > > http is port 80 and 8080 for jsp/servlets. this config is pretty 
much 
> > > "out-of-the-box" w/o any undue config on the tc side except for the 
> > > JDBCRealm and a custom web.xml for each webapp both secure and 
> > non-secure.
> > > 
> > > only server.xml editing done was basically to uncomment the 
connectors
> 
> 
> > for
> > > 
> > > port 8443 (ssl and non-ssl connectors). no extra stuff like <Host> 
> tags 
> > or
> > > 
> > > anything like that to confuse the issue. hope this helps, david. 
> > > 
> > > 
> > > --
> > > 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>
> 
> 
>  << File: Tomcat Virtaul.txt >>  << File: ATT170096.txt >> 

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





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


Mime
View raw message