manager for address-based virtual hosts?

2005-10-05 Thread Paul Singleton

Is there a version of the Manager app which
handles all address-based virtual hosts in a
Tomcat system?

I've tried ManagerX which embraces name-based
hosts but not the address-based ones which our
SSL-enabled apps require...

Paul Singleton


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.10/119 - Release Date: 4/Oct/2005


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



Virtual hosts and Threads

2005-09-28 Thread Mahesh S Kudva
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.

Host name=vhost.domain.com debug=0 appBase=”deploy” 
unpackWARs=true
Aliaswww.vhost.domain.com/Alias
Logger className=org.apache.catalina.logger.FileLogger
directory=${jboss.server.home.dir}/log prefix=vhost_log1. 
suffix=.log timestamp=true/
 Context path= 
docBase=${jboss.server.home.dir}/deploy/application.war debug=0 
reloadable=true/
 /Host

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.

Context path=application 
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]



Re: Manager webapp and virtual hosts

2005-09-28 Thread Dan Baggott
Mikolaj,

Hi.  Sorry to bother you but I saw this posting on the Tomcat list and
was wondering if you were able to successfully set up what you
describe?

I have mod_jk working fine and I'm now trying to do exactly what you mentioned:

my1.domain.com (apache + mod_jk) ===   tomcat.domain.com/webapp1
my2.domain.com (apache + mod_jk) === tomcat.domain.com/webapp2

So far I haven't had much success.  If you've gained any insights that
you can share with me, I'd be very grateful.

Cheers,

Dan

On 8/25/05, Mikolaj Rydzewski [EMAIL PROTECTED] wrote:
 Hello,

 My configuration is very simple: tomcat listens on localhost with
 various apps in their contexts. Now I'd like to setup a virtual host for
 another one. Will it be possible to deploy/reload such application using
 manager webapp running on localhost? In other words: do I have to
 install separate manager webapp for each virtual host?

 And the second question is: is it possible to connect apache with
 virtual host + mod_jk + tomcat with webapp in it's context? I.e.:

 my1.domain.com (apache + mod_jk) ===   tomcat.domain.com/webapp1
 my2.domain.com (apache + mod_jk) === tomcat.domain.com/webapp2

 ?

 --
 Mikolaj Rydzewski  [EMAIL PROTECTED]
 Becomo S.A.
 tel. (12) 2927104



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


Host name=vhost.domain.com debug=0 appBase=”deploy” 
unpackWARs=true

Aliaswww.vhost.domain.com/Alias
Logger className=org.apache.catalina.logger.FileLogger
directory=${jboss.server.home.dir}/log prefix=vhost_log1. 
suffix=.log timestamp=true/
 Context path= 
docBase=${jboss.server.home.dir}/deploy/application.war debug=0 
reloadable=true/

 /Host

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.


Context path=application 
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: Help figuring out Virtual Hosts

2005-09-17 Thread Jilles van Gurp
You can use multiple hosttags in the server.xml, each with their own 
context. As described here

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html

One or more Host elements are nested inside an Engine element. Inside 
the Host element, you can nest Context elements for the web applications 
associated with this virtual host. Exactly one of the Hosts associated 
with each Engine MUST have a name matching the defaultHost attribute of 
that Engine.


You give each application its own host and it should work fine. You can 
also use alias tags inside a host tag if you want an application to be 
available for multiple hosts.


Jilles



Dola Woolfe wrote:

Hi,

I've certainly RTFM'd and had thoroughly read

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Host%20Name%20Aliases

but I just can't figure out how to get virtual servers
to work.

Basically, assume that DNS is set up properly and that
ServerA.com ServerB.com and Server.com resolve to the
same IP. Now, I want ServerA.com to go to
Server.com/MyAppA/index.jsp and ServerB.com to go to
Server.com/MyAppB/index.jsp. This, in my mind is sort
of like how Apache lets you do it, where of course it
takes advantage of the convention of index.html being
the default destination.

OK, how do I achieve this with Tomcat? Could anyone
please provide a specific example?

Many thanks,

Dola



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.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

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

VirtualHost *.*.*.*: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
/VirtualHost
-
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
Location /jkstatus/
JkMount status
Allow from 127.0.0.1
Deny from All
/Location

--
Server.xml
-

Host name=webapp.domain.com debug=0 appBase=deploy 
unpackWARs=true
Aliaswww.webapp.domain.com/Alias
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=webapp_log1. suffix=.log 
timestamp=true/
Context path= 
docBase=${jboss.server.home.dir}/deploy/webapp.war debug=0 
reloadable=true/
/Host

--
--
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 tomcat-user@jakarta.apache.org
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 host elements in my server.xml...
 
   Host name=app01.myserver.com
 appBase=webapps
 autoDeploy=true
 deployOnStartup=true
 deployXML=true
 unpackWARs=true
 xmlValidation=false
 xmlNamespaceAware=false /
 
   Host name=app02.myserver.com
 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
 host
 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

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 Host  ...  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 tomcat-user@jakarta.apache.org
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

VirtualHost *.*.*.*: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
/VirtualHost
-
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
Location /jkstatus/
JkMount status
Allow from 127.0.0.1
   Deny from All
/Location

--
Server.xml
-

Host name=webapp.domain.com debug=0 appBase=deploy
unpackWARs=true
Aliaswww.webapp.domain.com/Alias
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=webapp_log1. suffix=.log
timestamp=true/
Context path=
docBase=${jboss.server.home.dir}/deploy/webapp.war debug=0
reloadable=true/
/Host

--
--
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 tomcat-user@jakarta.apache.org
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 host elements in my server.xml...

  Host name=app01.myserver.com
appBase=webapps
autoDeploy=true
deployOnStartup=true
deployXML=true
unpackWARs=true
xmlValidation=false
xmlNamespaceAware=false /

  Host name=app02.myserver.com
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
host
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

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:

Engine defaultHost=localhost name=Catalina

 Host appBase=webapps name=localhost
   Logger className=org.apache.catalina.logger.FileLogger
suffix=.txt prefix=localhost_log. timestamp=true/
Valve className=org.apache.catalina.valves.AccessLogValve
fileDateFormat=-MM-dd suffix=.txt/
 /Host

 Host appBase=webapps/some_host name=some_host.com
   Logger className=org.apache.catalina.logger.FileLogger
suffix=.txt prefix=some_host_log. timestamp=true/
   Valve className=org.apache.catalina.valves.AccessLogValve
fileDateFormat=-MM-dd suffix=.txt/
 /Host

 Logger className=org.apache.catalina.logger.FileLogger
suffix=.txt prefix=catalina_log. timestamp=true/
 Realm className=org.apache.catalina.realm.UserDatabaseRealm/
   /Engine

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]



Help figuring out Virtual Hosts

2005-09-16 Thread Dola Woolfe
Hi,

I've certainly RTFM'd and had thoroughly read

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Host%20Name%20Aliases

but I just can't figure out how to get virtual servers
to work.

Basically, assume that DNS is set up properly and that
ServerA.com ServerB.com and Server.com resolve to the
same IP. Now, I want ServerA.com to go to
Server.com/MyAppA/index.jsp and ServerB.com to go to
Server.com/MyAppB/index.jsp. This, in my mind is sort
of like how Apache lets you do it, where of course it
takes advantage of the convention of index.html being
the default destination.

OK, how do I achieve this with Tomcat? Could anyone
please provide a specific example?

Many thanks,

Dola



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



RE: Help figuring out Virtual Hosts

2005-09-16 Thread Durfee, Bernard
Dola,
I believe in order to serve static content you'll need to create a
context XML file. I just posted an email outlining how I was able to get
virtual hosting working. An additional step in your case would be to
create a file [TOMCAT]/conf/Catalina/servera.com/ROOT.xml and include a
context definition. The your content would reside in the
[TOMCAT]/webapps-servera.com directory.

Bernie



 -Original Message-
 From: Dola Woolfe [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 16, 2005 2:44 PM
 To: Tom Cat
 Subject: Help figuring out Virtual Hosts
 
 
 Hi,
 
 I've certainly RTFM'd and had thoroughly read
 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.ht
ml#Host%20Name%20Aliases
 
 but I just can't figure out how to get virtual servers
 to work.
 
 Basically, assume that DNS is set up properly and that 
 ServerA.com ServerB.com and Server.com resolve to the same 
 IP. Now, I want ServerA.com to go to 
 Server.com/MyAppA/index.jsp and ServerB.com to go to 
 Server.com/MyAppB/index.jsp. This, in my mind is sort of like 
 how Apache lets you do it, where of course it takes advantage 
 of the convention of index.html being the default destination.
 
 OK, how do I achieve this with Tomcat? Could anyone
 please provide a specific example?
 
 Many thanks,
 
 Dola
 
 
   
 __ 
 Yahoo! Mail - PC Magazine Editors' Choice 2005 
 http://mail.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]



Virtual Hosts

2005-09-15 Thread Durfee, Bernard
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]



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]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
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.
/FONT


-
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 host elements in my server.xml...

  Host name=app01.myserver.com
appBase=webapps
autoDeploy=true
deployOnStartup=true
deployXML=true
unpackWARs=true
xmlValidation=false
xmlNamespaceAware=false /

  Host name=app02.myserver.com
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 host
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]
  
  
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
 ---
 QAS Ltd.
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
 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. /FONT
 
 
 -
 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 host elements in my server.xml...

 Host name=app01.myserver.com
   appBase=webapps
   autoDeploy=true
   deployOnStartup=true
   deployXML=true
   unpackWARs=true
   xmlValidation=false
   xmlNamespaceAware=false /

 Host name=app02.myserver.com
   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 host
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]


 

FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---

QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
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. /FONT



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



Got trouble with virtual hosts

2005-08-29 Thread rueh hänä
Hi there

I dont know, what term to search for.. so excuse me, if there is already a
similar problem

I'm running a Webserver on Fedora Core 4

- Apache 2.0.54
- tomcat5-5.0.30-5jpp_6fc

I want to run about 13 Websites (html and jsp) over one virtual host. So i
defined NameVirtualHost 192.168.0.170 in httpd.conf. After this entry i
added the websites. For example:

-
VirtualHost 192.168.0.170:80
  ServerName www.website.ch
  DocumentRoot /drbd/www/html/www.website.ch
  JKMount /*.jsp tomcat-worker1
  JKMount /*/servlet/ tomcat-worker1
  JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
  DirectoryIndex index.jsp index.html index.php index.htm index.shtml
index.cgi
  Location /WEB-INF/
   AllowOverride None
   deny from all
  /Location
  Location /META-INF/
   AllowOverride None
   deny from all
  /Location
/VirtualHost


The server.xml entry for this site is:
--
Host name=www.k-exp.ch debug=0 appBase=/drbd/www/html/www.website.ch
unpackWARs=true autoDeploy=true
Valve className=org.apache.catalina.valves.AccessLogValve
   directory=/var/log/tomcat5/
   prefix=www.kexp.ch-access.
   suffix=.log
   resolveHosts=true
   pattern=combined/
Logger className=org.apache.catalina.logger.FileLogger
directory=/var/log/tomcat5/  prefix=www.kexp.ch_log.
suffix=.txt
timestamp=false/

Context path= docBase= debug=0/

Realm className=org.apache.catalina.realm.MemoryRealm
   pathname=/drbd/www/html/www.k-exp.ch/WEB-INF/users.xml/
  /Host
-

I'm replacing the actually active server with a new one. I overtook the
config-files from the active server, so they should work. The only change is
that thing with the virtual hosts. In the old config, all sites had their
own virtualhost setting (= several virtual network interfaces). It would be
much more simple, when i only had one virtual host. 
But, if i want to access a jsp website, i get an internal server error
mesage. 
HTML-Sites work properly. 

It seems, that tomcat cant translate the hostnames defined in httpd.conf.
Can only apache do this? Or do i have to do some additional changes to my
configs?

Any idea? Thanks for help beforehand!

-- 
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

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



Re: Got trouble with virtual hosts

2005-08-29 Thread Parsons Technical Services
Unless there is another reason, why not drop Apache and run only Tomcat? It 
can handle the virtual hosts just fine.


This would simplify the setup considerably.

Doug


- Original Message - 
From: rueh hänä [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 6:58 AM
Subject: Got trouble with virtual hosts



Hi there

I dont know, what term to search for.. so excuse me, if there is already a
similar problem

I'm running a Webserver on Fedora Core 4

- Apache 2.0.54
- tomcat5-5.0.30-5jpp_6fc

I want to run about 13 Websites (html and jsp) over one virtual host. So i
defined NameVirtualHost 192.168.0.170 in httpd.conf. After this entry i
added the websites. For example:

-
VirtualHost 192.168.0.170:80
 ServerName www.website.ch
 DocumentRoot /drbd/www/html/www.website.ch
 JKMount /*.jsp tomcat-worker1
 JKMount /*/servlet/ tomcat-worker1
 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 DirectoryIndex index.jsp index.html index.php index.htm index.shtml
index.cgi
 Location /WEB-INF/
  AllowOverride None
  deny from all
 /Location
 Location /META-INF/
  AllowOverride None
  deny from all
 /Location
/VirtualHost


The server.xml entry for this site is:
--
Host name=www.k-exp.ch debug=0 
appBase=/drbd/www/html/www.website.ch

unpackWARs=true autoDeploy=true
   Valve className=org.apache.catalina.valves.AccessLogValve
  directory=/var/log/tomcat5/
  prefix=www.kexp.ch-access.
  suffix=.log
  resolveHosts=true
  pattern=combined/
   Logger className=org.apache.catalina.logger.FileLogger
   directory=/var/log/tomcat5/  prefix=www.kexp.ch_log.
suffix=.txt
   timestamp=false/

   Context path= docBase= debug=0/

   Realm className=org.apache.catalina.realm.MemoryRealm
  pathname=/drbd/www/html/www.k-exp.ch/WEB-INF/users.xml/
 /Host
-

I'm replacing the actually active server with a new one. I overtook the
config-files from the active server, so they should work. The only change 
is

that thing with the virtual hosts. In the old config, all sites had their
own virtualhost setting (= several virtual network interfaces). It would 
be

much more simple, when i only had one virtual host.
But, if i want to access a jsp website, i get an internal server error
mesage.
HTML-Sites work properly.

It seems, that tomcat cant translate the hostnames defined in httpd.conf.
Can only apache do this? Or do i have to do some additional changes to my
configs?

Any idea? Thanks for help beforehand!

--
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: 
http://www.gmx.net/de/go/dsl


-
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: Got trouble with virtual hosts

2005-08-29 Thread rueh hänä
Because im running normal HTML sites, too. I need another solution, if even
possible...


 --- Ursprüngliche Nachricht ---
 Von: Parsons Technical Services [EMAIL PROTECTED]
 An: Tomcat Users List tomcat-user@jakarta.apache.org
 Betreff: Re: Got trouble with virtual hosts
 Datum: Mon, 29 Aug 2005 07:41:50 -0400
 
 Unless there is another reason, why not drop Apache and run only Tomcat?
 It 
 can handle the virtual hosts just fine.
 
 This would simplify the setup considerably.
 
 Doug
 
 
 - Original Message - 
 From: rueh hänä [EMAIL PROTECTED]
 To: tomcat-user@jakarta.apache.org
 Sent: Monday, August 29, 2005 6:58 AM
 Subject: Got trouble with virtual hosts
 
 
  Hi there
 
  I dont know, what term to search for.. so excuse me, if there is already
 a
  similar problem
 
  I'm running a Webserver on Fedora Core 4
 
  - Apache 2.0.54
  - tomcat5-5.0.30-5jpp_6fc
 
  I want to run about 13 Websites (html and jsp) over one virtual host. So
 i
  defined NameVirtualHost 192.168.0.170 in httpd.conf. After this entry i
  added the websites. For example:
 
  -
  VirtualHost 192.168.0.170:80
   ServerName www.website.ch
   DocumentRoot /drbd/www/html/www.website.ch
   JKMount /*.jsp tomcat-worker1
   JKMount /*/servlet/ tomcat-worker1
   JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
   DirectoryIndex index.jsp index.html index.php index.htm index.shtml
  index.cgi
   Location /WEB-INF/
AllowOverride None
deny from all
   /Location
   Location /META-INF/
AllowOverride None
deny from all
   /Location
  /VirtualHost
  
 
  The server.xml entry for this site is:
  --
  Host name=www.k-exp.ch debug=0 
  appBase=/drbd/www/html/www.website.ch
  unpackWARs=true autoDeploy=true
 Valve className=org.apache.catalina.valves.AccessLogValve
directory=/var/log/tomcat5/
prefix=www.kexp.ch-access.
suffix=.log
resolveHosts=true
pattern=combined/
 Logger className=org.apache.catalina.logger.FileLogger
 directory=/var/log/tomcat5/  prefix=www.kexp.ch_log.
  suffix=.txt
 timestamp=false/
 
 Context path= docBase= debug=0/
 
 Realm className=org.apache.catalina.realm.MemoryRealm
pathname=/drbd/www/html/www.k-exp.ch/WEB-INF/users.xml/
   /Host
  -
 
  I'm replacing the actually active server with a new one. I overtook the
  config-files from the active server, so they should work. The only
 change 
  is
  that thing with the virtual hosts. In the old config, all sites had
 their
  own virtualhost setting (= several virtual network interfaces). It
 would 
  be
  much more simple, when i only had one virtual host.
  But, if i want to access a jsp website, i get an internal server error
  mesage.
  HTML-Sites work properly.
 
  It seems, that tomcat cant translate the hostnames defined in
 httpd.conf.
  Can only apache do this? Or do i have to do some additional changes to
 my
  configs?
 
  Any idea? Thanks for help beforehand!
 
  -- 
  GMX DSL = Maximale Leistung zum minimalen Preis!
  2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: 
  http://www.gmx.net/de/go/dsl
 
  -
  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]
 

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner

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



Re: Got trouble with virtual hosts

2005-08-29 Thread Parsons Technical Services

Tomcat will handle them just fine with the current releases.

With the current versions of Tomcat, unless you are doing something special 
that requires a feature of Apache that is not in Tomcat, you can host 
multiple sites just fine. If load is an issue, take a look a the clustering. 
Otherwise just set up Tomcat with the virtual host and enjoy the simplicity.


Start here:

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/engine.html

Then read the link for host. Simply put, for each website put a host element
in for that site. But make sure you understand the default host.

Doug


- Original Message - 
From: rueh hänä [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 7:52 AM
Subject: Re: Got trouble with virtual hosts


Because im running normal HTML sites, too. I need another solution, if 
even

possible...



--- Ursprüngliche Nachricht ---
Von: Parsons Technical Services [EMAIL PROTECTED]
An: Tomcat Users List tomcat-user@jakarta.apache.org
Betreff: Re: Got trouble with virtual hosts
Datum: Mon, 29 Aug 2005 07:41:50 -0400

Unless there is another reason, why not drop Apache and run only Tomcat?
It
can handle the virtual hosts just fine.

This would simplify the setup considerably.

Doug


- Original Message - 
From: rueh hänä [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 6:58 AM
Subject: Got trouble with virtual hosts


 Hi there

 I dont know, what term to search for.. so excuse me, if there is 
 already

a
 similar problem

 I'm running a Webserver on Fedora Core 4

 - Apache 2.0.54
 - tomcat5-5.0.30-5jpp_6fc

 I want to run about 13 Websites (html and jsp) over one virtual host. 
 So

i
 defined NameVirtualHost 192.168.0.170 in httpd.conf. After this entry i
 added the websites. For example:

 -
 VirtualHost 192.168.0.170:80
  ServerName www.website.ch
  DocumentRoot /drbd/www/html/www.website.ch
  JKMount /*.jsp tomcat-worker1
  JKMount /*/servlet/ tomcat-worker1
  JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
  DirectoryIndex index.jsp index.html index.php index.htm index.shtml
 index.cgi
  Location /WEB-INF/
   AllowOverride None
   deny from all
  /Location
  Location /META-INF/
   AllowOverride None
   deny from all
  /Location
 /VirtualHost
 

 The server.xml entry for this site is:
 --
 Host name=www.k-exp.ch debug=0
 appBase=/drbd/www/html/www.website.ch
 unpackWARs=true autoDeploy=true
Valve className=org.apache.catalina.valves.AccessLogValve
   directory=/var/log/tomcat5/
   prefix=www.kexp.ch-access.
   suffix=.log
   resolveHosts=true
   pattern=combined/
Logger className=org.apache.catalina.logger.FileLogger
directory=/var/log/tomcat5/  prefix=www.kexp.ch_log.
 suffix=.txt
timestamp=false/

Context path= docBase= debug=0/

Realm className=org.apache.catalina.realm.MemoryRealm
 
 pathname=/drbd/www/html/www.k-exp.ch/WEB-INF/users.xml/

  /Host
 -

 I'm replacing the actually active server with a new one. I overtook the
 config-files from the active server, so they should work. The only
change
 is
 that thing with the virtual hosts. In the old config, all sites had
their
 own virtualhost setting (= several virtual network interfaces). It
would
 be
 much more simple, when i only had one virtual host.
 But, if i want to access a jsp website, i get an internal server error
 mesage.
 HTML-Sites work properly.

 It seems, that tomcat cant translate the hostnames defined in
httpd.conf.
 Can only apache do this? Or do i have to do some additional changes to
my
 configs?

 Any idea? Thanks for help beforehand!

 -- 
 GMX DSL = Maximale Leistung zum minimalen Preis!

 2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat:
 http://www.gmx.net/de/go/dsl

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



--
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner

-
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: Got trouble with virtual hosts

2005-08-29 Thread rueh hänä
Hm, so it should work, i got an actual version.
I found out something new:
When i open one of these jsp-sites on my server, it works fine. If i open
additional jsp-sites, tomcat goes down and i have to restart it. The log of
the site gives this outpuot:


StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to initialize TldLocationsCache:
null
   at org.apache.jasper.compiler.TldLocationsCache.init() (Unknown Source)
   at
org.apache.jasper.compiler.TldLocationsCache.getLocation(java.lang.String)
(Unknown Source)
   at
org.apache.jasper.JspCompilationContext.getTldLocation(java.lang.String)
(Unknown Source)
   at
org.apache.jasper.compiler.Parser.parseTaglibDirective(org.apache.jasper.compiler.Node)
(Unknown Source)
   at
org.apache.jasper.compiler.Parser.parseDirective(org.apache.jasper.compiler.Node)
(Unknown Source)
   at
org.apache.jasper.compiler.Parser.parseElements(org.apache.jasper.compiler.Node)
(Unknown Source)
   at
org.apache.jasper.compiler.Parser.parse(org.apache.jasper.compiler.ParserController,
org.apache.jasper.compiler.JspReader, org.apache.jasper.compile
   at org.apache.jasper.compiler.ParserController.doParse(java.lang.String,
org.apache.jasper.compiler.Node, java.net.URL) (Unknown Source)
   at org.apache.jasper.compiler.ParserController.parse(java.lang.String)
(Unknown Source)
   at org.apache.jasper.compiler.Compiler.generateJava() (Unknown Source)
   at org.apache.jasper.compiler.Compiler.compile(boolean, boolean) (Unknown
Source)
   at org.apache.jasper.compiler.Compiler.compile(boolean) (Unknown Source)
   at org.apache.jasper.compiler.Compiler.compile() (Unknown Source)
   at org.apache.jasper.JspCompilationContext.compile() (Unknown Source)
   at
org.apache.jasper.servlet.JspServletWrapper.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, boolean) (Unknown
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, java.lang.String,
   at
org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) (Unknown Source)
   at javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(org.apache.catalina.Request,
org.apache.catalina.Response, org.apache.catalina.ValveContext) (U
   at
org.apache.catalina.core.StandardValveContext.invokeNext(org.apache.catalina.Request,
org.apache.catalina.Response) (Unknown Source)
   at
org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (Unknown Source)

 --- Ursprüngliche Nachricht ---
 Von: Parsons Technical Services [EMAIL PROTECTED]
 An: Tomcat Users List tomcat-user@jakarta.apache.org
 Betreff: Re: Got trouble with virtual hosts
 Datum: Mon, 29 Aug 2005 08:00:59 -0400
 
 Tomcat will handle them just fine with the current releases.
 
 With the current versions of Tomcat, unless you are doing something
 special 
 that requires a feature of Apache that is not in Tomcat, you can host 
 multiple sites just fine. If load is an issue, take a look a the
 clustering. 
 Otherwise just set up Tomcat with the virtual host and enjoy the
 simplicity.
 
 Start here:
 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/engine.html
 
 Then read the link for host. Simply put, for each website put a host
 element
 in for that site. But make sure you understand the default host.
 
 Doug
 
 
 - Original Message - 
 From: rueh hänä [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Monday, August 29, 2005 7:52 AM
 Subject: Re: Got trouble with virtual hosts
 
 
  Because im running normal HTML sites, too. I need another solution, if 
  even
  possible...
 
 
  --- Ursprüngliche Nachricht ---
  Von: Parsons Technical Services [EMAIL PROTECTED]
  An: Tomcat Users List tomcat-user@jakarta.apache.org
  Betreff: Re: Got trouble with virtual hosts
  Datum: Mon, 29 Aug 2005 07:41:50 -0400
 
  Unless there is another reason, why not drop Apache and run only
 Tomcat?
  It
  can handle the virtual hosts just fine.
 
  This would simplify the setup considerably.
 
  Doug
 
 
  - Original Message - 
  From: rueh hänä [EMAIL PROTECTED]
  To: tomcat-user@jakarta.apache.org
  Sent: Monday, August 29, 2005 6:58 AM
  Subject: Got trouble with virtual hosts
 
 
   Hi there
  
   I dont know, what term to search for.. so excuse me, if there is 
   already
  a
   similar problem
  
   I'm running a Webserver on Fedora Core 4
  
   - Apache

Re: Manager webapp and virtual hosts

2005-08-27 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

VirtualHost *.*.*.*:80
ServerName webapp.robosoft.co.in
ServerAlias www.webapp.robosoft.co.in
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
/VirtualHost
-
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
Location /jkstatus/
JkMount status
Allow from all
/Location

--
Server.xml
-

Host name=webapp.domain.com debug=0 appBase=deploy 
unpackWARs=true
Aliaswww.webapp.domain.com/Alias
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=webapp_log1. suffix=.log 
timestamp=true/
Context path= 
docBase=${jboss.server.home.dir}/deploy/webapp.war debug=0 
reloadable=true/
/Host

--
--
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: David Delbecq [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Date: Thu, 25 Aug 2005 14:01:46 +0200
Subject: Re: Manager webapp and virtual hosts

 Le Jeudi 25 Août 2005 13:55, Mikolaj Rydzewski a écrit :
  Hello,
  
  My configuration is very simple: tomcat listens on localhost with 
  various apps in their contexts. Now I'd like to setup a virtual host
 for 
  another one. Will it be possible to deploy/reload such application
 using 
  manager webapp running on localhost? In other words: do I have to 
  install separate manager webapp for each virtual host?
 
 For 1st part, did it here (2 sets of webapp depending on hostname
 used), must have 
 the manager webapp deployed in each host (actually a soft link on
 unix having webapps-for-somespecial-hostname/manager points to
 webapps/manager is enough)
 
  
  And the second question is: is it possible to connect apache with 
  virtual host + mod_jk + tomcat with webapp in it's context? I.e.:
  
  my1.domain.com (apache + mod_jk) ===   tomcat.domain.com/webapp1
  my2.domain.com (apache + mod_jk) === tomcat.domain.com/webapp2
  
  ?
  
 
 -- 
 David Delbecq
 Royal Meteorological Institute of Belgium
 
 -
 Is there life after /sbin/halt -p?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



---
Robosoft Technologies - Partners in Product Development



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



Manager webapp and virtual hosts

2005-08-25 Thread Mikolaj Rydzewski

Hello,

My configuration is very simple: tomcat listens on localhost with 
various apps in their contexts. Now I'd like to setup a virtual host for 
another one. Will it be possible to deploy/reload such application using 
manager webapp running on localhost? In other words: do I have to 
install separate manager webapp for each virtual host?


And the second question is: is it possible to connect apache with 
virtual host + mod_jk + tomcat with webapp in it's context? I.e.:


my1.domain.com (apache + mod_jk) ===   tomcat.domain.com/webapp1
my2.domain.com (apache + mod_jk) === tomcat.domain.com/webapp2

?

--
Mikolaj Rydzewski  [EMAIL PROTECTED]
Becomo S.A.
tel. (12) 2927104



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



Re: Manager webapp and virtual hosts

2005-08-25 Thread David Delbecq
Le Jeudi 25 Août 2005 13:55, Mikolaj Rydzewski a écrit :
 Hello,
 
 My configuration is very simple: tomcat listens on localhost with 
 various apps in their contexts. Now I'd like to setup a virtual host for 
 another one. Will it be possible to deploy/reload such application using 
 manager webapp running on localhost? In other words: do I have to 
 install separate manager webapp for each virtual host?

For 1st part, did it here (2 sets of webapp depending on hostname used), must 
have 
the manager webapp deployed in each host (actually a soft link on
unix having webapps-for-somespecial-hostname/manager points to
webapps/manager is enough)

 
 And the second question is: is it possible to connect apache with 
 virtual host + mod_jk + tomcat with webapp in it's context? I.e.:
 
 my1.domain.com (apache + mod_jk) ===   tomcat.domain.com/webapp1
 my2.domain.com (apache + mod_jk) === tomcat.domain.com/webapp2
 
 ?
 

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



RE: Manager webapp and virtual hosts

2005-08-25 Thread GB Developer
another option is to use this:
http://www.talika.org/tms/

I'm using it on three tomcat 5.0.29 servers, each with a dozen or so vhosts,
and it works great. 



 -Original Message-
 From: David Delbecq [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, August 25, 2005 7:02 AM
 To: Tomcat Users List
 Subject: Re: Manager webapp and virtual hosts
 
 
 Le Jeudi 25 Août 2005 13:55, Mikolaj Rydzewski a écrit :
  Hello,
  
  My configuration is very simple: tomcat listens on localhost with
  various apps in their contexts. Now I'd like to setup a 
 virtual host for 
  another one. Will it be possible to deploy/reload such 
 application using 
  manager webapp running on localhost? In other words: do I have to 
  install separate manager webapp for each virtual host?
 
 For 1st part, did it here (2 sets of webapp depending on 
 hostname used), must have 
 the manager webapp deployed in each host (actually a soft 
 link on unix having webapps-for-somespecial-hostname/manager 
 points to webapps/manager is enough)


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



Virtual Hosts In Tomcat

2005-08-25 Thread Dennis Harris
Hi,
 
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.
 
Any help would be appreciated. By the way, I am a newbie with Tomcat.
 
Thanks.
 
D.


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:

Server
  Service
Connector/
Engine defaultHost=localhost
  Host name=localhost/
  Host name=dev.example.com/
  Host name=cool.example.com/
/Engine
  /Service
/Server


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]



Multiple virtual hosts NEWBIE (UNCLASSIFIED)

2005-08-17 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

Hey everyone,

I am new to this whole thing.  I just bought a domain HYPERLINK www.xxx.com
www.xxx.com and will start developing my own app/website and will deploy it
under Tomcat (The hosting company supports it).
Now my friend has a domain HYPERLINK www.yyy.com www.yyy.com registered with
yahoo which will be moved to the new company's DNS servers since yahoo
doesn't have any support for tomcat.
The question is how am I gonna host these two sites on the same tomcat
instance ? Is this done through tomcat ? Is it even possible ?
The hosting company supports having multiple domains under one main domain.

Any suggestions ? Or maybe if you know of a good hosting company that
supports tomcat, JSP/Servlets.

I appreciate your input

-Fadi
Classification:  UNCLASSIFIED 
Caveats: NONE



Re: Multiple virtual hosts NEWBIE (UNCLASSIFIED)

2005-08-17 Thread Hassan Schroeder



The question is how am I gonna host these two sites on the same tomcat
instance ? Is this done through tomcat ? Is it even possible ?
The hosting company supports having multiple domains under one main domain.

Any suggestions ?


Yes -- read the excellent Tomcat Configuration reference for the
version of Tomcat you're running.

Also, you may find the learning curve shorter if you install that
version on your desktop system to experiment with...

FWIW!
--
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: Multiple virtual hosts NEWBIE (UNCLASSIFIED)

2005-08-17 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

Hassan, 

I appreciate your input.  I went onto the site and I can't seem to find what
I need.
Could anyone please supply me with the URL of a reference manual ? I am
using version 5.5.8

Thanks in advance. 

-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 17, 2005 9:23 AM
To: Tomcat Users List
Subject: Re: Multiple virtual hosts NEWBIE (UNCLASSIFIED)


 The question is how am I gonna host these two sites on the same tomcat 
 instance ? Is this done through tomcat ? Is it even possible ?
 The hosting company supports having multiple domains under one main
domain.
 
 Any suggestions ?

Yes -- read the excellent Tomcat Configuration reference for the version of
Tomcat you're running.

Also, you may find the learning curve shorter if you install that version on
your desktop system to experiment with...

FWIW!
--
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]
Classification:  UNCLASSIFIED 
Caveats: NONE


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



Re: Multiple virtual hosts NEWBIE (UNCLASSIFIED)

2005-08-17 Thread Hassan Schroeder



I appreciate your input.  I went onto the site and I can't seem to find what
I need.
Could anyone please supply me with the URL of a reference manual ? I am
using version 5.5.8


http://jakarta.apache.org/tomcat/tomcat-5.5-doc/

Good luck,
--
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: Multiple virtual hosts NEWBIE (UNCLASSIFIED)

2005-08-17 Thread Parsons Technical Services

Start here:

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/engine.html

Then read the link for host. Simply put, for each website put a host element 
in for that site. But make sure you understand the default host.


Doug


- Original Message - 
From: Hassan Schroeder [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, August 17, 2005 10:01 AM
Subject: Re: Multiple virtual hosts NEWBIE (UNCLASSIFIED)




I appreciate your input.  I went onto the site and I can't seem to find 
what

I need.
Could anyone please supply me with the URL of a reference manual ? I am
using version 5.5.8


http://jakarta.apache.org/tomcat/tomcat-5.5-doc/

Good luck,
--
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]







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



RE: Multiple virtual hosts NEWBIE (UNCLASSIFIED)

2005-08-17 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

Thanks for all your help. 

-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 17, 2005 10:21 AM
To: Tomcat Users List
Subject: Re: Multiple virtual hosts NEWBIE (UNCLASSIFIED)

Start here:

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/engine.html

Then read the link for host. Simply put, for each website put a host element
in for that site. But make sure you understand the default host.

Doug


- Original Message -
From: Hassan Schroeder [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, August 17, 2005 10:01 AM
Subject: Re: Multiple virtual hosts NEWBIE (UNCLASSIFIED)



 I appreciate your input.  I went onto the site and I can't seem to find 
 what
 I need.
 Could anyone please supply me with the URL of a reference manual ? I am
 using version 5.5.8

 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/

 Good luck,
 -- 
 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]


 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Classification:  UNCLASSIFIED 
Caveats: NONE


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



Manager servlet to manage virtual hosts

2005-07-27 Thread Manik Surtani

Hi,

I'm running TC 5.0.19 and have 8 virtual hosts on the box.

Each virtual host has a default (/) context with it's app deployed.

When I access tomcat on it's IP address on port 8080, I get the  
default tomcat root, with access to the admin and manager servlets.


Whenever I access the manager servlet though, I can only administer  
the root host and not contexts within the virtual hosts.


Essentially I need an easy mechanism to reload apps within the  
virtual hosts (wither via cmd line or www interface) without  
restarting tomcat or affecting the deployments on the other virtual  
hosts.


Any ideas on how I can best achieve this?

Thanks.
Manik

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



RE: Manager servlet to manage virtual hosts

2005-07-27 Thread Raghupathy,Gurumoorthy
You can do this with ant very nicely 

project name=Learning default=reloadContext basedir=.

target name=reloadContext
get dest=stop.txt
src=http://localhost:8080/manager/stop?path=/Learning; 
username=adminUserName password=adminPassword/
loadfile property=STOPOUTPUT
srcfile=stop.txt/loadfile
echo${STOPOUTPUT}/echo
delete file=stop.txt/delete

get dest=start.txt
src=http://localhost:8080/manager/start?path=/Learning; 
username=adminUserNAme password=adminPassword/
loadfile property=STARTOUTPUT
srcfile=start.txt/loadfile
echo${STARTOUTPUT}/echo
delete file=start.txt/delete  
/target

/project

The only thing you need to change is the
http://localhost:8080/manager/stop?path=/Learning; of it ...

So if you want to do for www.manik.com for context /Learning

Then it will be http://www.manik.com/manager/stop?path=/Learning and 


if you want to do for www.guru.com for context /Learning

Then it will be http://www.guru.com/manager/stop?path=/Learning 


Hope you find this useful 


Regards
Guru 

Guru Loves Tocmat and ant :)

Gurumoorthy Raghupathy
EMFS - Fidelity Investments International
Regret for the things we did can be tempered by time; it is regret for the
things we did not do that is inconsolable


To: tomcat-user@jakarta.apache.org
Subject: Manager servlet to manage virtual hosts


Hi,

I'm running TC 5.0.19 and have 8 virtual hosts on the box.

Each virtual host has a default (/) context with it's app deployed.

When I access tomcat on it's IP address on port 8080, I get the  
default tomcat root, with access to the admin and manager servlets.

Whenever I access the manager servlet though, I can only administer  
the root host and not contexts within the virtual hosts.

Essentially I need an easy mechanism to reload apps within the  
virtual hosts (wither via cmd line or www interface) without  
restarting tomcat or affecting the deployments on the other virtual  
hosts.

Any ideas on how I can best achieve this?

Thanks.
Manik

-
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: Manager servlet to manage virtual hosts

2005-07-27 Thread Manik Surtani



Hi there.

Yeah, this is pretty much what I want, only the problem is:

www.myserver.com:8080/manager exists, but www.myvh_1.com:8080/ 
manager and www.myvh_2.com:8080/manager, etc. does not exist ...


For some reason the manager servlet is not avbl on my virtual hosts  
and the manager on the main host can only manage contexts in that  
host.


Cheers,
Manik











On 27 Jul 2005, at 12:59, Raghupathy,Gurumoorthy wrote:



You can do this with ant very nicely

project name=Learning default=reloadContext basedir=.

target name=reloadContext
get dest=stop.txt
src=http://localhost:8080/manager/stop?path=/Learning;
username=adminUserName password=adminPassword/
loadfile property=STOPOUTPUT
srcfile=stop.txt/loadfile
echo${STOPOUTPUT}/echo
delete file=stop.txt/delete

get dest=start.txt
src=http://localhost:8080/manager/start?path=/Learning;
username=adminUserNAme password=adminPassword/
loadfile property=STARTOUTPUT
srcfile=start.txt/loadfile
echo${STARTOUTPUT}/echo
delete file=start.txt/delete
/target

/project

The only thing you need to change is the
http://localhost:8080/manager/stop?path=/Learning; of it ...

So if you want to do for www.manik.com for context /Learning

Then it will be http://www.manik.com/manager/stop?path=/Learning and


if you want to do for www.guru.com for context /Learning

Then it will be http://www.guru.com/manager/stop?path=/Learning


Hope you find this useful 


Regards
Guru

Guru Loves Tocmat and ant :)

Gurumoorthy Raghupathy
EMFS - Fidelity Investments International
Regret for the things we did can be tempered by time; it is regret  
for the

things we did not do that is inconsolable


To: tomcat-user@jakarta.apache.org
Subject: Manager servlet to manage virtual hosts


Hi,

I'm running TC 5.0.19 and have 8 virtual hosts on the box.

Each virtual host has a default (/) context with it's app deployed.

When I access tomcat on it's IP address on port 8080, I get the
default tomcat root, with access to the admin and manager servlets.

Whenever I access the manager servlet though, I can only administer
the root host and not contexts within the virtual hosts.

Essentially I need an easy mechanism to reload apps within the
virtual hosts (wither via cmd line or www interface) without
restarting tomcat or affecting the deployments on the other virtual
hosts.

Any ideas on how I can best achieve this?

Thanks.
Manik

-
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: Manager servlet to manage virtual hosts

2005-07-27 Thread Raghupathy,Gurumoorthy
You can copy the manager.xml ( context definition ) from the 
www.myserver.com:8080/ webapps directory to the virtualhost webapps
directory and restart tomcat ... Then it will be available ...

Regards
Guru 

-Original Message-
From: Manik Surtani [mailto:[EMAIL PROTECTED] 
Sent: 27 July 2005 14:05
To: Tomcat Users List
Subject: Re: Manager servlet to manage virtual hosts



 Hi there.

 Yeah, this is pretty much what I want, only the problem is:

 www.myserver.com:8080/manager exists, but www.myvh_1.com:8080/ 
 manager and www.myvh_2.com:8080/manager, etc. does not exist ...

 For some reason the manager servlet is not avbl on my virtual hosts  
 and the manager on the main host can only manage contexts in that  
 host.

 Cheers,
 Manik









 On 27 Jul 2005, at 12:59, Raghupathy,Gurumoorthy wrote:


 You can do this with ant very nicely

 project name=Learning default=reloadContext basedir=.

 target name=reloadContext
 get dest=stop.txt
 src=http://localhost:8080/manager/stop?path=/Learning;
 username=adminUserName password=adminPassword/
 loadfile property=STOPOUTPUT
 srcfile=stop.txt/loadfile
 echo${STOPOUTPUT}/echo
 delete file=stop.txt/delete

 get dest=start.txt
 src=http://localhost:8080/manager/start?path=/Learning;
 username=adminUserNAme password=adminPassword/
 loadfile property=STARTOUTPUT
 srcfile=start.txt/loadfile
 echo${STARTOUTPUT}/echo
 delete file=start.txt/delete
 /target

 /project

 The only thing you need to change is the
 http://localhost:8080/manager/stop?path=/Learning; of it ...

 So if you want to do for www.manik.com for context /Learning

 Then it will be http://www.manik.com/manager/stop?path=/Learning and


 if you want to do for www.guru.com for context /Learning

 Then it will be http://www.guru.com/manager/stop?path=/Learning


 Hope you find this useful 


 Regards
 Guru

 Guru Loves Tocmat and ant :)

 Gurumoorthy Raghupathy
 EMFS - Fidelity Investments International
 Regret for the things we did can be tempered by time; it is regret  
 for the
 things we did not do that is inconsolable


 To: tomcat-user@jakarta.apache.org
 Subject: Manager servlet to manage virtual hosts


 Hi,

 I'm running TC 5.0.19 and have 8 virtual hosts on the box.

 Each virtual host has a default (/) context with it's app deployed.

 When I access tomcat on it's IP address on port 8080, I get the
 default tomcat root, with access to the admin and manager servlets.

 Whenever I access the manager servlet though, I can only administer
 the root host and not contexts within the virtual hosts.

 Essentially I need an easy mechanism to reload apps within the
 virtual hosts (wither via cmd line or www interface) without
 restarting tomcat or affecting the deployments on the other virtual
 hosts.

 Any ideas on how I can best achieve this?

 Thanks.
 Manik

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

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



Virtual hosts and shared libraries

2005-07-22 Thread Oleg
I got a problem with Tomcat using a huge amount of memory on startup. Of 
course I realize that it all depends on how large are the applications. 
However, I have lets say two identical machines with Tomcat 5.5 installed. 
One Tomcat has 100 virtual hosts running the same application and takes up 
400MB of ram after it finished loading, second Tomcat has 300 identical 
applications but deployed under localhost and it uses only 200MB of ram 
after loading. Can somebody explain me what is the case here? Does it mean 
that virtual hosts load all libraries in shared directory for every host 
into memory but all application running under localhost, simply load them 
once? I am a bit lost, I need to figure something out to cut down on memory 
use, any ideas? All users are running same application, application specific 
classes are in its own application WEB-INF/classes and all libraries needed 
to run the application, like struts and hibernate and so on are in shared. 
Thank you.


Virtual hosts with standalone tomcat 5.5.9

2005-06-26 Thread john_wjf935 . fletcher
 I tried simply going like this

 Host name=www.mysite.com
 Context path= docBase=/var/www/server1 reloadable=true debug=0 
/
 /Host

 Host name=mail.external.mysite.com
 Context path= docBase=/var/www/server2 reloadable=true debug=0 
/
 /Host


I believe you are only allowed to have one Context path= because this 
defines the default webapp - where the requests go if they don't match any 

other context path.

I'm not sure how you could implement real virtual hosts on Tomcat - where 
you can link to eg /index.html insted of /webappname/index.html.  Be 
nice to know. 

Regards,
John Fletcher


**
IMPORTANT:  This e-mail is intended for the use of the addressee and may 
contain information that is confidential, commercially valuable or subject to 
legal or parliamentary privilege.  If you are not the intended recipient you 
are notified that any review, re-transmission, disclosure, use or dissemination 
of this communication is strictly prohibited by several Commonwealth Acts of 
Parliament.  If you have received this communication in error please notify the 
sender immediately and delete all copies of this transmission together with any 
attachments.
**


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



RE: Virtual hosts with standalone tomcat 5.5.9

2005-06-26 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Subject: Virtual hosts with standalone tomcat 5.5.9
 
  I tried simply going like this
  Host name=www.mysite.com
  Context path= docBase=/var/www/server1 reloadable=true
debug=0 /
  /Host
  Host name=mail.external.mysite.com
  Context path= docBase=/var/www/server2 reloadable=true
debug=0 /
  /Host
 
 I believe you are only allowed to have one Context path= 
 because this defines the default webapp - where the requests 
 go if they don't match any other context path.

There is a default webapp per host, not per Tomcat.  (However, the path
attribute must not be used unless the Context/ entry is in server.xml,
and that is strongly discouraged these days.)  To quote from the Tomcat
server reference doc for the path attribute:

The context path of this web application, which is matched against the
beginning of each request URI to select the appropriate web application
for processing. All of the context paths within a particular Host must
be unique. If you specify a context path of an empty string (), you
are defining the default web application for this Host, which will
process all requests not assigned to other Contexts. The value of this
field must not be set except when statically defining a Context in
server.xml, as it will be infered from the filenames used for either the
.xml context file or the docBase.

 I'm not sure how you could implement real virtual hosts on Tomcat

Now that's an interesting turn of phrase: real virtual hosts.

 - Chuck


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

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



Re: Virtual hosts with standalone tomcat 5.5.9

2005-06-25 Thread Drew Jorgenson

how do you have mail.external.mysite.com set up in your dns?? Does it
point to the same IP as your tomcat server that mysite.com is hosted on?

Drew.


On Fri, 2005-06-24 at 18:16 -0400, [EMAIL PROTECTED] wrote:

 mail.external.mysite.com


Re: Virtual hosts with standalone tomcat 5.5.9

2005-06-25 Thread Parsons Technical Services
You can't do it that way. At least the testing. You either have to set up 
DNS to resolve both names back to the IP or put entries in your host file. 
When you do a request to the server the header holds the URL and when you 
use the localhost that is what is sent in the header. Tomcat then will use 
the first host since there is no match. And that is why www.mysite.com 
works. It is the first one listed.


Add the entries to your host file and try the actual URLs listed in the 
server.xml, then if all else is right, it will work.



Doug



- Original Message - 
From: [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Friday, June 24, 2005 6:16 PM
Subject: Virtual hosts with standalone tomcat 5.5.9



All I need is different FQDNs (Fully qualified domain names)

Say:

www.mysite.com,

mail.external.mysite.com

I tried simply going like this

Host name=www.mysite.com
Context path= docBase=/var/www/server1 reloadable=true debug=0 /
/Host

Host name=mail.external.mysite.com
Context path= docBase=/var/www/server2 reloadable=true debug=0 /
/Host

and www.mysite.com works fine but mail.external.mysite.com doesn't.

In my trials, I am actually using http://localhost:8080/ and
http://host2.localhost:8080/ and I am just copying all the files from the
webapps folder.

I don't think that this should be causing any problems, though.

I have searched for it and you get a lot on links refering to previous
versions, etc.

Albretch


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



Virtual hosts with standalone tomcat 5.5.9

2005-06-24 Thread cmllpz
 All I need is different FQDNs (Fully qualified domain names)  
 
 Say: 
  
 www.mysite.com,  
 
 mail.external.mysite.com  
 
 I tried simply going like this 
 
Host name=www.mysite.com 
 Context path= docBase=/var/www/server1 reloadable=true debug=0 / 
/Host 
 
Host name=mail.external.mysite.com 
 Context path= docBase=/var/www/server2 reloadable=true debug=0 / 
/Host 
 
 and www.mysite.com works fine but mail.external.mysite.com doesn't. 
 
 In my trials, I am actually using http://localhost:8080/ and 
http://host2.localhost:8080/ and I am just copying all the files from the 
webapps folder.  
 
 I don't think that this should be causing any problems, though. 
 
 I have searched for it and you get a lot on links refering to previous 
versions, etc. 
 
 Albretch 
 

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



RE: Managing automatic deployment with multiple virtual hosts

2005-06-12 Thread Ben Rometsch
That seems to have been the solution! Thanks very much. 

Is this documented anywhere in the official Tomcat documentation?  

-Original Message-
From: charly [mailto:[EMAIL PROTECTED] 
Sent: 11 June 2005 10:08
To: Tomcat Users List
Subject: Re: Managing automatic deployment with multiple virtual hosts

Hello,

have you tried naming the war files
ROOT.war??
Because I think there is a special naming convention for the root
context.
This means if you have different applications you need to deploy them
into different folders.

Karl-Heinz

- Original Message -
From: Ben Rometsch [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, June 10, 2005 10:34 PM
Subject: Managing automatic deployment with multiple virtual hosts


Hi There,

I am running Tomcat 5.5.9 in production, using 1 tomcat instance to
service several websites (each with their own hostname) via virtual
hosts. I have Apache 2 running in front of Tomcat, connecting via
mod_jk.

I am having OutOfMemory issues, and have noticed that, due to my webapps
structure, I appear to be deploying 2 instances of each site. When I
look in the manager application I see the following in the Application

List:

www.sitea.com/
localhost/sitea

www.siteb.com/
localhost/siteb

www.sitec.com/
localhost/sitec

Etc. etc. My current directory structure is simply placing the war files
for each application into the tomcat/webapps folder. I then add a Host
declaration in the server.xml file for each virtual host:

Host name=www.sitea.com

Context path= docBase=/opt/tomcat/webapps/sitea debug=0

reloadable=true/

/Host

Host name=www.siteb.com

Context path= docBase=/opt/tomcat/webapps/siteb debug=0

reloadable=true/

/Host

Host name=www.sitec.com

Context path= docBase=/opt/tomcat/webapps/sitec debug=0

reloadable=true/

/Host

I still have the localhost set up in the server.xml file:

Host name=localhost appBase=webapps unpackWARs=true

autoDeploy=true xmlValidation=false xmlNamespaceAware=false

I presume this is the culprit. The problem I am having is that I cant
figure out how to get Tomcat to auto-deploy war files without then
creating a second running instance in memory with a context path of
/sitea. I've tried a variety of different directory structures, but am
unable to deploy a war file without it correctly deploying to a / path,
and thus not consuming more memory within the VM.

Is there a best practise way of doing this? Should I be putting
context.xml declarations in the META-INF directory of my war files?

Thanks in advance,

Ben


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






___ 
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier
anmelden: http://mail.yahoo.de

-
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: Managing automatic deployment with multiple virtual hosts

2005-06-12 Thread charly
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Automatic 
Application Deployment
#The context path for this deployed Context will be a slash character (/) 
followed by the directory name, unless the directory name is ROOT, in which case 
the context path will be an empty string ().#

The directory name is generated from the war filename.

- Original Message - 
From: Ben Rometsch [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Sunday, June 12, 2005 12:39 PM
Subject: RE: Managing automatic deployment with multiple virtual hosts


That seems to have been the solution! Thanks very much.

Is this documented anywhere in the official Tomcat documentation?

-Original Message-
From: charly [mailto:[EMAIL PROTECTED]
Sent: 11 June 2005 10:08
To: Tomcat Users List
Subject: Re: Managing automatic deployment with multiple virtual hosts

Hello,

have you tried naming the war files
ROOT.war??
Because I think there is a special naming convention for the root
context.
This means if you have different applications you need to deploy them
into different folders.

Karl-Heinz

- Original Message -
From: Ben Rometsch [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, June 10, 2005 10:34 PM
Subject: Managing automatic deployment with multiple virtual hosts


Hi There,

I am running Tomcat 5.5.9 in production, using 1 tomcat instance to
service several websites (each with their own hostname) via virtual
hosts. I have Apache 2 running in front of Tomcat, connecting via
mod_jk.

I am having OutOfMemory issues, and have noticed that, due to my webapps
structure, I appear to be deploying 2 instances of each site. When I
look in the manager application I see the following in the Application

List:

www.sitea.com/
localhost/sitea

www.siteb.com/
localhost/siteb

www.sitec.com/
localhost/sitec

Etc. etc. My current directory structure is simply placing the war files
for each application into the tomcat/webapps folder. I then add a Host
declaration in the server.xml file for each virtual host:

Host name=www.sitea.com

Context path= docBase=/opt/tomcat/webapps/sitea debug=0

reloadable=true/

/Host

Host name=www.siteb.com

Context path= docBase=/opt/tomcat/webapps/siteb debug=0

reloadable=true/

/Host

Host name=www.sitec.com

Context path= docBase=/opt/tomcat/webapps/sitec debug=0

reloadable=true/

/Host

I still have the localhost set up in the server.xml file:

Host name=localhost appBase=webapps unpackWARs=true

autoDeploy=true xmlValidation=false xmlNamespaceAware=false

I presume this is the culprit. The problem I am having is that I cant
figure out how to get Tomcat to auto-deploy war files without then
creating a second running instance in memory with a context path of
/sitea. I've tried a variety of different directory structures, but am
unable to deploy a war file without it correctly deploying to a / path,
and thus not consuming more memory within the VM.

Is there a best practise way of doing this? Should I be putting
context.xml declarations in the META-INF directory of my war files?

Thanks in advance,

Ben


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






___
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier
anmelden: http://mail.yahoo.de

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






___ 
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de



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



Re: Managing automatic deployment with multiple virtual hosts

2005-06-11 Thread charly

Hello,

have you tried naming the war files
ROOT.war??
Because I think there is a special naming convention for the root context.
This means if you have different applications you need to deploy them into 
different folders.


Karl-Heinz

- Original Message - 
From: Ben Rometsch [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Friday, June 10, 2005 10:34 PM
Subject: Managing automatic deployment with multiple virtual hosts


Hi There,

I am running Tomcat 5.5.9 in production, using 1 tomcat instance to
service several websites (each with their own hostname) via virtual
hosts. I have Apache 2 running in front of Tomcat, connecting via
mod_jk.

I am having OutOfMemory issues, and have noticed that, due to my webapps
structure, I appear to be deploying 2 instances of each site. When I
look in the manager application I see the following in the Application

List:

www.sitea.com/
localhost/sitea

www.siteb.com/
localhost/siteb

www.sitec.com/
localhost/sitec

Etc. etc. My current directory structure is simply placing the war files
for each application into the tomcat/webapps folder. I then add a Host
declaration in the server.xml file for each virtual host:

Host name=www.sitea.com

Context path= docBase=/opt/tomcat/webapps/sitea debug=0

reloadable=true/

/Host

Host name=www.siteb.com

Context path= docBase=/opt/tomcat/webapps/siteb debug=0

reloadable=true/

/Host

Host name=www.sitec.com

Context path= docBase=/opt/tomcat/webapps/sitec debug=0

reloadable=true/

/Host

I still have the localhost set up in the server.xml file:

Host name=localhost appBase=webapps unpackWARs=true

autoDeploy=true xmlValidation=false xmlNamespaceAware=false

I presume this is the culprit. The problem I am having is that I cant
figure out how to get Tomcat to auto-deploy war files without then
creating a second running instance in memory with a context path of
/sitea. I've tried a variety of different directory structures, but am
unable to deploy a war file without it correctly deploying to a / path,
and thus not consuming more memory within the VM.

Is there a best practise way of doing this? Should I be putting
context.xml declarations in the META-INF directory of my war files?

Thanks in advance,

Ben


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






___ 
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de



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



Managing automatic deployment with multiple virtual hosts

2005-06-10 Thread Ben Rometsch
Hi There,

I am running Tomcat 5.5.9 in production, using 1 tomcat instance to
service several websites (each with their own hostname) via virtual
hosts. I have Apache 2 running in front of Tomcat, connecting via
mod_jk. 

I am having OutOfMemory issues, and have noticed that, due to my webapps
structure, I appear to be deploying 2 instances of each site. When I
look in the manager application I see the following in the Application
List: 

www.sitea.com/
localhost/sitea
www.siteb.com/
localhost/siteb
www.sitec.com/
localhost/sitec

Etc. etc. My current directory structure is simply placing the war files
for each application into the tomcat/webapps folder. I then add a Host
declaration in the server.xml file for each virtual host: 

Host name=www.sitea.com
  Context path= docBase=/opt/tomcat/webapps/sitea debug=0
reloadable=true/
/Host

Host name=www.siteb.com
  Context path= docBase=/opt/tomcat/webapps/siteb debug=0
reloadable=true/
/Host

Host name=www.sitec.com
  Context path= docBase=/opt/tomcat/webapps/sitec debug=0
reloadable=true/
/Host

I still have the localhost set up in the server.xml file: 

Host name=localhost appBase=webapps unpackWARs=true
autoDeploy=true xmlValidation=false xmlNamespaceAware=false

I presume this is the culprit. The problem I am having is that I cant
figure out how to get Tomcat to auto-deploy war files without then
creating a second running instance in memory with a context path of
/sitea. I've tried a variety of different directory structures, but am
unable to deploy a war file without it correctly deploying to a / path,
and thus not consuming more memory within the VM. 

Is there a best practise way of doing this? Should I be putting
context.xml declarations in the META-INF directory of my war files? 

Thanks in advance,
Ben

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



Managing automatic deployment with multiple virtual hosts

2005-06-10 Thread Ben Rometsch
Hi There,

I am running Tomcat 5.5.9 in production, using 1 tomcat instance to
service several websites (each with their own hostname) via virtual
hosts. I have Apache 2 running in front of Tomcat, connecting via
mod_jk. 

I am having OutOfMemory issues, and have noticed that, due to my webapps
structure, I appear to be deploying 2 instances of each site. When I
look in the manager application I see the following in the Application

List: 

www.sitea.com/ 
localhost/sitea

www.siteb.com/ 
localhost/siteb

www.sitec.com/
localhost/sitec

Etc. etc. My current directory structure is simply placing the war files
for each application into the tomcat/webapps folder. I then add a Host
declaration in the server.xml file for each virtual host: 

Host name=www.sitea.com

Context path= docBase=/opt/tomcat/webapps/sitea debug=0

reloadable=true/

/Host

Host name=www.siteb.com

Context path= docBase=/opt/tomcat/webapps/siteb debug=0

reloadable=true/

/Host

Host name=www.sitec.com

Context path= docBase=/opt/tomcat/webapps/sitec debug=0

reloadable=true/

/Host

I still have the localhost set up in the server.xml file: 

Host name=localhost appBase=webapps unpackWARs=true

autoDeploy=true xmlValidation=false xmlNamespaceAware=false

I presume this is the culprit. The problem I am having is that I cant
figure out how to get Tomcat to auto-deploy war files without then
creating a second running instance in memory with a context path of
/sitea. I've tried a variety of different directory structures, but am
unable to deploy a war file without it correctly deploying to a / path,
and thus not consuming more memory within the VM. 

Is there a best practise way of doing this? Should I be putting
context.xml declarations in the META-INF directory of my war files? 

Thanks in advance,

Ben


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



adding new virtual hosts without restart?

2005-06-08 Thread Thomas Corte

Hello,

I understand that it is possible to (re-)deploy new contexts/web 
applications in Tomcat 5.5.9 without a complete server restart.


I wonder whether the same might be possible for new virtual hosts, i.e. 
adding new virtual hosts/IP addresses to a running Tomcat server.
From the documentation, I get the impression that this is *not* 
possible, which means that I'd have to stop and start tomcat to do this.


Is there a way to do it without restart?

--
[EMAIL PROTECTED]

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



Re: adding new virtual hosts without restart?

2005-06-08 Thread delbd
If you add virtual hosts using the tomcat admin interface and hit the commit 
button on top after all changes, you do not have to issue a bin/shutdown.sh 
and a bin/startup.sh.
However, the catalina engine is restarted and so are all webapps in it. 


Le Mercredi 8 Juin 2005 14:39, Thomas Corte a écrit :
 Hello,

 I understand that it is possible to (re-)deploy new contexts/web
 applications in Tomcat 5.5.9 without a complete server restart.

 I wonder whether the same might be possible for new virtual hosts, i.e.
 adding new virtual hosts/IP addresses to a running Tomcat server.
  From the documentation, I get the impression that this is *not*
 possible, which means that I'd have to stop and start tomcat to do this.

 Is there a way to do it without restart?

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



Question on Configuring Virtual Hosts on different ports

2005-06-08 Thread Colby . Meyer
We are attempting to configure tomcat with virtual hosts so that different 
ports represent different regions

For example 
port 80 may represent a QA region
port 90 may represent a dev region

We are using apache as the front end for Tomcat

in httpd.conf we have the following defined :

# Definition for DEVA
VirtualHost *:90
ServerAdmin [EMAIL PROTECTED]
   ServerName deva 
JkMount /* ajp13
ErrorLog /opt/bluepage/deva/logs/error_log
CustomLog /opt/bluepage/deva/logs/access_log common
/VirtualHost

this should forward all requests to the Tomcat connector and hence to 
Tomcat

in server.xml we have the following defined :

Host name=deva appBase=webapps unpackWARs=true autoDeploy=true
Logger className=org.apache.catalina.logger.FileLogger
   directory=logs 
   prefix=deva_log. suffix=.txt
   timestamp=true/
 
Context path= 
 docBase=/opt/tomcat/webapps/dva/BluePage.war
 crossContext=false
 debug=1 
 reloadable=false
 trusted=false 
/Context 
Context path=/BluePage 
 docBase=/opt/tomcat/webapps/dva/BluePage.war
crossContext=false
 debug=1 
 reloadable=false
 trusted=false 
/Context 
!-- ** the deva application context ** --
 /Host

and in /etc/hosts we have 

127.0.0.1   localhost qaa qab qac deva devb devc 
192.168.85.6qaa qab qac deva devb devc
 
When we start tomcat and hit the URL : http://192.168.85.6:90/index.html 
we see some of the static html content that is defined in the root of 
the WAR file
However when trying to access any of the servlets in the WAR , for example

http://192.168.85.6:90/BluePage/Redirector?foo=usabar=caENTER.x=15ENTER.y=18

 The following logs in the Apache access_log for this host 

 - [08/Jun/2005:12:21:59 -0400] GET 
/BluePage/Redirector?foo=usabar=caENTER.x=15ENTER.y=18 HTTP/1.1 302 0

nothing logs in the associated tomcat log and the servlet doesn't appear 
to be getting called.

The WAR was built on the same machine as the Tomcat Server so we are using 
the same java version and the structure of the WAR was initially built on 
Websphere, so I feel that
the structure in terms of WEB-INF/classes and such is valid.

We have exhaustively experimented with permutations of server settings, 
read everything on Virtual Host configuration and the proper course of 
action escapes us.
I am thinking that this may be an issue with the application code itself, 
but I am not sure where to start looking.

Does anyone have any thoughts or pointers they may be willing to share ?

Thanks

Colby C. Meyer


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



I cannot get virtual hosts to work Tomcat 5.5.9

2005-06-02 Thread anthony G
Platform:  Windows 2003
Tomcat: Tomcat 5.5.9 Standalone

I cannot get virtual hosts to work.

Server.xml:

Host name=test.com appBase=E:\Webspace\ autoDeploy=true
debug=0 deployXML=true unpackWARs=true
   Aliaswww.test.com/Alias
/Host

I have the context located here

$CATALINA_HOME/conf/[enginename]/test.com/test.xml

test.xml:

Context docBase=test/ROOT path=ResourceLink name=jdbc/test
global=jdbcTest//Context


Actual Path to my Virtual host is E:\Webspace\test\ROOT

I get page cannot be found when I try and go to test.com.

I  had this same exact configuration on Tomcat 5.0.28 and it worked
perfectly.  Please HELP any assistance is greatly appreciated.

Thanks,

-Anthony

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



Re: tomcat and virtual hosts

2005-05-12 Thread Lutz Zetzsche
Hi Bogus,

Am Donnerstag, 12. Mai 2005 00:52 schrieb Bagus:
 Here's a more general question about Tomcat.

 I'm used to using apache to set up virtual hosts, but when Tomcat
 installed, http://localhost/ now goes to my tomcat installation. So
 how does one set up multiple virtual hosts with Tomcat? Is it in the
 server.xml file or something? Or do I somehow now modify my apache
 configuration to be able to use tomcat and the jsp files?

have a look here:

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/engine.html
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

You need to know a bit about all three to successfully set up a virtual 
host.


(1) ENGINE

As regards the Engine element, the only important thing is the 
defaultHost parameter:

The default host name, which identifies the Host that will process 
requests directed to host names on this server, but which are not 
configured in this configuration file. This name MUST match the name  
attributes of one of the Host elements nested immediately inside.
 
You can nest one or more Host elements inside this Engine element, each 
representing a different virtual host associated with this server. At 
least one Host  is required, and one of the nested Hosts MUST have a 
name that matches the name specified for the defaultHost attribute, 
listed above.

So, if you should later change the hostname of the default host, that 
means the name attribute of the Host element representing the default 
host, you must not forget to set the defaultHost attribute of the 
Engine element accordingly.


(2) HOST

Different to the Apache HTTP server, a virtual host is not equivalent 
with a web application in Tomcat terms. It can host several web 
applications, and so the Host element only contains the appBase 
attribute and not a docBase attribute:

appBase: The Application Base directory for this virtual host. This is 
the pathname of a directory that may contain web applications to be 
deployed on this virtual host.


(3) CONTEXT

Concerning the Context element, you have to observe three things:

a) You may define as many Context elements as you wish. Each such 
Context MUST have a unique context path, which is defined by the path 
attribute. In addition, you MUST define a Context with a context path 
equal to a zero-length string. This Context becomes the default  web 
application for this virtual host, and is used to process all requests 
that do not match any other Context's context path.

b) Normally, your context files will be placed here:

$CATALINA_HOME/conf/[enginename]/[hostname]/

So, if you should later change the hostname, that means the name 
attribute of the Host element, you must not forget to rename the 
directory of the associated context files accordingly.

c) For the web application which you want to run as ROOT application - 
http://localhost:8080/ instead of http://localhost:8080/webapp/ - need 
to have a context file called ROOT.xml:

$CATALINA_HOME/conf/[enginename]/[hostname]/ROOT.xml


Best wishes

Lutz

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



Re: tomcat and virtual hosts

2005-05-12 Thread Pete Stevens
On Wed, 11 May 2005, Bagus wrote:


 Here's a more general question about Tomcat.

 I'm used to using apache to set up virtual hosts, but when Tomcat installed,
 http://localhost/ now goes to my tomcat installation. So how does one set up
 multiple virtual hosts with Tomcat? Is it in the server.xml file or
 something? Or do I somehow now modify my apache configuration to be able to
 use tomcat and the jsp files?

Here's my guide to making Tomcat behave like Apache, rather than the J2EE .war
file fashion.

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

Yours,

Pete Stevens


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

 It was either burnt to a cinder or it escaped through a small hole in the
corner of the shed, but I imagine it perished and went to bunny heaven.
 -- Fire Station Commander on a burning bunny rabbit that cause GBP6 damage

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



tomcat and virtual hosts

2005-05-11 Thread Bagus

Here's a more general question about Tomcat.

I'm used to using apache to set up virtual hosts, but when Tomcat installed,
http://localhost/ now goes to my tomcat installation. So how does one set up
multiple virtual hosts with Tomcat? Is it in the server.xml file or
something? Or do I somehow now modify my apache configuration to be able to
use tomcat and the jsp files?

Thanks,

Bagus


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



RE: tomcat and virtual hosts

2005-05-11 Thread Fritz Schneider
Bagus,

Each virtual host is a host element in server.xml. The service (e.g.
Catalina) has connectors to the ports for incoming requests. The engine in
that service sorts out the requests for a particular virtual host based on
the name attribute of the hosts. Any which don't match go to the defaultHost
(e.g. localhost). Each host can have its own appBase as well as logs, root
context, etc.

Fritz

-Original Message-
From: Bagus [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 11, 2005 3:53 PM
To: Tomcat Users List
Subject: tomcat and virtual hosts


Here's a more general question about Tomcat.

I'm used to using apache to set up virtual hosts, but when Tomcat installed,
http://localhost/ now goes to my tomcat installation. So how does one set up
multiple virtual hosts with Tomcat? Is it in the server.xml file or
something? Or do I somehow now modify my apache configuration to be able to
use tomcat and the jsp files?

Thanks,

Bagus


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



Virtual Hosts - additional info needed

2005-05-10 Thread Matthew P Puccio
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 Context path= reloadable=true docBase=SMP and my database 
connection info.
- I've tried adding a new Host entry in server.xml, based on the info on 
the ex-parrot page (linked above):
 
Host name=$host debug=0 appBase=webapps/$host
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false

Alias$alias/Alias
/Host

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.

If I hit http://smpdev.mwhglobal.com/SMP/jsp/Default.jsp I can access the 
application. However, I want http://smpdev.mwhglobal.com to go directly to 
this page.

BTW, this is all inside our network so you won't be able to hit the 
server.

Thanks for any help anyone can provide.


===
Matt Puccio
Senior Application Developer
iNet Global Solutions Delivery
MWH Global, Inc.
Tel: 720.887.8710
Fax: 720.887.8701
===

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 Context path= reloadable=true docBase=SMP and my database
 connection info.
 - I've tried adding a new Host entry in server.xml, based on the info on
 the ex-parrot page (linked above):

 Host name=$host debug=0 appBase=webapps/$host
 unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false

 Alias$alias/Alias
 /Host

 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 Alias.../Alias 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

?xml version='1.0' encoding='utf-8'?
Context displayName=smpdev.mwhglobal.com docBase= path=
workDir=work/Catalina/smpdev.mwhglobal.com/_
/Context


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]



mapping virtual hosts using mysql

2005-04-29 Thread Martin Lidgard
Hello all.
 
I am looking for a way to add host aliases to a webapp without having to
edit server.xml and restart Tomcat. I'm running Tomcat 4.1 as a standalone
on Linux.
 
Is it possible to map virtual hosts using MySQL? 
 
Thanks,

Martin

Arkatay Consulting
www.arkatay.com




-
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 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 host elements in my engine. 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 host elements in my engine. 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]


Virtual Hosts and SSL Certificates

2005-04-27 Thread Fritz Schneider
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 host elements in my engine. 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]



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]



Virtual hosts

2005-04-25 Thread Dola Woolfe
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]



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:

html
head
META http-equiv=refresh content=0;URL=http://www.mysite.com/myapp;
titleRedirect to Myapp/title
/head
body/
/html

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]



IIS Virtual Hosts and JK 1.2 - Same Contexts to different workers?

2005-04-15 Thread Dalton Ames Jr
Windows/Tomcat 5/IIS/JK 1.2 Connector 

I am using the  JK 1.2  Connector and want to connect
two IIS Web sites to different AJP ports, with the
same context.  Is there a way for workers.properties
to specify the incoming Host Header when determining
which worker to use?

For example:

http://website1/mycontext/
should go to one instance of Tomcat with AJP port
8009

http://website2/mycontext
should go to a second instance of Tomcat with  AJP
port 9009

Both Web sites are in the same IIS WWW Server

It works with Two hosts in the same Tomcat service
(thus same AJP port 8009), but I’d like to isolate
them a little more by having them run in different
Tomcat instances that I can recycle separately.


-
thanks

David J
http://davidwj.com





__ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 

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



Troubleshooting Virtual Hosts with Tomcat 5 standalone mode...

2005-04-04 Thread Jeff Duska
I'm trying to setup a couple of virtual hosts using Tomcat in stand
alone mode. I'm having a hell of a time to get this working correctly.
I've tried several configs, but they all fail.
I started with the goal of having a user directory for each virtual
host. For example, for the sample domain1.com the appbase would be
/home/domain/webapps.
I setup my server.xml file to have the following host settings
   Host name=domain1.com debug=0 appBase=/home/domain/webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
Context path= docBase=./
/host
This is pretty much cut and past from Tomcat: The Definitive Guide from
Safari Online. This did not work. I would get just get a blank webpage.
I then tried to update the host file. I didn't see why I'd need to do
that since my DNS setup at Mydomain.com was working for ssh. I add
domain1.com to the line for my localhost. I restarted Tomcat. No change.
I am able to run the system on port 80 using just the localhost default
settings. I figured I just did something wrong. I switched to this
directions http://www.ex-parrot.com/~pete/tomcat-vhost.html
This didn't worked either. When I looked at the requests in in Safari,
it showed this as a bad request. I can telnet domain1.com 80. When I try
GET index.jsp or index,html or /. Nothing happens. No error. It just
closed the connection as if everything was working fine. I tried lynx
from the server prompt. It gives a http 400 error, I think. It flashes
by so fast I'm not sure.
The catalina.out has no errors.
I have my DNS setup via mydomain.com dns management tool. I have my A
record pointing to the address. I don't think I need to do anything else.
I'm at a loss of what to do now to troubleshoot this problem. I searched
the mail list and the website nothing has jumped out at me. So, I hoping
some kind soul might give me some pointers. What kills me is I'm sure
this is something obvious I missed or not seeing.
Thanks,
Jeff Duska
[EMAIL PROTECTED]

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


Re: Troubleshooting Virtual Hosts with Tomcat 5 standalone mode...

2005-04-04 Thread Hein Behrens
This is in my server.xml the directory is webapps/by-m.

It works also on a linux box. It is inside the engine.

 Host name=by-m debug=0 appBase=webapps unpackWARs=true
autoDeploy=true xmlValidation=false xmlNamespaceAware=false
Context path= docBase=by-m debug=5 reloadable=true
/Context
/Host
- Original Message - 
From: Jeff Duska [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, April 04, 2005 7:45 PM
Subject: Troubleshooting Virtual Hosts with Tomcat 5 standalone mode...


 I'm trying to setup a couple of virtual hosts using Tomcat in stand
 alone mode. I'm having a hell of a time to get this working correctly.
 I've tried several configs, but they all fail.

 I started with the goal of having a user directory for each virtual
 host. For example, for the sample domain1.com the appbase would be
 /home/domain/webapps.

 I setup my server.xml file to have the following host settings

 Host name=domain1.com debug=0 appBase=/home/domain/webapps
 unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false
 Context path= docBase=./
 /host

 This is pretty much cut and past from Tomcat: The Definitive Guide from
 Safari Online. This did not work. I would get just get a blank webpage.

 I then tried to update the host file. I didn't see why I'd need to do
 that since my DNS setup at Mydomain.com was working for ssh. I add
 domain1.com to the line for my localhost. I restarted Tomcat. No change.

 I am able to run the system on port 80 using just the localhost default
 settings. I figured I just did something wrong. I switched to this
 directions http://www.ex-parrot.com/~pete/tomcat-vhost.html

 This didn't worked either. When I looked at the requests in in Safari,
 it showed this as a bad request. I can telnet domain1.com 80. When I try
 GET index.jsp or index,html or /. Nothing happens. No error. It just
 closed the connection as if everything was working fine. I tried lynx
 from the server prompt. It gives a http 400 error, I think. It flashes
 by so fast I'm not sure.

 The catalina.out has no errors.

 I have my DNS setup via mydomain.com dns management tool. I have my A
 record pointing to the address. I don't think I need to do anything else.

 I'm at a loss of what to do now to troubleshoot this problem. I searched
 the mail list and the website nothing has jumped out at me. So, I hoping
 some kind soul might give me some pointers. What kills me is I'm sure
 this is something obvious I missed or not seeing.

 Thanks,

 Jeff Duska
 [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: Troubleshooting Virtual Hosts with Tomcat 5 standalone mode...

2005-04-04 Thread Hassan Schroeder
Jeff Duska wrote:
I'm trying to setup a couple of virtual hosts using Tomcat in stand
alone mode.

I started with the goal of having a user directory for each virtual
host. For example, for the sample domain1.com the appbase would be
/home/domain/webapps.
I setup my server.xml file to have the following host settings
   Host name=domain1.com debug=0 appBase=/home/domain/webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
Context path= docBase=./
/host
OK, don't do that :-)
Don't put the Context elements in server.xml. Put your Host elements
there, e.g.
   Host name=oahu  appBase=/www/oahu/Host
   Host name=maui  appBase=/www/maui/Host   
   Host name=kauai appBase=/www/kauai/Host  
Then (assuming you're using the default Engine name) make directories
   $CATALINA_HOME/conf/Catalina/oahu
   $CATALINA_HOME/conf/Catalina/maui
   $CATALINA_HOME/conf/Catalina/kauai
In each of those put your Context files, as in
   $CATALINA_HOME/conf/Catalina/oahu/ROOT.xml
   $CATALINA_HOME/conf/Catalina/oahu/manager.xml
   !-- the above if you want the manager app available --
   $CATALINA_HOME/conf/Catalina/oahu/cowabunga.xml
   !-- etc... --
which will look (minimally!) like
   Context docBase=/www/oahu/ROOT
!-- define Resources, etc. --   
   /Context 
That's it. Restart tomcat. Done. See, wasn't that easy? :-)
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: Configuring Manager for different Virtual Hosts

2005-04-02 Thread John B. Moore
Anto,
   Thanks for replying..  Sadly there must be something else to 
configure..  I did read all the relevant documents and the manager works 
fine for the default webapps context.  I added the line you suggested 
to that virtual host.. restarted everything (including Apache)  

  I then type in
  http:// virtualhost URL/manager/html
... and Tomcat indicates that such a context does not exist..
  This, in my thinking is understandable, because I have not 
configured  a context IN tomcat (i.e. server.xml) for that Host and that 
is what I think I'm missing.. It is  just can not find any documentation 
to help me on this.. (though I remember seeing a discussion on this 
somewhere..)  I tried to pattern after the default host but because  my 
webapps are down one more level in the directory structure the pattern

Alias /usr/local/tomcat/webapps/someapp/../../server/webapps/manager
..does not work..  it parses it to
Alias /usr/local/tomcat/webapps/someapp/../server/webapps/manager
.. which does not exist..
  If you have a momment, please reread my original message that 
explains the configuration of my web applications..  Any ideas would be 
appreciated...

  Thanks again for taking the time to respond..
  John..
Anto Paul wrote:
I have a single line to do it in the VirtualHost
JkMount /manager/* a9
First configure manager application as specified in the Manager how to.
There are some config steps in Tomcat if you have different
CATALINA_BASE for each web application.
 



Re: Configuring Manager for different Virtual Hosts

2005-04-02 Thread John B. Moore
Folks,
  I got it working finally...(after several days of repeated head 
banging..) 

Following is how I got it to work (Tomcat 4.1.29)..
  1) Copy the folder 

  $CATALINA_HOME/server/webapps/manager
..to the directory that contains your web application..
Example:
 $CATALINA_HOME = /usr/local/tomcat
 ..copy folder /usr/local/tomcat/server/webapps/manager to 
/usr/local/tomcat/webapps/somesubdirectory/

  2) Copy the manager.xml found in the main webapps directory:
$CATALINA_HOME/webapps/manager.xml
...to the same directory that you copied the manager folder..
  3) Edit manager.xml
 Change the docBase attribute to reflect the location copied to 
above..

Example:
 docBase=/usr/local/tomcat/webapps/somesubdirectory/manager
  4) Edit either your mod_jk.conf file or the specific copy for that 
host.   (here I keep a custom conf file for each host, with the name of 
that host.conf)  This is the same file or files that you include in 
the Apache httpd.conf file   (There may be other ways around this, but 
this is the way I did it..)

  a) Open the mod_jk.conf file (after Tomcat has be started at 
least once if you have AutoConfig on..) and find the localhost:/manager 
section.  Copy this entire section to the end of the JkMount commands..

  b) Paste this section into each VirtualHost setting (possibly a 
different .conf file..)

  c) Edit the Alias and Directory tags to reflect the same full 
path to the manager folder..

 5) Make sure you have setup the role manager in the tomcat_users.xml 
file and a user for that role. (Instructions in the Manager HowTo)

 6) Restart Tomcat
 7) Access manager via a browser at
  http://your.domainhere.com:8080/manager/html
 (I have yet to get it to load directly through Apache yet..  for my 
purposes this is fine and works for me..)

  Hope that helps someone...
  John Moore
  SonicSpider LLC
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Configuring Manager for different Virtual Hosts

2005-04-01 Thread John B. Moore
I know I saw the info on this topic somewhere, but for the life of me, I 
can not relocate it.. (can not come up with the magic search strings... 
I spent hours trying different searches...)  

Task: I am trying to configure the Manager tool to manage different 
virtual hosts on a webserver  (Apache - Tomcat 4.1.29) so that I can 
restart a single webapplication when I make changes.

I have various subdirectories under webapps that are configured as 
separate hosts and contexts

i.e. /webapps/someapp/
In that directory I have a web application and I want the setup  the 
Manager for stopping and starting this app..

Using the example for the localhost context I saw the alias
Alias /usr/local/tomcat/webapps/../server/webapps/manager
..along with all the related settings...
Since my webapp is in  /usr/local/tomcat/webapps/someapp/
I tried..
Alias /usr/local/tomcat/webapps/someapp/../../server/webapps/manager
.. along with related settings...  No joy.. it dropped the first ../ 
and still can not track to that alias directory..

So am I chasing my tail..G   And/or can someone point me to that 
phantom discusson on setting up the manager for other host/context/ 
subdirectories...

Thanks...
John...


Re: Configuring Manager for different Virtual Hosts

2005-04-01 Thread Anto Paul
On Apr 1, 2005 11:38 PM, John B. Moore [EMAIL PROTECTED] wrote:
 I know I saw the info on this topic somewhere, but for the life of me, I
 can not relocate it.. (can not come up with the magic search strings...
 I spent hours trying different searches...)
 
 Task: I am trying to configure the Manager tool to manage different
 virtual hosts on a webserver  (Apache - Tomcat 4.1.29) so that I can
 restart a single webapplication when I make changes.
 
 I have various subdirectories under webapps that are configured as
 separate hosts and contexts
 
 i.e. /webapps/someapp/
 
 In that directory I have a web application and I want the setup  the
 Manager for stopping and starting this app..
 
 Using the example for the localhost context I saw the alias
 
 Alias /usr/local/tomcat/webapps/../server/webapps/manager
 
 ..along with all the related settings...
 
 Since my webapp is in  /usr/local/tomcat/webapps/someapp/
 
 I tried..
 
 Alias /usr/local/tomcat/webapps/someapp/../../server/webapps/manager
 
 .. along with related settings...  No joy.. it dropped the first ../
 and still can not track to that alias directory..
 
 So am I chasing my tail..G   And/or can someone point me to that
 phantom discusson on setting up the manager for other host/context/
 subdirectories...
 
 Thanks...
 
 John...
 
 

I have a single line to do it in the VirtualHost
JkMount /manager/* a9
First configure manager application as specified in the Manager how to.
There are some config steps in Tomcat if you have different
CATALINA_BASE for each web application.

-- 
Anto Paul
Benchmark Softech
www.benchmarksoft.com

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



Apache httpd and Tomcat with multiple virtual hosts

2005-02-16 Thread Bernard
Hi,

I am setting up Apache 2 with mod_jk and Tomcat 5.5 with multiple
virtual hosts.

My background is mod_jserv where I had
ApJServMount /myServletAlias /myZone
in the VirtualHost sections.

Now Tomcat, I undestand, has also its own virtual hosts in server.xml,
e.g. Host name=localhost appBase=webapps ...

So with this scheme

Apache has its own virtual hosts.

And Tomcat has its own virtual hosts.

I feel a uncomfortable with the duplication of server names and server
aliases in two different configuration files. Isn't there a better way
to manage multiple virtual hosts?

Bernard



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



Query about IIS, Tomcat and Virtual Hosts

2005-02-11 Thread Michael Foggin
Hi there,

we are creating a staging / QA environment for our websites.

We are using a Win2K server running IIS which has multiple websites 
defined (using host headers for identification against a single IP 
address), eg:

localhost
staging.website.com
staging.website2.co.uk
staging.website3.de etc etc

I have installed the latest version of Tomcat (5.5.7) and configured it 
using the jk2.0.4 connectors and for the default website this is fine; I 
can serve JSP's that I place under the {CATALINA_BASE}\webapps\ROOT 
directory structure. I know this isn't the best place to put them but I'm 
trying to take this in easy steps!

My main problem is when trying to server JSP's from the virtual, ie non 
localhost, sites defined in IIS.

In IIS I have added the isapi_redirector2.dll and created the 'jakarta' 
virtual directory so I'm pretty certain that I'm missing a trick somewhere 
on the Tomcat configuration side but I'm not sure where.

I have tried editing the workers2.properties file in the conf directory 
with the following entry:

[uri:staging.website2.co.uk/*.jsp]
info= Attempt to map requests for all JSP pages on virtual server to 
Tomcat.
context=/staging_website2_co_uk

The context directory exist under webapps and was created by cutting, 
pasting and renaming the jsp-examples directory. Again, far from ideal but 
I'm just trying to get up to speed!

This hasn't worked as expected in that staging.website2.co.uk/test.jsp 
returns a 404 whilst localhost/staging_website_co_uk/test.jsp returns the 
page properly.

Attentions then turned to the server.xml file where I've really got a bit 
lost.

Should I be creating staging.whatever as an engine or a host? 
Additionally, should I be adding a new directory under \conf\catalina for 
each of the new sites, similar to the localhost directory? 

I appreciate that this is a number of questions but I've tried all the 
things that seem 'obvious' to me but I'm now flailing about aimlessly and 
could do with Some Help :)

Thanks in advance,

Michael Foggin
Technical Specialist, DDA Web Compliance Project
Xansa 
t: 0115 959 2089
i: 72 2089
m: 0780 191 7081
e: [EMAIL PROTECTED] / [EMAIL PROTECTED]
w: www.xansa.com

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



Re: Running lots of virtual hosts on tomcat

2005-01-20 Thread Peter Rossbach
Hello,
that not really correct - see the german centaurus-platform 
http:/centaurus.sf.net/. We have build a little
tool hostcreator do to create host at runtime. You can build a new host 
with a template at runtime. Wait a week
than we release the 1.0beta6 with a integrated management application. 
Currently we  build the  Centaurus-Platform
with Tomcat 5.0.27 with some small modifcations.

One bad point:  We have wrote the complete documentation at german 
language. :-)  Sorry

Removing is a really problem. The internal JMX Api support a remove Host 
at memory but the config still exists at server.xml.
After restart your server the host is also restarted.
We hack the server.xml with a little some XSLT things, but we don't 
delete directories or files.

I hope we can discuss and implement a better way for tomcat 5.5. :-)
regards
Peter
Remy Maucherat schrieb:
On Wed, 19 Jan 2005 15:37:30 +0100, Robbert-Jan Roos [EMAIL PROTECTED] wrote:
 

Hi,
Our web department is thinking about moving from coldfusion to tomcat.
Currently we have about 400 websites using apache's mod_vhost module.
This works great. The only thing one needs to do is create a new
directory www.bla.nl and the website is up and running.
How would one do this in tomcat? I figured putting all the domainnames
in server.xml is not an option since it would require restarting
tomcat all the time. Using one Engine with a Context for each website
seems more usable.
Does anybody here have this kind of setup? Any pitfalls we might run
into? Suggestions?
   

Dynamic aadd/remove of hosts isn't supported through any tool at the
moment (= you have to build some kind of front end webapp and use the
Tomcat API to do it). I plan to add this in a future Tomcat 5.5 build.
 



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


Running lots of virtual hosts on tomcat

2005-01-19 Thread Robbert-Jan Roos
Hi,

Our web department is thinking about moving from coldfusion to tomcat.
Currently we have about 400 websites using apache's mod_vhost module.
This works great. The only thing one needs to do is create a new
directory www.bla.nl and the website is up and running.

How would one do this in tomcat? I figured putting all the domainnames
in server.xml is not an option since it would require restarting
tomcat all the time. Using one Engine with a Context for each website
seems more usable.

Does anybody here have this kind of setup? Any pitfalls we might run
into? Suggestions?

Regards,
Robbert-Jan Roos

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



Re: Running lots of virtual hosts on tomcat

2005-01-19 Thread Ben Souther
There are a few ways you could handle it.
This should get you started:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/deployer-howto.html


On Wed, 2005-01-19 at 09:37, Robbert-Jan Roos wrote:
 Hi,
 
 Our web department is thinking about moving from coldfusion to tomcat.
 Currently we have about 400 websites using apache's mod_vhost module.
 This works great. The only thing one needs to do is create a new
 directory www.bla.nl and the website is up and running.
 
 How would one do this in tomcat? I figured putting all the domainnames
 in server.xml is not an option since it would require restarting
 tomcat all the time. Using one Engine with a Context for each website
 seems more usable.
 
 Does anybody here have this kind of setup? Any pitfalls we might run
 into? Suggestions?
 
 Regards,
 Robbert-Jan Roos
 
 -
 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: Running lots of virtual hosts on tomcat

2005-01-19 Thread Duong BaTien
Robbert-Jan Roos wrote:
Hi,
Our web department is thinking about moving from coldfusion to tomcat.
Currently we have about 400 websites using apache's mod_vhost module.
This works great. The only thing one needs to do is create a new
directory www.bla.nl and the website is up and running.
How would one do this in tomcat? I figured putting all the domainnames
in server.xml is not an option since it would require restarting
tomcat all the time. Using one Engine with a Context for each website
seems more usable.
Does anybody here have this kind of setup? Any pitfalls we might run
into? Suggestions?
 

Wow, you have a lot of websites. Portal may be an appropriate solution 
to consolidate contents. Description is in my previous post about 
Consolidate web applications.

BaTien
DBGROUPS
Regards,
Robbert-Jan Roos
-
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: Running lots of virtual hosts on tomcat

2005-01-19 Thread Ronald Klop
RJ,
I think with a filter we can do our own version of mod_vhost.
But for reloading the classes/jsps it needs two instances of Tomcat (maybe on 
the same machine) with a loadbalancer to update one without interrupting the 
user.
Or is the compiler build into Tomcat 5.5 fast enough (and without memory leaks 
enough) to run it on a production machine.
Ronald.

On Wed Jan 19 15:37:30 CET 2005 Tomcat Users List tomcat-user@jakarta.apache.org wrote:
Hi,
Our web department is thinking about moving from coldfusion to tomcat.
Currently we have about 400 websites using apache's mod_vhost module.
This works great. The only thing one needs to do is create a new
directory www.bla.nl and the website is up and running.
How would one do this in tomcat? I figured putting all the domainnames
in server.xml is not an option since it would require restarting
tomcat all the time. Using one Engine with a Context for each website
seems more usable.
Does anybody here have this kind of setup? Any pitfalls we might run
into? Suggestions?
Regards,
Robbert-Jan Roos
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Ugh. IIS + Tomcat + multiple virtual hosts

2005-01-05 Thread Ian Hunter
I have a number of applications running under Tomcat root contexts, on 
various different servers/ports.  Under Apache, I can use the 

JkMount /* workername

directive under a virtual directory to allow me to do virtual hosting, under 
Apache, which allows me to specify that a particular hostname be handled by 
a particular worker, on a particular host and port.  Quite clean, I like it.

However, I find myself with the need to use IIS to front end the sites now, 
and the redirector DLL doesn't seem to account for this type of 
configuration.  

What this comes down to is having multiple instances of the redirector that 
refer to different workers2.properties files.  Way back when, someone 
mentioned an enhancement that was planned whereby the redirector DLL would 
check for a file called dllname.properties somewhere, and if present, use 
it, otherwise, check the registry for the location of the config file.

I blindly tried that, and it doesn't seem to work.

Did this enhancement ever happen?  Is there some secret incantation I have 
to do to make it work?

Is there a way to do what I'm trying to accomplish?  I've already suggested 
that we go with Apache instead and proxy any sites that require IIS, but I'm 
guessing that won't be an option.

---
beati pacifici quoniam filii Dei vocabuntur


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



Re: Ugh. IIS + Tomcat + multiple virtual hosts

2005-01-05 Thread David Boyer
Are you using JK or JK2 as the redirector in IIS? You might want to
indicate what version of IIS as some people have reported trouble using
JK in IIS 6 unless they run in IIS 5 isolation mode. 
 
I use JK2 with multiple virtual hosts, and each host is handled by a
different worker. I'm sure JK can do this also. Here's a JK2 example
with two different workers handling two different virtual hosts: 
 
[channel.socket:web1:8010] 
port=8010 
host=web1.bvu.edu 
 
[ajp13:web1:8010] 
channel=channel.socket:web1:8010 
 
[uri:web1.bvu.edu/servlet/*] 
worker=ajp13:web1:8010 
 
[channel.socket:web2:8009] 
port=8009 
host=web2.bvu.edu 
 
[ajp13:web2:8009] 
channel=channel.socket:web2:8009 
 
[uri:web1.bvu.edu/servlet/*] 
worker=ajp13:web2:8009 


[EMAIL PROTECTED] 01/05 10:45 am 
I have a number of applications running under Tomcat root contexts, on
various different servers/ports.  Under Apache, I can use the

JkMount /* workername

directive under a virtual directory to allow me to do virtual hosting,
under
Apache, which allows me to specify that a particular hostname be handled
by
a particular worker, on a particular host and port.  Quite clean, I like
it.

However, I find myself with the need to use IIS to front end the sites
now,
and the redirector DLL doesn't seem to account for this type of
configuration. 

What this comes down to is having multiple instances of the redirector
that
refer to different workers2.properties files.  Way back when, someone
mentioned an enhancement that was planned whereby the redirector DLL
would
check for a file called dllname.properties somewhere, and if present,
use
it, otherwise, check the registry for the location of the config file.

I blindly tried that, and it doesn't seem to work.

Did this enhancement ever happen?  Is there some secret incantation I
have
to do to make it work?

Is there a way to do what I'm trying to accomplish?  I've already
suggested
that we go with Apache instead and proxy any sites that require IIS, but
I'm
guessing that won't be an option.

---
beati pacifici quoniam filii Dei vocabuntur


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




Re: Ugh. IIS + Tomcat + multiple virtual hosts

2005-01-05 Thread David Boyer
Resend correcting a typo: 
  
[channel.socket:web1:8010] 
port=8010 
host=web1.bvu.edu 
  
[ajp13:web1:8010] 
channel=channel.socket:web1:8010 
  
[uri:web1.bvu.edu/servlet/*] 
worker=ajp13:web1:8010 
  
[channel.socket:web2:8009] 
port=8009 
host=web2.bvu.edu 
  
[ajp13:web2:8009] 
channel=channel.socket:web2:8009 
  
[uri:web2.bvu.edu/servlet/*] 
worker=ajp13:web2:8009 


[EMAIL PROTECTED] 01/05 10:45 am 
I have a number of applications running under Tomcat root contexts, on
various different servers/ports.  Under Apache, I can use the

JkMount /* workername

directive under a virtual directory to allow me to do virtual hosting,
under
Apache, which allows me to specify that a particular hostname be handled
by
a particular worker, on a particular host and port.  Quite clean, I like
it.

However, I find myself with the need to use IIS to front end the sites
now,
and the redirector DLL doesn't seem to account for this type of
configuration. 

What this comes down to is having multiple instances of the redirector
that
refer to different workers2.properties files.  Way back when, someone
mentioned an enhancement that was planned whereby the redirector DLL
would
check for a file called dllname.properties somewhere, and if present,
use
it, otherwise, check the registry for the location of the config file.

I blindly tried that, and it doesn't seem to work.

Did this enhancement ever happen?  Is there some secret incantation I
have
to do to make it work?

Is there a way to do what I'm trying to accomplish?  I've already
suggested
that we go with Apache instead and proxy any sites that require IIS, but
I'm
guessing that won't be an option.

---
beati pacifici quoniam filii Dei vocabuntur


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




Re: Ugh. IIS + Tomcat + multiple virtual hosts

2005-01-05 Thread Ian Hunter
On Wed, 05 Jan 2005 11:24:21 -0600, David Boyer wrote
 Resend correcting a typo:
 
 [channel.socket:web1:8010] 
 port=8010 
 host=web1.bvu.edu
 
 [ajp13:web1:8010] 
 channel=channel.socket:web1:8010
 
 [uri:web1.bvu.edu/servlet/*] 
 worker=ajp13:web1:8010
 
 [channel.socket:web2:8009] 
 port=8009 
 host=web2.bvu.edu
 
 [ajp13:web2:8009] 
 channel=channel.socket:web2:8009
 
 [uri:web2.bvu.edu/servlet/*] 
 worker=ajp13:web2:8009
 

Hey, cool, that worked great.  Is there actually any documentation for the 
workers2.properties file?  I looked around and couldn't find anything really 
useful...


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



Re: Ugh. IIS + Tomcat + multiple virtual hosts

2005-01-05 Thread David Boyer
http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/index.html 
 
Also, there's a sample or two included with the source code. 
 
I should point out that JK2 is officially unsupported. Unless you
specifically need JK2, I'd suggest JK 1.2.8. 

[EMAIL PROTECTED] 01/05 2:21 pm 
On Wed, 05 Jan 2005 11:24:21 -0600, David Boyer wrote
Resend correcting a typo:

[channel.socket:web1:8010]
port=8010
host=web1.bvu.edu

[ajp13:web1:8010]
channel=channel.socket:web1:8010

[uri:web1.bvu.edu/servlet/*]
worker=ajp13:web1:8010

[channel.socket:web2:8009]
port=8009
host=web2.bvu.edu

[ajp13:web2:8009]
channel=channel.socket:web2:8009

[uri:web2.bvu.edu/servlet/*]
worker=ajp13:web2:8009


Hey, cool, that worked great.  Is there actually any documentation for
the
workers2.properties file?  I looked around and couldn't find anything
really
useful...


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




Configuration: jk 1.2 apache 1.3 workers and virtual hosts

2004-12-29 Thread Michael Kastner
Hello,
since the documentation is not explicit about this, maybe someone on 
this list can help me.

configuration:
linux
tomcat 5.0
jk 1.2
apache 1.3
I have several virtual hosts running on my system. Does that mean that I 
have to create a separate worker for each virtual host?

e.g.
worker.list=virtHost1,virtHost2,virtHost3
# host1
worker.virtHost1.type=ajp13
worker.virtHost1.host=www.virtHost1.com
worker.virtHost1.port=8009
# host2
worker.virtHost2.type=ajp13
worker.virtHost2.host=www.virtHost2.com
worker.virtHost2.port=8009
# host3
worker.virtHost3.type=ajp13
worker.virtHost3.host=www.virtHost3.com
worker.virtHost3.port=8009
Sorry, I wouldn't ask that that question if I had found any 
documentation on virtual hosts and jk 1.2

Any help or hint is very much appreciated
Michael Kastner
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat 5, jk2, Apache 2 and mixed name/IP virtual hosts

2004-12-21 Thread Troy Davis
Hello,
I've got a Tomcat 5 / Apache 2 / jk2 server which has been serving 
several different virtual hosts which share a common IP address. I now 
need to implement my first SSL-protected website on this machine, and I 
am working under the assumption that this site must have a dedicated IP 
address in order for SSL to work. First of all, is this assumption 
correct?

But I haven't gotten to the part of setting up the SSL connector yet, 
I'm struggling with the IP address routing at the moment. Assuming that 
I do indeed need to have this site on a separate IP, how do I configure 
Apache, jk2 and Tomcat to work with the additional IP address without 
interrupting the existing name-based virtual hosts? Relevant sections 
of my configuration are below. name-based-client1.com and 
name-based-client2.com are working as desired already, but 
IP-ssl-client.com is not responding to requests.

One thing that confuses me: I found instructions on how to setup Tomcat 
to work with another IP by creating another Connector in server.xml, 
but if I setup a new Connector, how can jk2 route the requests from 
Apache, rather than Tomcat handling it entirely? Do I need to modify 
workers2.properties instead and leave server.xml as is? It seems like 
this approach would lead to a standalone Tomcat intercepting requests 
to that IP, but I definitely need Apache to handle the requests before 
redirecting JSP requests to Tomcat.

TIA,
Troy
server.xml:
...
Host name=name-based-client1.com debug=0 appBase=webapps 
unpackWARs=true
	Aliaswww.name-based-client1.com/Alias
	Logger className=org.apache.catalina.logger.FileLogger 
directory=logs prefix=name-based-client1.com. suffix=.log 
timestamp=true/
	Context path= docBase=name-based-client1.com debug=0 
reloadable=true/
/Host
Host name=name-based-client2.com debug=0 appBase=webapps 
unpackWARs=true
	Aliaswww.name-based-client2.com/Alias
	Logger className=org.apache.catalina.logger.FileLogger 
directory=logs prefix=name-based-client2.com. suffix=.log 
timestamp=true/
	Context path= docBase=name-based-client2.com debug=0 
reloadable=true/
/Host
Host name=IP-ssl-client.com debug=0 appBase=webapps 
unpackWARs=true
	Aliaswww.IP-ssl-client.com/Alias
	Logger className=org.apache.catalina.logger.FileLogger 
directory=logs prefix=IP-ssl-client.com. suffix=.log 
timestamp=true/
	Context path= docBase=IP-ssl-client.com debug=0 
reloadable=true/
/Host
...

httpd.conf:
...
VirtualHost *:80
DocumentRoot /usr/local/tomcat/webapps/name-based-client1.com
ServerName name-based-client1.com
ServerAlias www.name-based-client1.com
DirectoryIndex index.jsp index.html index.cgi index.php
CustomLog logs/name-based-client1.com_access_log combined
ErrorLog logs/name-based-client1.com_error_log
LocationMatch /*.jsp
JkUriSet worker ajp13:localhost:8009
/LocationMatch
ScriptAlias /cgi-bin/ 
/usr/local/tomcat/webapps/name-based-client1.com/cgi-bin/
Directory 
/usr/local/tomcat/webapps/name-based-client1.com/cgi-bin
AllowOverride None
Options None
Order allow,deny
Allow from all
/Directory
Directory 
/usr/local/tomcat/webapps/name-based-client1.com/logs
AllowOverride AuthConfig
/Directory
/VirtualHost

VirtualHost *:80
DocumentRoot /usr/local/tomcat/webapps/name-based-client2.com
ServerName name-based-client2.com
ServerAlias www.name-based-client2.com
DirectoryIndex index.jsp index.html index.cgi index.php
CustomLog logs/name-based-client2.com_access_log combined
ErrorLog logs/name-based-client2.com_error_log
LocationMatch /*.jsp
JkUriSet worker ajp13:localhost:8009
/LocationMatch
ScriptAlias /cgi-bin/ 
/usr/local/tomcat/webapps/name-based-client2.com/web/cgi-bin/
Directory 
/usr/local/tomcat/webapps/name-based-client2.com/web/cgi-bin
AllowOverride None
Options None
Order allow,deny
Allow from all
/Directory
Directory 
/usr/local/tomcat/webapps/name-based-client2.com/logs
AllowOverride AuthConfig
/Directory
/VirtualHost

Listen 192.168.1.2:80
VirtualHost 192.168.1.2:80
DocumentRoot /usr/local/tomcat/webapps/IP-ssl-client.com
ServerName IP-ssl-client.com
DirectoryIndex index.jsp index.html index.cgi index.php
CustomLog logs/IP-ssl-client.com_access_log combined
ErrorLog logs/IP-ssl-client.com_error_log
LocationMatch /*.jsp
JkUriSet worker ajp13:localhost:8009
/LocationMatch
ScriptAlias /cgi-bin/ 
/usr/local/tomcat/webapps/IP-ssl-client.com/cgi-bin/
Directory 
/usr/local/tomcat/webapps/IP-ssl-client.com/cgi-bin
AllowOverride None
Options None

Re: Tomcat 5, jk2, Apache 2 and mixed name/IP virtual hosts

2004-12-21 Thread g . lams
Troy Davis [EMAIL PROTECTED] wrote on 21/12/2004 17.07.40:

 Hello,
 
 I've got a Tomcat 5 / Apache 2 / jk2 server which has been serving 
 several different virtual hosts which share a common IP address. I now 
 need to implement my first SSL-protected website on this machine, and I 
 am working under the assumption that this site must have a dedicated IP 
 address in order for SSL to work. First of all, is this assumption 
 correct?
Yes, should be
see http://httpd.apache.org/docs-2.0/vhosts/name-based.html
Name-based virtual hosting cannot be used with SSL secure servers because 
of the nature of the SSL protocol. 

Gaël

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



Tomcat 5, jk2, Apache 2 and mixed name/IP virtual hosts

2004-12-21 Thread Troy Davis
I just found the problem, my apologies, it turns out to be a firewall 
port block upstream from me.

Thank You,
Troy

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



AW: Virtual Hosts and SSL

2004-12-18 Thread Steffen Heil
Hi

 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).

This should absolutely work.
Have 2 different engnies, each with it's own https-connector.
Bind these https-connectors to different IPs using it's address parameter.

If this does not work, submit a bug.

Regards,
  Steffen


smime.p7s
Description: S/MIME cryptographic signature


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]



Virtual Hosts and SSL

2004-12-17 Thread Mike Kennedy

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, CC
[EMAIL PROTECTED]
951.827.5922



-
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, CC
[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]


Session-cookie problems with several virtual hosts

2004-11-10 Thread Martin Morawetz
We have 3 different virtual hosts, which are subdomains
of our main domain.
We need access to the session from all virtual hosts.
We use cookie-sessions, at the moment url-rewriting isn't a
possible alternative.
The problem is, that the browser doesn't send the cookie back
to a subdomain, if the cookie was sent from one of the two
others.
Till now we solved the problem by specifying the domain globally
in the resin.conf . Yes we used Resin as Servlet-Engine and Resin 
supports a config-tag cookie-domain which solved our problem
perfectly. As far as i know Tomcat doesn't support something
like that.

As I don't have access to the session-cookie,
i thought in creating a cookie with the current session-id and the
proper domain set for every virtual host, but that seems to me
a little bit awkward.
Is it possible to specify a general cookie-domain globally for a virtual 
host?

Is there a way to manipulate the session-cookie (set the domain)?
What is supposed as best practise to get access to one session from
different subdomains?
Any help/comment is greatly appreciated.
--
Regards
Martin

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


RE: Session-cookie problems with several virtual hosts

2004-11-10 Thread Shapira, Yoav

Hi,

We need access to the session from all virtual hosts.
We use cookie-sessions, at the moment url-rewriting isn't a
possible alternative.

Too bad, as that's the only portable alternative.

Till now we solved the problem by specifying the domain globally
in the resin.conf . Yes we used Resin as Servlet-Engine and Resin
supports a config-tag cookie-domain which solved our problem
perfectly. As far as i know Tomcat doesn't support something
like that.

When you use container-specific, non-Servlet-Specification features, you
can expect trouble when trying to move across containers ;)

As I don't have access to the session-cookie,
i thought in creating a cookie with the current session-id and the
proper domain set for every virtual host, but that seems to me
a little bit awkward.

It might be awkward, but if you can't use url-rewriting this might also
be the next best option.

Is it possible to specify a general cookie-domain globally for a
virtual
host?

Not currently.

Is there a way to manipulate the session-cookie (set the domain)?

Not currently.

What is supposed as best practise to get access to one session from
different subdomains?

Use url-rewriting.  To enable it, set cookies=false on your Context
declarations.

Any help/comment is greatly appreciated.

Portability is tough to achieve, but great once achieved.  Shortcuts and
container-specific goodies end up costing more in the long term, as this
example shows.

Yoav



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



Virtual Hosts and useCanonical

2004-10-27 Thread Mike Curwen
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-userm=108315928213678w=2

I don't care about alias, get me canonical.
http://marc.theaimsgroup.com/?l=tomcat-userm=106095508818371w=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
--
VirtualHost 139.142.220.45:80
UseCanonicalName On
ServerName devstar.myhost.com
ServerAlias www.devstar.myhost.com
DocumentRoot /home/data3/me20
Location /WEB-INF/ 
AllowOverride None 
deny from all 
/Location 
JkMount /*.jsp tomcat1 
JkMount /login tomcat1 
ErrorLog /var/log/test/error_log
CustomLog /var/log/test/access_log common
/VirtualHost
 



tomcat1's server.xml
--
Host name=devstar.myhost.com debug=0
 Aliaswww.devstar.myhost.com/Alias
  Context path=
   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-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-userm=108315928213678w=2
 
 I don't care about alias, get me canonical.
 http://marc.theaimsgroup.com/?l=tomcat-userm=106095508818371w=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
 --
 VirtualHost 139.142.220.45:80
UseCanonicalName On
ServerName devstar.myhost.com
ServerAlias www.devstar.myhost.com
DocumentRoot /home/data3/me20
   Location /WEB-INF/ 
   AllowOverride None 
   deny from all 
   /Location 
   JkMount /*.jsp tomcat1 
   JkMount /login tomcat1 
ErrorLog /var/log/test/error_log
CustomLog /var/log/test/access_log common
 /VirtualHost
 
 
 
 
 tomcat1's server.xml
 --
 Host name=devstar.myhost.com debug=0
 Aliaswww.devstar.myhost.com
  Context path=
   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-userm=108315928213678w=2

 I don't care about alias, get me canonical.
 http://marc.theaimsgroup.com/?l=tomcat-userm=106095508818371w=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
 --
 VirtualHost 139.142.220.45:80
UseCanonicalName On
ServerName devstar.myhost.com
ServerAlias www.devstar.myhost.com
DocumentRoot /home/data3/me20
 Location /WEB-INF/
 AllowOverride None
 deny from all
 /Location
 JkMount /*.jsp tomcat1
 JkMount /login tomcat1
ErrorLog /var/log/test/error_log
CustomLog /var/log/test/access_log common
 /VirtualHost




 tomcat1's server.xml
 --
 Host name=devstar.myhost.com debug=0
 Aliaswww.devstar.myhost.com/Alias
  Context path=
   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]



  1   2   3   4   5   6   7   8   >