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



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]



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]



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]



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]



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]


Re: Virtual hosts

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

 Hi,

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

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

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

Yours,

Pete Stevens

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

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

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



RE: Virtual hosts

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



Re: Virtual Hosts and SSL

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

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

-QM

-- 

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


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



RE: Virtual Hosts and SSL

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

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

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

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


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



Re: Virtual Hosts 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]


RE: Virtual Hosts and useCanonical

2004-10-28 Thread Mike Curwen
Thanks Bill.  

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



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


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



Re: Virtual Hosts and 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]



Re: Virtual Hosts and MySQL

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

Thanks for not response :))
Evgeny




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

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



Re: Virtual Hosts and MySQL

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

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

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


: Thanks for not response :))

Well, now you have one. ;)

-QM

-- 

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


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



Re: Virtual Hosts and MySQL

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

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

Thanks for reply! :)

Evgeny

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

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




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

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



Re: Virtual Hosts on Tomcat 5

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

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

hope that helps

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

Am Freitag 02 Juli 2004 21:55 schrieb Steve Beaman:
 I'm using Tomcat 5 standalone.
 Everything works just fine, but now
 I need to enter my virtual hosts information
 in the server.xml file.

 Does anybody have a server.xml file
 that uses virtual hosts that I could use as an
 example?

 Thanks.

 ---
- Steve Beaman   [EMAIL PROTECTED]
 Altura International
 http://SHOP.COM
 http://www.catalogcity.com

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



RE: Virtual Hosts Kill My JSPs

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

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

-Dave

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


Hi, 

Thought I'd try again :)

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

NUTSHELL

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

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

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

Host name=xxx.test2.com debug=0
  appBase=C:\TestWebSites\test2
  unpackWARs=true deployOnStartup='true'
  autoDeploy=false
   Context path=/ docBase= debug=0
reloadable=false /
/Host

Host name=xxx.test1.com debug=0
  appBase=C:\TestWebSites\test1
  unpackWARs=true deployOnStartup='true'
  autoDeploy=false
  Context path=/ docBase= debug=0
   reloadable=false /
/Host

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

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

I hope this is clear so far. 

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

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

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

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

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

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

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

Thanks,

LS

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

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


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



Re: Virtual Hosts Kill My JSPs

2004-04-02 Thread QM
On Fri, Apr 02, 2004 at 09:18:54AM -0800, Lisa Simaki wrote:
: Host name=xxx.test2.com debug=0
:   appBase=C:\TestWebSites\test2
:   unpackWARs=true deployOnStartup='true'
:   autoDeploy=false
:Context path=/ docBase= debug=0
: reloadable=false /
: /Host
: 
: Host name=xxx.test1.com debug=0
:   appBase=C:\TestWebSites\test1
:   unpackWARs=true deployOnStartup='true'
:   autoDeploy=false
:   Context path=/ docBase= debug=0
:reloadable=false /
: /Host

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

-also, did said dirs already exist?  

For example,

Host name=xxx.test1.com
workDir=c:\temp\TomcatWork-test1.com ...
Host name=xxx.test2.com
workDir=c:\temp\TomcatWork-test2.com ...

-QM

-- 

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


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



RE: Virtual Hosts Kill My JSPs

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



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

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

-
 To unsubscribe, e-mail:
 

Re: virtual hosts for single application context

2004-03-11 Thread James Agnew
..of course, the second host name should read 'website2.com' - apologies for
typo.

I've just tried the same approach with the website1 and website2 folders
directly below the application context, but it still doesn't want to parse.

Appreciate any input

Thanks, James


- Original Message - 
From: James Agnew [EMAIL PROTECTED]
To: tomcat list [EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 7:30 PM
Subject: virtual hosts for single application context


 Hello all,

 I have an application (CFMX) running under Tomcat 5.0.18 as a deployed war
 file within the ROOT folder i.e.

 $CATALINA_HOME/webapps/ROOT/

 this all works perfectly and correcly parses all .cfm files.

 Now, I've created virtual hosts by adding the following in server.xml:

 Host name=website1.com debug=0 appBase=webapps
 Context path= docBase=website1 debug=0 reloadable=true/
 /Host

 Host name=website1.com debug=0 appBase=webapps
 Context path= docBase=website2 debug=0 reloadable=true/
 /Host

 This works, but the application (i.e. CFMX) doesn't parse the .cfm pages
 within the website1 and website2 folders.

 Is it possible to map multiple virtual hosts to a single application
 context?

 Thanks, James




 -
 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 with Apache and Tomcat

2004-03-02 Thread Christopher Schultz
Antonio,

In fact, cap it at 10 and watch the app dring to a halt before it even 
gets going. This is a pretty compelling example. If the pool is drying 
up, they're definately screwing up.
It is. But developers may reply: You are using less connections than 
those specified in (the contract) / (the manual) / (fill in yourself).
I thinks we're misunderstanding each other. I think that when the pool 
is capped, and the connections are never returned, you get to a point 
where the pool refuses to give you a new connection, no matter how long 
you wait.

This is a pretty good idea for some basic debugging. You should only 
have to demonstrate to your devs that you can deadlock their server by 
capping the connection pool. After that, it's their problem, right? :)
With the proposal, you demonstrate they have a connection leak, which is 
the real problem.

Once you showed them they had ONE connection leak, you can urge them to 
dig for other connection leaks themselves.

But, of course, the idea about the deadlock seems really good also. If I 
understood, what you mean is: If you set the connection pool size too 
low for the app, it should crash at will (or better, show an 
'unavailable' screen), but it should continue working as soon as load 
permits it. Am I wrong?
I'm thinking that the connections are added to the pool upon request 
(from his observationa, it looks like the 10 pre-allocated connections 
are always ignored), and then never returned. The pool remembers the 
pre-allocated ones, plus the ones it created on-the-fly. I think that if 
he caps the connection pool size at 25, it will only take 20 requests to 
lock up the server for want of a DB connection.

Try setting the pool size to 11 and see if you lock up after one request ;)

-chris


signature.asc
Description: OpenPGP digital signature


RE: Virtual Hosts with Apache and Tomcat

2004-03-02 Thread Kannan Sundararajan
Sysadmins are sysadmins AND developers are developers. No one cannot cross
the borderline or even compare. 

They are clowns.
I wouldn't call the developers or professionals like this. 

I can agree partially to yours. But if you see him, he doesn't know about
the impact of JVM and tuning parameters, as he mentioned in his email. Do
you expect him to take a lead in fixing that? I have seen the projects
losing its focus by the nature of peoples deviating to get their interests
fulfilled. 

I would appreciate, if the developer and sysadmin working together in this
problem (i doubt verymuch as sysadmin involvment, all he can do is give
top or sar reports). Sysadmin has much knowledge in configuring servers,
architect the infrastructure, manage the network, backups etc. 

I never seen any sysadmin trying to fine tune any Application Servers. If
that is the case, then the project sucess will be in stake. Everyone has to
do their own roles. If I would be the sysadmin, then i would tell the
developers to go these newsgroups. Dont you think that most of developers
resolve their issues by newsgroups and websites for their problems. 

This isn't about communication or a sysadmin whining to the devs about
something he doesn't understand. 
He clearly mentioned that the developeers raised that questions and trying
to get the verification from the newsgroups. Dont you think that is the part
of communication gap between the developers and him. If he is very keen, why
not one of the developers responding his thread and get the issues fixed for
the project. 

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 9:49 PM
To: Tomcat Users List
Subject: Re: Virtual Hosts with Apache and Tomcat


Kannan,

 Being yourself as SYSADMIN for UNIX and Network, it would be nice that
 developers or professional should take a lead into get into this problem.

Easy for you to say.

Let's face it: these guys have a connection leak. Plain and simple. Your 
devs need to find their leak. It is demonstrable. It locks up the 
server. QED. Make them fix it.

This isn't about communication or a sysadmin whining to the devs about 
something he doesn't understand. This is a resource leak. It is 
apparently well-understood. He's done his homework. They are clowns.

-chris

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



Re: Virtual Hosts with Apache and Tomcat

2004-03-02 Thread Stephen Carville
On Monday March 01 2004 06:42 pm, Christopher Schultz wrote:

  Tried that.  Capped it at 35 and the webserver stopped servicing any
  DB request as soon as the pool reached 35.  This is why I believe the
  pool management is faulty and/or something is hogging all the
  connections.
 
  I share your belief. Let's try to prove it. Raise it to some other
  figure, and see if the same happens again. Ask them how big should the
  figure be.

 In fact, cap it at 10 and watch the app dring to a halt before it even
 gets going. This is a pretty compelling example. If the pool is drying
 up, they're definately screwing up.

Whoa there pardner:  I am not going to deliberately cripple a production box. 
The problem has been demonstated in test environments and that is as far as I 
will intentionally let it go.
 
That said, the information i've gathered here has been helpful.  I am a great 
sysadmin but not a great java programmer so I appreciate it to.

-- 
Stephen Carville
UNIX and Network Administrator
DPSI
310-342-3602
[EMAIL PROTECTED]
--
Most people prefer believing their leaders are just and fair even in the face 
of contrary evidence.  Perhaps this is because, once a man acknowledges that  
the government he lives under is corrupt and cares nothing for justice or  
fairness, that man also has to choose what he will do about it.


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



RE: Virtual Hosts with Apache and Tomcat

2004-03-02 Thread Ralph Einfeldt
No that's not true, 

My colleges and me are doing both sides of the border 
(me being mainly a developer, others being mainly sysadmins
but we don't have any person that's not doing at least 20%
of the other side's job (It's a bit of pair sysadministration)

I don't like the notion of pure programmers and pure sys admins.
(If the the organsation gets big enough you need such roles, but
it's alway good to have some people in each group that know the 
other side well enough)

 -Original Message-
 From: Kannan Sundararajan [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 02, 2004 4:31 PM
 To: 'Tomcat Users List'
 Subject: RE: Virtual Hosts with Apache and Tomcat
 
 Sysadmins are sysadmins AND developers are developers. No one 
 cannot cross the borderline or even compare. 
 

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



Re: Virtual Hosts with Apache and Tomcat

2004-03-02 Thread Christopher Schultz
Stephen,

In fact, cap it at 10 and watch the app dring to a halt before it even
gets going. This is a pretty compelling example. If the pool is drying
up, they're definately screwing up.
Whoa there pardner:  I am not going to deliberately cripple a production box. 
The problem has been demonstated in test environments and that is as far as I 
will intentionally let it go.
Oh, I totally meant in a development setting. I would never suggest that 
you cripple a production box. You can easily demonstrate the problem. Do 
that in dev, and make them fix it. Then, deploy the fix as part of your 
regular deployment procedure.

-chris


signature.asc
Description: OpenPGP digital signature


RE: Virtual Hosts with Apache and Tomcat

2004-03-02 Thread Kannan Sundararajan
Yes, But that doesn't mean that we can put and point on developers for any
problem.

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 10:59 AM
To: Tomcat Users List
Subject: RE: Virtual Hosts with Apache and Tomcat


No that's not true, 

My colleges and me are doing both sides of the border 
(me being mainly a developer, others being mainly sysadmins
but we don't have any person that's not doing at least 20%
of the other side's job (It's a bit of pair sysadministration)

I don't like the notion of pure programmers and pure sys admins.
(If the the organsation gets big enough you need such roles, but
it's alway good to have some people in each group that know the 
other side well enough)

 -Original Message-
 From: Kannan Sundararajan [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 02, 2004 4:31 PM
 To: 'Tomcat Users List'
 Subject: RE: Virtual Hosts with Apache and Tomcat
 
 Sysadmins are sysadmins AND developers are developers. No one 
 cannot cross the borderline or even compare. 
 

-
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 with Apache and Tomcat

2004-03-02 Thread Christopher Schultz
Kennan,

I can agree partially to yours. But if you see him, he doesn't know about
the impact of JVM and tuning parameters, as he mentioned in his email. Do
you expect him to take a lead in fixing that? I have seen the projects
losing its focus by the nature of peoples deviating to get their interests
fulfilled.
This is not a 'special' interest. This is a legitimate resource leak 
that he wants them to fix. He can demonstrate the leak. That's all 
that's necessary on his part. The rest is up to the developers. I'm not 
suggesting that he fix the problem. Only to demonstrate it and get the 
developers to fix the problem.

I would appreciate, if the developer and sysadmin working together in this
problem (i doubt verymuch as sysadmin involvment, all he can do is give
top or sar reports). Sysadmin has much knowledge in configuring servers,
architect the infrastructure, manage the network, backups etc. 
Yes, but *this* sysadmin also has enpirical data that demonstrates the 
resource leak. Forget sar and top. How about the app locks up. That 
should be motivating enough.

I never seen any sysadmin trying to fine tune any Application Servers.
Actually, the sysadmin is the /perfect/ person to fine-tune app servers. 
Most devs don't know jack about the app server they use. That's why they 
deploy onto app servers with standard interfaces and services (Servlet 
and JSP spec). The deployment and admin folks are the ones who should 
know how to configure the app servers.

If
that is the case, then the project sucess will be in stake. Everyone has to
do their own roles. If I would be the sysadmin, then i would tell the
developers to go these newsgroups. Dont you think that most of developers
resolve their issues by newsgroups and websites for their problems. 
Here's the problem: the devs refuse to admit there's a problem. They 
won't go to the newsgroups to ask about a problem that they don't 
believe exists. That's why the sysadmin is here. He wanted to get some 
information on how to prove that there's a leak. He's gotton that 
information. Let's wait for the devs to visit the group, now ;)

He clearly mentioned that the developeers raised that questions and trying
to get the verification from the newsgroups. Dont you think that is the part
of communication gap between the developers and him. If he is very keen, why
not one of the developers responding his thread and get the issues fixed for
the project. 
I think the problem is that the devs think the sysadmin is foolish and 
wrong about the resource leak. Now that he can demonstrate the leak, 
they will take him more seriously.

I believe that we have helped in this situation, and that the devs will 
now address the problem instead of sticking their heads in the sand.

-chris


signature.asc
Description: OpenPGP digital signature


Re: Virtual Hosts with Apache and Tomcat

2004-03-02 Thread rsequeira

With due respect to everyone's opinion on this thread, I really appreciate
it if this topic was taken offline. I think other than filling up people's
mailbox, I don't seem to see any technical knowledge being shared.
Just my 2 cents.

Thanks,
RS


   
   
  Christopher Schultz  
   
  [EMAIL PROTECTED]To:   Tomcat Users List
 
  omcast.net  [EMAIL PROTECTED] 
  
  cc:  
   
  03/02/2004 10:42 AM Subject:  Re: Virtual Hosts with 
Apache and Tomcat  
  Please respond to
   
  Tomcat Users List  
   
   
   
   
   




Kennan,

 I can agree partially to yours. But if you see him, he doesn't know about
 the impact of JVM and tuning parameters, as he mentioned in his email. Do
 you expect him to take a lead in fixing that? I have seen the projects
 losing its focus by the nature of peoples deviating to get their
interests
 fulfilled.

This is not a 'special' interest. This is a legitimate resource leak
that he wants them to fix. He can demonstrate the leak. That's all
that's necessary on his part. The rest is up to the developers. I'm not
suggesting that he fix the problem. Only to demonstrate it and get the
developers to fix the problem.

 I would appreciate, if the developer and sysadmin working together in
this
 problem (i doubt verymuch as sysadmin involvment, all he can do is give
 top or sar reports). Sysadmin has much knowledge in configuring
servers,
 architect the infrastructure, manage the network, backups etc.

Yes, but *this* sysadmin also has enpirical data that demonstrates the
resource leak. Forget sar and top. How about the app locks up. That
should be motivating enough.

 I never seen any sysadmin trying to fine tune any Application Servers.

Actually, the sysadmin is the /perfect/ person to fine-tune app servers.
Most devs don't know jack about the app server they use. That's why they
deploy onto app servers with standard interfaces and services (Servlet
and JSP spec). The deployment and admin folks are the ones who should
know how to configure the app servers.

 If
 that is the case, then the project sucess will be in stake. Everyone has
to
 do their own roles. If I would be the sysadmin, then i would tell the
 developers to go these newsgroups. Dont you think that most of developers
 resolve their issues by newsgroups and websites for their problems.

Here's the problem: the devs refuse to admit there's a problem. They
won't go to the newsgroups to ask about a problem that they don't
believe exists. That's why the sysadmin is here. He wanted to get some
information on how to prove that there's a leak. He's gotton that
information. Let's wait for the devs to visit the group, now ;)

 He clearly mentioned that the developeers raised that questions and
trying
 to get the verification from the newsgroups. Dont you think that is the
part
 of communication gap between the developers and him. If he is very keen,
why
 not one of the developers responding his thread and get the issues fixed
for
 the project.

I think the problem is that the devs think the sysadmin is foolish and
wrong about the resource leak. Now that he can demonstrate the leak,
they will take him more seriously.

I believe that we have helped in this situation, and that the devs will
now address the problem instead of sticking their heads in the sand.

-chris
(See attached file: signature.asc)




This transmission is intended to be strictly confidential. If you are not
the intended recipient of this message, you may not disclose, print, copy
or disseminate this information. If you have received this in error, please
reply and notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.

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

Re: Virtual Hosts with Apache and Tomcat

2004-03-01 Thread Stephen Carville
Here is some more information on the problem. From a developer:

According to the document that the link below refers to, a single
instance of Tomcat will have multiple JVMs, where each JVM represents a
virtual host.  The following link clearly states this virtual host concept
as it applies to Tomcat.
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html
(please refer the virtual host section).}

As per the above document, each JVM corresponding to a virtual host
contains a database connection pool object. Hence the connection pool that
has been implemented seems to be in-line with the virtual host definition in
the above document.

Also, we are also using the same concept of DBCP in our
applications. The difference in our case is that we have chosen to use
Oracle that also uses the same DataSource class.

OK, it is my understanding that the problem of a new JVM for each virtual host 
was fixed in 4.X.  True?

I RT'ed some more FM on 4.2 and found that the Tomcat developers suggest that 
the connection code be placed in $CATALINA_HOME/common/lib.  I passed that to 
the developers and:

As regards putting the flood.jar in $CATALINA_HOME/common/lib, we
tried it and the behavior was no different.

Is there anyone running tomcat with virtual hosts and do you also have this 
problem?  It is a little hard to beleive this is so difficult to implement 
but hasn't come up before. (at least I couldn't find it in the archives)

-- 
Stephen Carville
UNIX and Network Administrator
DPSI
310-342-3602
[EMAIL PROTECTED]
--
Most people prefer believing their leaders are just and fair even in the face 
of contrary evidence.  Perhaps this is because, once a man acknowledges that  
the government he lives under is corrupt and cares nothing for justice or  
fairness, that man also has to choose what he will do about it.


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



RE: Virtual Hosts with Apache and Tomcat

2004-03-01 Thread Mike Curwen
I have a sneaking suspicion that someone is still blowing smoke. ;)  
Either
1) the oracle pool has a leak
2) oracle server has a problem closing connections
3) you have a leak in the application.
 
For problem 3), I find the DBCP's ability to 'tattle' on bad JSP
pages/classes invaluable in tracking down this type of behaviour.  
 
Here's a (big) snip. I've removed a bunch of parameters, as they would
change for your app. But the key ones are included at the bottom.

Context path= 
 docBase=/home/webhome/buzz/ 
 defaultSessionTimeout=60 
 reloadable=true


Resource   name=jdbc/BuzzDB
auth=Container
type=javax.sql.DataSource /

ResourceParams name=jdbc/BuzzDB

parameter
namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

!-- Max number of dB connections. Set to 0 for no limit. --

!-- Max number of idle dB connections to retain. Set to 0 for
no limit. --

!-- Max wait for dB connection to become available
(in ms), -1 to wait indefinitely. --

!-- MySQL dB username, password, driver, URL  --


parameter
nameremoveAbandoned/name
valuetrue/value
/parameter
parameter
nameremoveAbandonedTimeout/name
value20/value
/parameter
parameter
namelogAbandoned/name
valuetrue/value
/parameter
/ResourceParams

When you have a mis-behaving JSP (one that doesn't return its
connection), you'll get a stack trace in catalina.out (or wherever you
have redirected catalina.out) that contains the name of the JSP or class
that did not return a connection, and that was forced abandoned by the
pool. With the above config, this happens in 20 seconds (though it won't
be logged until the *next* access of the pool).  I'm not familiar with
the Oracle drivers, but hopefully they have something similar?
 
The reason I think your developers are blowing smoke... You are using
4.1.x and they are quoting 3.x docs.  They should know better!



 -Original Message-
 From: Stephen Carville [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 01, 2004 9:18 AM
 To: Tomcat Users List
 Subject: Re: Virtual Hosts with Apache and Tomcat
 
 
 Here is some more information on the problem. From a developer:
 
 According to the document that the link below refers to, a 
 single instance of Tomcat will have multiple JVMs, where each 
 JVM represents a virtual host.  The following link clearly 
 states this virtual host concept as it applies to Tomcat. 
 http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html
 (please refer the virtual host section).}
 
 As per the above document, each JVM corresponding to a 
 virtual host contains a database connection pool object. 
 Hence the connection pool that has been implemented seems to 
 be in-line with the virtual host definition in the above document.
 


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



RE: Virtual Hosts with Apache and Tomcat

2004-03-01 Thread Kannan Sundararajan
Being yourself as SYSADMIN for UNIX and Network, it would be nice that
developers or professional should take a lead into get into this problem.

It looks like that to me that it has been stepping or bossing up the
developers up there. And since there is lot of techonology involved, it
would be much difficult for anyone to fix your problem. I guess there might
be some senior developer, who can do the situation much better. 

You have been trying to getinto JVMs and tuning and so on... the best is
developers to be involved actively. 

There could be lot of documents and phrases from a developer side, which you
are conveying. But for me looks like that you are trying to put your own
things into them, which may be difficult as a communication area of project
management( which is very crucial to success of a project).

-Original Message-
From: Stephen Carville [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 10:18 AM
To: Tomcat Users List
Subject: Re: Virtual Hosts with Apache and Tomcat


Here is some more information on the problem. From a developer:

According to the document that the link below refers to, a single
instance of Tomcat will have multiple JVMs, where each JVM represents a
virtual host.  The following link clearly states this virtual host concept
as it applies to Tomcat.
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html
(please refer the virtual host section).}

As per the above document, each JVM corresponding to a virtual host
contains a database connection pool object. Hence the connection pool that
has been implemented seems to be in-line with the virtual host definition in
the above document.

Also, we are also using the same concept of DBCP in our
applications. The difference in our case is that we have chosen to use
Oracle that also uses the same DataSource class.

OK, it is my understanding that the problem of a new JVM for each virtual
host 
was fixed in 4.X.  True?

I RT'ed some more FM on 4.2 and found that the Tomcat developers suggest
that 
the connection code be placed in $CATALINA_HOME/common/lib.  I passed that
to 
the developers and:

As regards putting the flood.jar in $CATALINA_HOME/common/lib, we
tried it and the behavior was no different.

Is there anyone running tomcat with virtual hosts and do you also have this 
problem?  It is a little hard to beleive this is so difficult to implement 
but hasn't come up before. (at least I couldn't find it in the archives)

-- 
Stephen Carville
UNIX and Network Administrator
DPSI
310-342-3602
[EMAIL PROTECTED]
--
Most people prefer believing their leaders are just and fair even in the
face 
of contrary evidence.  Perhaps this is because, once a man acknowledges that

the government he lives under is corrupt and cares nothing for justice or  
fairness, that man also has to choose what he will do about it.


-
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 with Apache and Tomcat

2004-03-01 Thread Christopher Schultz
Antonio,

And bad.  Every time I restart, Tomcat loses the state information for 
established login sessions.  Customer don't like that.
That (with a high probability) is because some objects they store in 
sessions are not Serializable. IOW, they violate the Servlet Specification.
I'm just curious: is this actually a violation of the servlet spec? The 
API seems to indicate that you can put anything in the session that you 
want. I don't think it has to be Serializable... thought I was wrong 
before, once ;)

Tried that.  Capped it at 35 and the webserver stopped servicing any 
DB request as soon as the pool reached 35.  This is why I believe the 
pool management is faulty and/or something is hogging all the 
connections.
I share your belief. Let's try to prove it. Raise it to some other 
figure, and see if the same happens again. Ask them how big should the 
figure be.
In fact, cap it at 10 and watch the app dring to a halt before it even 
gets going. This is a pretty compelling example. If the pool is drying 
up, they're definately screwing up.

Oracle 9i takes 16M per connections.  So Oracle claims.  I've tested 
it as high as 20M.  I generally use 18M as a guideline
I've heard (not a DBA, though) that Oracle 9i has a mode where it does 
not spawn a process per connection, but uses threads instead (?) and in 
that mode it uses far less resources. This way, we have some modest 
Oracle servers hjandling up to 300 simultaneous (mostly idle) connections.
It depends on the size of your rollback segments and the number of 
transactions you are doing. If you do big transactions, each DB 
connection (thread *or* process) wioll need a big chunk of memory. I 
wouldn't kill yourself trying to figure out how to reduce this process 
size. Fix the real problem, which is poor connection management.

I'll mention DBCP and see what happens
DBCP has a nice removeAbandoned feature.

Otherwise, you can use this code (tweak it to your needs) to track where 
connections are opened and closed from:

(code not tested at all)

// open method signature
// code that opens the connection (and stores it in conn variable)
try {
throw new Exception(Pool Debugger says: Connection  + conn +  
opened:);
} catch (Exception e) {
e.printStackTrace();
}
I've seen code like this before. Many people think you can't get a stack 
trace unless you throw an exception. Not so. All you have to do is 
instantiate it, and you get the stack trace. So, the following will 
produce identical results, without the nasty try/throw/catch:

new Exception(Pool debugged says: ...).printStackTrace();

I would recommend explicitly printing out the hashCode of the Connection 
object itself, just in case the connection doesn't include any 
identifying information in it's .toString method.

Then you can...
#!/bin/sh
# Filter pool debugger statements.
This is a pretty good idea for some basic debugging. You should only 
have to demonstrate to your devs that you can deadlock their server by 
capping the connection pool. After that, it's their problem, right? :)

-chris


signature.asc
Description: OpenPGP digital signature


Re: Virtual Hosts with Apache and Tomcat

2004-03-01 Thread Christopher Schultz
Kannan,

Being yourself as SYSADMIN for UNIX and Network, it would be nice that
developers or professional should take a lead into get into this problem.
Easy for you to say.

Let's face it: these guys have a connection leak. Plain and simple. Your 
devs need to find their leak. It is demonstrable. It locks up the 
server. QED. Make them fix it.

This isn't about communication or a sysadmin whining to the devs about 
something he doesn't understand. This is a resource leak. It is 
apparently well-understood. He's done his homework. They are clowns.

-chris


signature.asc
Description: OpenPGP digital signature


Re: Virtual Hosts with Apache and Tomcat

2004-03-01 Thread Antonio Fiol Bonnín

That (with a high probability) is because some objects they store in 
sessions are not Serializable. IOW, they violate the Servlet 
Specification.


I'm just curious: is this actually a violation of the servlet spec? 
The API seems to indicate that you can put anything in the session 
that you want. I don't think it has to be Serializable... thought I 
was wrong before, once ;)


I'm not 100% sure. What I am sure is that you cannot user session 
replication or session persistence without this.


Tried that.  Capped it at 35 and the webserver stopped servicing any 
DB request as soon as the pool reached 35.  This is why I believe the 
pool management is faulty and/or something is hogging all the 
connections.

In fact, cap it at 10 and watch the app dring to a halt before it even 
gets going. This is a pretty compelling example. If the pool is drying 
up, they're definately screwing up.


It is. But developers may reply: You are using less connections than 
those specified in (the contract) / (the manual) / (fill in yourself).


It depends on the size of your rollback segments and the number of 
transactions you are doing. If you do big transactions, each DB 
connection (thread *or* process) wioll need a big chunk of memory. I 
wouldn't kill yourself trying to figure out how to reduce this process 
size. Fix the real problem, which is poor connection management.


No doubt...


I've seen code like this before. Many people think you can't get a 
stack trace unless you throw an exception. Not so. All you have to do 
is instantiate it, and you get the stack trace. So, the following will 
produce identical results, without the nasty try/throw/catch:

new Exception(Pool debugged says: ...).printStackTrace();


I thought I had tried that (JDK1.3) and I thought it had not worked. 
Glad to know it does...


I would recommend explicitly printing out the hashCode of the 
Connection object itself, just in case the connection doesn't include 
any identifying information in it's .toString method.


Oh. Of course... I never happened to come across such a braindead 
Connection class.



Then you can...
#!/bin/sh
# Filter pool debugger statements.


This is a pretty good idea for some basic debugging. You should only 
have to demonstrate to your devs that you can deadlock their server by 
capping the connection pool. After that, it's their problem, right? :)


With the proposal, you demonstrate they have a connection leak, which is 
the real problem.

Once you showed them they had ONE connection leak, you can urge them to 
dig for other connection leaks themselves.

But, of course, the idea about the deadlock seems really good also. If I 
understood, what you mean is: If you set the connection pool size too 
low for the app, it should crash at will (or better, show an 
'unavailable' screen), but it should continue working as soon as load 
permits it. Am I wrong?

Yours,

Antonio Fiol





smime.p7s
Description: S/MIME Cryptographic Signature


Re: Virtual Hosts with Apache and Tomcat

2004-02-29 Thread Christopher Schultz
Stephen,

I am having a problem with tomcat opening up up a number of connections to an 
oracle server that never get closed.  This causes the number of open 
connections to build up over time and, eventually, causes the oracle server 
to use all of its swap.
That's not good :(

Restarting tomcat clers this up.
That's good! :)

I think there is a problem with some jsp's opening connections and then not 
closig them but the developers claim (surprise) their code is clean.
It's tough to make sure that database connections (and statements, and 
result sets) get cleaned up in JSPs, unless you have a talented JSP 
author. (Most JSP authors aren't that talented, unless they are also 
good Java developers, in which case they would have implemented the DB 
access in a servlet and just used the JSP for display. Anywho...)

If the number of connections keeps going up and never tapers off or 
stops altogether, then something is misconfigured with your connection 
pools. Even if the engineers say that the pages are clean, you should 
protect the app server (and the DB server) from being swamped by capping 
the number of DB connections allowed. Ever. Any decent DB connection 
pool lets you specify this kind of thing. You should set that value to 
something reasonable. You can get away with a suprisingly low number of 
these.

(I was consulting on a big project that was a somewhat DB intensive, 
web-based app. They had the app server configured to accept 75 
simultaneous connections. They also set the db connection pool size to 
75. I asked why and they basically said so that every HTTP connection 
can get a db connection. Duh. I talked to management and make them put 
in debugging information to find out how many connections were ever in 
use simultaneously. Seven. (Suckers). They also didn't realize that 
Oracle takes like 10MB per connection on the backend, and they had six 
physical app servers running two separate copies of the application. 
That's 75 * 6 * 2 * 10MB = 900MB. Good thing the DB server had 3.5GB of 
RAM, but still...)

The explanation they give is:

The increase in number of connections beyond the CACHE_MAX_SIZE setting in 
the app1.properties file is due to the private labeled sites. For each 
virtual host (private labeled site), there will be a separate JVM running the 
Tomcat web server space. For each of these JVMs, there will be a separate 
database connection cache pool to serve the user requests. This is the 
designed functionality of a web server that will support virtual hosts.

I don't know tomcat near as well as I do Apache but this sounds like someone 
is blowing smoke.
This isn't too outrageous, actually. If each webapp has its own 
connection pool, and they are configured to have at maximum, say, 10 
connections, then you'll probably end up with 10 * webapp_count 
connections to the database server, regardless of the number of 
Tomcats/JVMs are running.

If Tomcat is configured to handle the connection to the database (say, 
through a Realm and a JNDI-configured connection pool), you might be 
able to share connections between all of the webapps. If you solve the 
private-labelling problem by using multiple webapps, but through the 
same database, this approach seems like an excellent idea; configure 
Tomcat to provide a JNDI-based connection pool, and then configure the 
separate applications to use that pool. That way, you can control the 
total number of connections across all private labels, instead of having 
them be independent.

If I run ps on the server it looks to me like there is 
only one instance and if I restart tomcat, _all_ virtual hosts are restarted.
Yeah, then it's definately separate webapps running on a single instance 
of Tomcat. Try to pitch the above idea to your engineers and see what 
they say (probably something like it's fine the way it is!).

I don't care who is right or wrong but I do want to clear up this problem.  
Any ideas?  If you need any more information, just ask.
I think I'd need to know if the connections were really never going 
away. Use netstat to find out what state they're in. If they all say 
ESTABLISHED, then you've got a connection leak. If many of them say 
TIME_WAIT or something like that, then you might have a problem with 
either the client or the server not properly hanging up the phone. If 
it's the former, then yell at your engineers. Cap that connection pool 
size at something reasonable, like ten connections. After that, the 
application starves. That's good for the app server and the database, 
while bad for your application. You can use Jakarta Commons' DBCP as 
your connections pool. It has some wonderful debug options, like giving 
you a stack trace for the code that obtained the connection if that 
connection isn't returned within a certain amount of time. That can save 
days or weeks of code reviews. If your connections are in TIME_WAIT, see 
how long they stay that way. Waiting 5-10 minutes for a connection like 
that to get 

Re: Virtual Hosts with Apache and Tomcat

2004-02-29 Thread Stephen Carville
On Sunday February 29 2004 11:58 am, Christopher Schultz wrote:
 Stephen,

  I am having a problem with tomcat opening up up a number of connections
  to an oracle server that never get closed.  This causes the number of
  open connections to build up over time and, eventually, causes the oracle
  server to use all of its swap.

 That's not good :(

Tell me about it :-)

  Restarting tomcat clers this up.

 That's good! :)

And bad.  Every time I restart, Tomcat loses the state information for 
established login sessions.  Customer don't like that.

  I think there is a problem with some jsp's opening connections and then
  not closig them but the developers claim (surprise) their code is clean.

 It's tough to make sure that database connections (and statements, and
 result sets) get cleaned up in JSPs, unless you have a talented JSP
 author. (Most JSP authors aren't that talented, unless they are also
 good Java developers, in which case they would have implemented the DB
 access in a servlet and just used the JSP for display. Anywho...)

I know they use ODBC for the database connections and there is a pool manager 
in there somewhere.  there is a jar file shared by all the jsp's that handles 
the connection pooling and a bunch of other stuff.  The pool manager is 
PoolmanBean.class.  I don't know enough about Java to say if that is a 
standard library or not.

I guess I don't know a lot about this case but I'm learning more :-)

Anyway, right after startup there are 10 connections.  If I open the main page 
and login, opens another connection closes.  Logging out adds another 
connection.  Both of these close but, apparently, none  of the tne original 
connectiions are not being used and, as time goes on, more connections get 
added to this anomolous pool.

I see someone just uploaded a new version of the jar file with the connection 
code in it so teh above may not be accurate

 If the number of connections keeps going up and never tapers off or
 stops altogether, then something is misconfigured with your connection
 pools. Even if the engineers say that the pages are clean, you should
 protect the app server (and the DB server) from being swamped by capping
 the number of DB connections allowed. Ever. Any decent DB connection
 pool lets you specify this kind of thing. You should set that value to
 something reasonable. You can get away with a suprisingly low number of
 these.

Tried that.  Capped it at 35 and the webserver stopped servicing any DB 
request as soon as the pool reached 35.  This is why I believe the pool 
management is faulty and/or something is hogging all the connections.

 (I was consulting on a big project that was a somewhat DB intensive,
 web-based app. They had the app server configured to accept 75
 simultaneous connections. They also set the db connection pool size to
 75. I asked why and they basically said so that every HTTP connection
 can get a db connection. Duh. I talked to management and make them put
 in debugging information to find out how many connections were ever in
 use simultaneously. Seven. (Suckers). They also didn't realize that
 Oracle takes like 10MB per connection on the backend, and they had six
 physical app servers running two separate copies of the application.
 That's 75 * 6 * 2 * 10MB = 900MB. Good thing the DB server had 3.5GB of
 RAM, but still...)

Oracle 9i takes 16M per connections.  So Oracle claims.  I've tested it as 
high as 20M.  I generally use 18M as a guideline

  The explanation they give is:
 
  The increase in number of connections beyond the CACHE_MAX_SIZE
  setting in the app1.properties file is due to the private labeled sites.
  For each virtual host (private labeled site), there will be a separate
  JVM running the Tomcat web server space. For each of these JVMs, there
  will be a separate database connection cache pool to serve the user
  requests. This is the designed functionality of a web server that will
  support virtual hosts.
 
  I don't know tomcat near as well as I do Apache but this sounds like
  someone is blowing smoke.

 This isn't too outrageous, actually. If each webapp has its own
 connection pool, and they are configured to have at maximum, say, 10
 connections, then you'll probably end up with 10 * webapp_count
 connections to the database server, regardless of the number of
 Tomcats/JVMs are running.

 If Tomcat is configured to handle the connection to the database (say,
 through a Realm and a JNDI-configured connection pool), you might be
 able to share connections between all of the webapps. If you solve the
 private-labelling problem by using multiple webapps, but through the
 same database, this approach seems like an excellent idea; configure
 Tomcat to provide a JNDI-based connection pool, and then configure the
 separate applications to use that pool. That way, you can control the
 total number of connections across all private labels, instead of having
 them be independent.

  If I run ps on the 

RE: Virtual Hosts with Apache and Tomcat

2004-02-29 Thread Ralph Einfeldt

Your developers may be right in the end but with wrong arguments.

With virtual hosting or several webapps you have just one jvm.

But each webapp has it's own classloader.
If the pool is loaded by the wepapp classloader you will have
one instance of the pool for each webapp.


 -Original Message-
 From: Stephen Carville [mailto:[EMAIL PROTECTED]
 Sent: Sunday, February 29, 2004 5:48 PM
 To: Tomcat Users
 Subject: Virtual Hosts with Apache and Tomcat
 
 
 The increase in number of connections beyond the 
 CACHE_MAX_SIZE setting in 
 the app1.properties file is due to the private labeled sites. 
 For each virtual host (private labeled site), there will be 
 a separate JVM running the Tomcat web server space. For each 
 of these JVMs, there will be a separate  database connection 
 cache pool to serve the user requests. 
 This is the designed functionality of a web server that will 
 support virtual hosts.
 


Re: Virtual Hosts with Apache and Tomcat

2004-02-29 Thread Antonio Fiol Bonnn
Stephen Carville wrote:

Restarting tomcat clers this up.
 

That's good! :)
   

And bad.  Every time I restart, Tomcat loses the state information for 
established login sessions.  Customer don't like that.
 

That (with a high probability) is because some objects they store in 
sessions are not Serializable. IOW, they violate the Servlet Specification.

I think there is a problem with some jsp's opening connections and then
not closig them but the developers claim (surprise) their code is clean.
 

It's tough to make sure that database connections (and statements, and
result sets) get cleaned up in JSPs, unless you have a talented JSP
author. (Most JSP authors aren't that talented, unless they are also
good Java developers, in which case they would have implemented the DB
access in a servlet and just used the JSP for display. Anywho...)
   

I know they use ODBC for the database connections and there is a pool manager 
in there somewhere.  there is a jar file shared by all the jsp's that handles 
the connection pooling and a bunch of other stuff.  The pool manager is 
PoolmanBean.class.  I don't know enough about Java to say if that is a 
standard library or not.

I guess I don't know a lot about this case but I'm learning more :-)

Anyway, right after startup there are 10 connections.  If I open the main page 
and login, opens another connection closes.  Logging out adds another 
connection.  Both of these close but, apparently, none  of the tne original 
connectiions are not being used and, as time goes on, more connections get 
added to this anomolous pool.

I see someone just uploaded a new version of the jar file with the connection 
code in it so teh above may not be accurate
 

Most developers think their code is beautiful, and so on (and I am a 
developer)... unless you prove they are wrong. One point on your side is 
that they probably *are* wrong.


If the number of connections keeps going up and never tapers off or
stops altogether, then something is misconfigured with your connection
pools. Even if the engineers say that the pages are clean, you should
protect the app server (and the DB server) from being swamped by capping
the number of DB connections allowed. Ever. Any decent DB connection
pool lets you specify this kind of thing. You should set that value to
something reasonable. You can get away with a suprisingly low number of
these.
   

Tried that.  Capped it at 35 and the webserver stopped servicing any DB 
request as soon as the pool reached 35.  This is why I believe the pool 
management is faulty and/or something is hogging all the connections.
 

I share your belief. Let's try to prove it. Raise it to some other 
figure, and see if the same happens again. Ask them how big should the 
figure be.


(I was consulting on a big project that was a somewhat DB intensive,
web-based app. They had the app server configured to accept 75
simultaneous connections. They also set the db connection pool size to
75. I asked why and they basically said so that every HTTP connection
can get a db connection. Duh. I talked to management and make them put
in debugging information to find out how many connections were ever in
use simultaneously. Seven. (Suckers). They also didn't realize that
Oracle takes like 10MB per connection on the backend, and they had six
physical app servers running two separate copies of the application.
That's 75 * 6 * 2 * 10MB = 900MB. Good thing the DB server had 3.5GB of
RAM, but still...)
   

Oracle 9i takes 16M per connections.  So Oracle claims.  I've tested it as 
high as 20M.  I generally use 18M as a guideline
 

I've heard (not a DBA, though) that Oracle 9i has a mode where it does 
not spawn a process per connection, but uses threads instead (?) and in 
that mode it uses far less resources. This way, we have some modest 
Oracle servers hjandling up to 300 simultaneous (mostly idle) connections.


Cap that connection pool
size at something reasonable, like ten connections. After that, the
application starves. That's good for the app server and the database,
while bad for your application. You can use Jakarta Commons' DBCP as
your connections pool. It has some wonderful debug options, like giving
you a stack trace for the code that obtained the connection if that
connection isn't returned within a certain amount of time. That can save
days or weeks of code reviews. If your connections are in TIME_WAIT, see
how long they stay that way. Waiting 5-10 minutes for a connection like
that to get cleaned up is not unheard of. If they're piling up on top of
one anothor and /never/ going away, it's time to talk to a system
administrator. If the syadmin is you, it's time to talk to the guy you
go to when you don't know things. Everyone needs a guy (or girl!) like
that. :)
   

I'll mention DBCP and see what happens
 

DBCP has a nice removeAbandoned feature.

Otherwise, you can use this code (tweak it to your needs) to track where 
connections are opened and 

Re: virtual hosts

2003-12-15 Thread Andoni
Hello,

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

Then comment the file by looking through the Docs.

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

tomcat_home/webapps/domain1/path_or_war
tomcat_home/webapps/domain2/path_or_war

Etc.

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

Regards,
Andoni.


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


 I followed the directions for setting up tomcat for virutal hosts:

 I added the following to server.xml

   lt;Host name=quot;domain1.comquot; debug=quot;0quot;
appBase=quot;webappsquot; unpackWARs=quot;truequot;gt;
 lt;Aliasgt;www.domain1.comlt;/Aliasgt;
 lt;Logger
className=quot;org.apache.catalina.logger.FileLoggerquot;
   directory=quot;logsquot; prefix=quot;domain1.quot;
suffix=quot;.logquot; timestamp=quot;truequot;/gt;
 lt;Context path=quot;quot; docBase=quot;domain1
debug=quot;0quot; reloadable=quot;truequot;/gt;
 lt;Context path=quot;/testquot; docBase=quot;domain1quot;
debug=quot;0quot; reloadable=quot;truequot;/gt;
   lt;/Hostgt;

 I also removed the default Host name reference to quot;localhostquot;.

 When I go to http://www.domain1.com I see a blank page and not the
deployed application domain1.  There are also numerous references to
quot;localhostquot; in server.xml do these need to be modified to support
multiple domains?



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



Re: virtual hosts in Tomcat and Apache

2003-07-15 Thread John Turner
Yes, in general you need a VirtualHost in httpd.conf for all virtual hosts 
in server.xml.  Otherwise, AFAIK, Tomcat will use the defaultHost defined 
in the Engine container, which is typically set to localhost by default.

John

On Tue, 15 Jul 2003 13:17:03 +1000, [EMAIL PROTECTED] wrote:

Hi again, Apache2+Tomcat+mod_jk working find until...
I used a virtual host directive in server.xml, that's fine; but
When I start adding virtual hosts in Apache, one for each developer's
directory, I got following error message :

RemoteORAClient: set URL to http://www.myhost.com/myhost/RemoteORAServer
java.io.FileNotFoundException:
http://www.myhost.com/myhost/RemoteORAServer
at sun.net.www.protocol ...bla

As soon as I remove the virtual host directives in APACHE2, all okay
again.
I am beginning to wonder whether I need a corresponding virtual host in
Server.xml for each virtual host in Apache2 ???
Where do I start with this problem, I coded the a2s and I don't remember
hardcoding any FQDN anywhere... ???
But errare humanum est


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


Re: virtual hosts - tomcat 4

2003-06-10 Thread Jens Skripczynski
Hi,

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

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

  Context path= docBase=path-to-webapps debug=0/


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

Ciao

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

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


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



Re: virtual hosts - tomcat 4

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

Host name=www.myurl.com debug=0 appBase=webapps
unpackWARs=true autoDeploy=true
Context path=
docBase=E:/jakarta-tomcat-4.1.12/webapps/myapp
debug=0/ 
/Host
but this still brings me to the ROOT directory. If i
take out the /myapp from the docBase, then i get the
directory listing for / (all folders in webapps). 

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

Thanks again,

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

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


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

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



Re: virtual hosts - tomcat 4

2003-06-10 Thread Giorgio Ponza
U can try

Host name=www.myurl.com debug=0 appBase=webapps/myapp
unpackWARs=true autoDeploy=true
Context path= docBase= debug=0/
/Host

Giorgio

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


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

 Host name=www.myurl.com debug=0 appBase=webapps
 unpackWARs=true autoDeploy=true
 Context path=
 docBase=E:/jakarta-tomcat-4.1.12/webapps/myapp
 debug=0/
 /Host
 but this still brings me to the ROOT directory. If i
 take out the /myapp from the docBase, then i get the
 directory listing for / (all folders in webapps).

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

 Thanks again,

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


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

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






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



Re: virtual hosts - tomcat 4

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

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


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

  Host name=www.myurl.com debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true
  Context path=
  docBase=E:/jakarta-tomcat-4.1.12/webapps/myapp
  debug=0/ 
  /Host
  but this still brings me to the ROOT directory. If i
  take out the /myapp from the docBase, then i get the
  directory listing for / (all folders in webapps). 

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

  Thanks again,

  --- Jens Skripczynski [EMAIL PROTECTED]
  wrote:
   Hi,
   
   I belief your question is, how to link your webapp
   to '/'
   instead of '/webapp'.
   
   So you need to add an explicit context as default
   context.
   
 Context path= docBase=path-to-webapps
   debug=0/
   
   
   Fiona:
I'm using Tomcat 4.1.12 and set up a virtual host
   in
my server.xml file. 

I want to be able to type the url www.myurl.com
   and
this to go to the equivalent of going directly to
localhost:8080/myapp. Currently www.myurl.com will
replace the localhost section, but i still have to
   put
the path of myapp after it to get to the page i
   want,
i.e. www.myurl.com/myapp works but www.myurl.com
   does
not.

Here's the host that i added:

Host name=www.myurl.com debug=0
   appBase=webapps
unpackWARs=true autoDeploy=true
Context path=/myapp docBase=myapp
   debug=0
reloadable=true crossContext=true
/Context
/Host
   
   Ciao
   
   Jens Skripczynski
   -- 
   E-Mail: skripi-lists(at)myrealbox(dot)com
   
   I think there is a world market for about five
   computers.
   -- Thomas J. Watson,
   CEO, IBM Corporation, 1947
   
   
  
  -
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
   


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

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



Re: virtual hosts - tomcat 4

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

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

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

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

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

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


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

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



Re: virtual hosts - tomcat 4

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

 Host name=www.my-site.com debug=0 appBase=c:/websites/my-site 
unpackWARs=true autoDeploy=true

   Logger className=org.apache.catalina.logger.FileLogger
directory=logs  prefix=my-site_log. suffix=.txt 
timestamp=true/

   !-- Tomcat Root Context --
   Context path= docBase= debug=0/
 /Host

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

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

John

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

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

Host name=www.myurl.com debug=0
appBase=webapps/myapp
unpackWARs=true autoDeploy=true
Context path= docBase= debug=0/
/Host
Giorgio

- Original Message -
From: Fiona [EMAIL PROTECTED]
To: Tomcat Users List
[EMAIL PROTECTED]; Jens
Skripczynski [EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 1:42 PM
Subject: Re: virtual hosts - tomcat 4
 I've tried what you suggested, and my host is now:

 Host name=www.myurl.com debug=0
appBase=webapps
 unpackWARs=true autoDeploy=true
 Context path=
 docBase=E:/jakarta-tomcat-4.1.12/webapps/myapp
 debug=0/
 /Host
 but this still brings me to the ROOT directory. If
i
 take out the /myapp from the docBase, then i get
the
 directory listing for / (all folders in webapps).

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

 Thanks again,

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

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


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


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






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


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



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


Re: virtual hosts - tomcat 4

2003-06-10 Thread Andoni
Hello,

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

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

Andoni.

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


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

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

 Thanks!
 --- Giorgio Ponza [EMAIL PROTECTED] wrote:
  U can try
 
  Host name=www.myurl.com debug=0
  appBase=webapps/myapp
  unpackWARs=true autoDeploy=true
  Context path= docBase= debug=0/
  /Host
 
  Giorgio
 
  - Original Message -
  From: Fiona [EMAIL PROTECTED]
  To: Tomcat Users List
  [EMAIL PROTECTED]; Jens
  Skripczynski [EMAIL PROTECTED]
  Sent: Tuesday, June 10, 2003 1:42 PM
  Subject: Re: virtual hosts - tomcat 4
 
 
   I've tried what you suggested, and my host is now:
  
   Host name=www.myurl.com debug=0
  appBase=webapps
   unpackWARs=true autoDeploy=true
   Context path=
   docBase=E:/jakarta-tomcat-4.1.12/webapps/myapp
   debug=0/
   /Host
   but this still brings me to the ROOT directory. If
  i
   take out the /myapp from the docBase, then i get
  the
   directory listing for / (all folders in webapps).
  
   I can still get to the page by going to
   www.myurl.com/myapp but i want to get to it by
  just
   typing www.myurl.com
  
   Thanks again,
  
   --- Jens Skripczynski [EMAIL PROTECTED]
   wrote:
Hi,
   
I belief your question is, how to link your
  webapp
to '/'
instead of '/webapp'.
   
So you need to add an explicit context as
  default
context.

  Context path=
  docBase=path-to-webapps
debug=0/

   
Fiona:
 I'm using Tomcat 4.1.12 and set up a virtual
  host
in
 my server.xml file.

 I want to be able to type the url
  www.myurl.com
and
 this to go to the equivalent of going directly
  to
 localhost:8080/myapp. Currently www.myurl.com
  will
 replace the localhost section, but i still
  have to
put
 the path of myapp after it to get to the page
  i
want,
 i.e. www.myurl.com/myapp works but
  www.myurl.com
does
 not.

 Here's the host that i added:

 Host name=www.myurl.com debug=0
appBase=webapps
 unpackWARs=true autoDeploy=true
 Context path=/myapp docBase=myapp
debug=0
 reloadable=true crossContext=true
 /Context
 /Host
   
Ciao
   
Jens Skripczynski
--
E-Mail: skripi-lists(at)myrealbox(dot)com
   
I think there is a world market for about five
computers.
-- Thomas J.
  Watson,
CEO, IBM Corporation, 1947
   
   
   
  
 
 -
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
   
  
  
   __
   Do you Yahoo!?
   Yahoo! Calendar - Free online calendar with sync
  to Outlook(TM).
   http://calendar.yahoo.com
  
  
 
 -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
  
 
 
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 


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

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




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



Re: virtual hosts - tomcat 4

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

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

  Context path=
  docBase=path-to-webapps
debug=0/

   
Fiona:
 I'm using Tomcat 4.1.12 and set up a
 virtual
  host
in
 my server.xml file.

 I want to be able to type the url
  www.myurl.com
and
 this to go to the equivalent of going
 directly
  to
 localhost:8080/myapp. Currently
 www.myurl.com
  will
 replace the localhost section, but i still
  have to
put
 the path of myapp after it to get to the
 page
  i
want,
 i.e. www.myurl.com/myapp works but
  www.myurl.com
does
 not.

 Here's the host that i added:

 Host name=www.myurl.com debug=0
appBase=webapps
 unpackWARs=true autoDeploy=true
 Context path=/myapp docBase=myapp
debug=0
 reloadable=true crossContext=true
 /Context
 /Host
   
Ciao
   
Jens Skripczynski
--
E-Mail: skripi-lists(at)myrealbox(dot)com
   
I think there is a world market for about
 five
computers.
-- Thomas J.
  Watson,
CEO, IBM Corporation, 1947
   
   
   
  
 
 

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

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

-
 
=== message truncated ===


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

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



Re: virtual hosts - tomcat 4

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

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

John

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

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

Host name=www.my-site.com debug=0
appBase=c:/websites/my-site unpackWARs=true autoDeploy=true
Logger
className=org.apache.catalina.logger.FileLogger
directory=logs prefix=my-site_log. suffix=.txt timestamp=true/
!-- Tomcat Root Context --
Context path= docBase= debug=0/
/Host

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

John

On Tue, 10 Jun 2003 04:58:49 -0700 (PDT), Fiona
[EMAIL PROTECTED] wrote:
 Thanks, this still brings me to the ROOT though,
if i
 set the path to / as suggested in another reply
i
 then get a HTTP Status 500 error - No context
 configured to process this request.

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

 Thanks!
 --- Giorgio Ponza [EMAIL PROTECTED] wrote:
 U can try

 Host name=www.myurl.com debug=0
 appBase=webapps/myapp
 unpackWARs=true autoDeploy=true
 Context path= docBase= debug=0/
 /Host

 Giorgio

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


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


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


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





-

=== message truncated ===

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



--
Using M2, Opera's revolutionary e

Re: virtual hosts - tomcat 4

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

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

  Context path=
  docBase=path-to-webapps
debug=0/

   
Fiona:
 I'm using Tomcat 4.1.12 and set up a
 virtual
  host
in
 my server.xml file.

 I want to be able to type the url
  www.myurl.com
and
 this to go to the equivalent of going
 directly
  to
 localhost:8080/myapp. Currently
 www.myurl.com
  will
 replace the localhost section, but i still
  have to
put
 the path of myapp after it to get to the
 page
  i
want,
 i.e. www.myurl.com/myapp works but
  www.myurl.com
does
 not.

 Here's the host that i added:

 Host name=www.myurl.com debug=0
appBase=webapps
 unpackWARs=true autoDeploy=true
 Context path=/myapp docBase=myapp
debug=0
 reloadable=true crossContext=true
 /Context
 /Host
   
Ciao
   
Jens Skripczynski
--
E-Mail: skripi-lists(at)myrealbox(dot)com
   
I think there is a world market for about
 five
computers.
-- Thomas J.
  Watson,
CEO, IBM Corporation, 1947
   
   
   
  
 
 

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

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

-
 
=== message truncated ===


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

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



Re: virtual hosts - tomcat 4

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

Let us know if you have any more problems.

John

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

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

Host name=www.my-site.com debug=0
appBase=c:/websites/my-site unpackWARs=true autoDeploy=true
Logger
className=org.apache.catalina.logger.FileLogger
directory=logs prefix=my-site_log. suffix=.txt timestamp=true/
!-- Tomcat Root Context --
Context path= docBase= debug=0/
/Host

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

John

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


Re: virtual hosts and manager app

2003-02-14 Thread Craig R. McClanahan


On Thu, 13 Feb 2003, Edgar Dollin wrote:

 Date: Thu, 13 Feb 2003 20:29:48 -0500
 From: Edgar Dollin [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: virtual hosts and manager app

 The manager app is pretty nice for applications located in the
 $CATALINA_HOME/webapps directory.  For the manager application to function
 does your application have to be located there or can it be in the arbitrary
 docbase directory of your Context.


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

 I have added the Context for the manager application to my Host block
 and the manager application looks like it starts but you can't run any of
 the programs.

 Any help would be appreciated.


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

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

 Thanks

 Edgar


Craig


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




re: virtual hosts and manager app

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




RE: Virtual Hosts

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

It may shed some light.

rls






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

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



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

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

John


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


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

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

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

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

Thanks.

  Tom


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


 Does any know what would cause this message:
 Directory index forbidden by rule: C:\apache\qv


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


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

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


  I'm having a similar issue.  I'm running tc4.1.18 on w2k server. 
  http://localhost/examples works but http://mysite.com/examples 
  doesn't.
I
  searched the archives and found some information on creating a host 
  file with the FQDN as the name but that didn't seem to work.  Is 
  there
 something
  else I need to change?  Do I need to configure my firewall || router 
  to
 let
  additional ports through?  Right now, port:80 (http) serves static
content
  with no problem.
 
  I'm new - thanks for your help.
 
  -Original Message-
  From: Chris Schild [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 23, 2003 1:16 PM
  To: Tomcat Users List
  Cc: [EMAIL PROTECTED]
  Subject: Re: Virtual Hosts
 
 
  Tom,
  I could possibly use some of the information.  I am running on the 
  same
  releases: Apache 2.0.43, Tomcat 4.1.18  win2k.
  My problem is that I can't get to the directory of my virtualHosts.
 
  e.g. http://localhost/examples is not a problem BUT 
  http://mysite.com/examples will not work.  I just noticed an err in 
  the
 log
  saying -
  Directory index forbidden by rule: 
  C:/Apache/Tomcat4.1/path/to/examples
 
  Can't find where to make my edits so the directory can be seen.
 
  Maybe this is a related issue?  Either way if you know how to 
  configure
 the
  systems so that the directory will be shown, I would much 
  appreciated
it!
 
  - Original Message -
  From: Tom Holmes Jr. [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Wednesday, January 22, 2003 11:37 PM
  Subject: Virtual Hosts
 
 
   I have finally discovered the problem on why some of my web-apps 
   are
  working
   and some are not ... it is either my configuration or a MAJOR 
   SERIOUS
 BUG

Re: Virtual Hosts

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

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

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

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

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


 I have finally discovered the problem on why some of my web-apps are
working
 and some are not ... it is either my configuration or a MAJOR SERIOUS BUG
 with Apache 2.0.43 and Tomcat 4.1.18 on Windows 2000.

 I have included a copy of my httpd.conf file because it is the only one
that
 matters here.  The server.xml file has one Engine tag and then it has 4
 different Host tags with 1 Context for each virtual host.

 When we have two virtual host/web-apps listed below ONLY the JSP pages
work
 for the second web-app.  They do NOT work for the first web-app listed.
If
 I flip these virtual hosts around and then restart the Apache/Tomcat
server,
 then the opposite is true.  I then tried 3 web-apps and again ... ONLY the
 last web-app works and the JSP pages are correctly served.

 If anyone needs the other files:  jk2.properties or workers2.properites or
 server.xml, please let me know and I can provide them.  I am sure that
these
 files are ok.  Switching the Host tags around in the Engine tag did
not
 seem to have any effect.

 I may try this same configuration on my Red Hat Linux 8.0 box and see if
the
 same problem happens.  At least that way I could say the problem is
 cross-platform or just limitations on the Windows 2000 versions.

 If I can be of any help, or if you need any more information, please let
me
 know.  I ask that someone please look at this issue and my configuration
and
 recommend a solution.   I really want to use Apache and Tomcat together,
but
 this is incredibly frustrating and should not be a problem.   Thanks.

   Tom

 VirtualHost *
  ServerName test.tomholmes.net
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/test
  Location /*.jsp
   JkUriSet worker ajp13:localhost:8009
  /Location
  ErrorLog logs/test-error_log
  CustomLog logs/test-access_log common
  DirectoryIndex default.jsp index.jsp
 /VirtualHost

 VirtualHost *
  ServerName meditech.tomholmes.net
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/meditech
  Location /*.jsp
   JkUriSet uri meditech.tomholmes.net
   JkUriSet worker ajp13:localhost:8009
  /Location
  ErrorLog logs/meditech-error_log
  CustomLog logs/meditech-access_log common
  DirectoryIndex default.jsp
 /VirtualHost








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


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




RE: Virtual Hosts

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

I'm new - thanks for your help.

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


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

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

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

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

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


 I have finally discovered the problem on why some of my web-apps are
working
 and some are not ... it is either my configuration or a MAJOR SERIOUS BUG
 with Apache 2.0.43 and Tomcat 4.1.18 on Windows 2000.

 I have included a copy of my httpd.conf file because it is the only one
that
 matters here.  The server.xml file has one Engine tag and then it has 4
 different Host tags with 1 Context for each virtual host.

 When we have two virtual host/web-apps listed below ONLY the JSP pages
work
 for the second web-app.  They do NOT work for the first web-app listed.
If
 I flip these virtual hosts around and then restart the Apache/Tomcat
server,
 then the opposite is true.  I then tried 3 web-apps and again ... ONLY the
 last web-app works and the JSP pages are correctly served.

 If anyone needs the other files:  jk2.properties or workers2.properites or
 server.xml, please let me know and I can provide them.  I am sure that
these
 files are ok.  Switching the Host tags around in the Engine tag did
not
 seem to have any effect.

 I may try this same configuration on my Red Hat Linux 8.0 box and see if
the
 same problem happens.  At least that way I could say the problem is
 cross-platform or just limitations on the Windows 2000 versions.

 If I can be of any help, or if you need any more information, please let
me
 know.  I ask that someone please look at this issue and my configuration
and
 recommend a solution.   I really want to use Apache and Tomcat together,
but
 this is incredibly frustrating and should not be a problem.   Thanks.

   Tom

 VirtualHost *
  ServerName test.tomholmes.net
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/test
  Location /*.jsp
   JkUriSet worker ajp13:localhost:8009
  /Location
  ErrorLog logs/test-error_log
  CustomLog logs/test-access_log common
  DirectoryIndex default.jsp index.jsp
 /VirtualHost

 VirtualHost *
  ServerName meditech.tomholmes.net
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/meditech
  Location /*.jsp
   JkUriSet uri meditech.tomholmes.net
   JkUriSet worker ajp13:localhost:8009
  /Location
  ErrorLog logs/meditech-error_log
  CustomLog logs/meditech-access_log common
  DirectoryIndex default.jsp
 /VirtualHost








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


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



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

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

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



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




RE: Virtual Hosts

2003-01-23 Thread Turner, John

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

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

1) Use Alias within Host to alias mydomain.com to localhost

or

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

John


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

Re: Virtual Hosts

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

Lajos



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

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

1) Use Alias within Host to alias mydomain.com to localhost

or

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

John




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


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

I'm new - thanks for your help.

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


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

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

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

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

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



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


working


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

MAJOR SERIOUS BUG


with Apache 2.0.43 and Tomcat 4.1.18 on Windows 2000.

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

the only one
that


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

then it has 4


different Host tags with 1 Context for each virtual host.

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

the JSP pages
work


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

web-app listed.
If


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


server,


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

again ... ONLY the


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

If anyone needs the other files:  jk2.properties or 

workers2.properites or


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

am sure that
these


files are ok.  Switching the Host tags around in the 

Engine tag did
not


seem to have any effect.

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

box and see if
the


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

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

information, please let
me


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

configuration
and


recommend a solution.   I really want to use Apache and 

Tomcat together,
but


this is incredibly frustrating and should not be a problem. 

 Thanks.


 Tom

VirtualHost *
ServerName test.tomholmes.net
ServerAdmin [EMAIL PROTECTED]
DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/test
Location /*.jsp
 JkUriSet worker ajp13:localhost:8009
/Location
ErrorLog logs/test-error_log
CustomLog logs/test-access_log common
DirectoryIndex default.jsp index.jsp
/VirtualHost

VirtualHost *
ServerName meditech.tomholmes.net
ServerAdmin [EMAIL PROTECTED]
DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/meditech
Location /*.jsp
 JkUriSet uri meditech.tomholmes.net
 JkUriSet worker ajp13:localhost:8009
/Location
ErrorLog logs/meditech-error_log
CustomLog logs/meditech-access_log common
DirectoryIndex default.jsp
/VirtualHost




--
--





--
To unsubscribe, e-mail:


mailto:[EMAIL PROTECTED]


For additional commands, e-mail:


mailto:[EMAIL PROTECTED]


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

Re: Virtual Hosts

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


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


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

 I'm new - thanks for your help.

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


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

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

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

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

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


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


 --
--
 


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


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


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

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

 If you believe

Re: Virtual Hosts

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


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

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


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

 I'm new - thanks for your help.

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


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

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

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

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

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


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


 --
--
 


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


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


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

 If you are not the intended recipient, any disclosure,
 copying, distribution

Re: Virtual Hosts

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


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


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

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


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

 I'm new - thanks for your help.

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


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

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

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

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

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


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


 --
--
 


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


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


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

Re: Virtual Hosts

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

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

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

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

Thanks.

  Tom


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


 Does any know what would cause this message:
 Directory index forbidden by rule: C:\apache\qv


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


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

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


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

Re: Virtual Hosts

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

JkMount /examples/* ajp13

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

So you may have something like:

VirtualHost xxx.xxx.xxx.xxx:80
  DocumentRoot /home/httpd/htdocs/mysite
  ServerName mysite.com
  JkMount /*.jsp ajp13
  JkMount /examples/* ajp13
/VirtualHost

Hope this helps.

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

RE: Virtual Hosts

2003-01-23 Thread Turner, John

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

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

John


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


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

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

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

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

Thanks.

  Tom


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


 Does any know what would cause this message:
 Directory index forbidden by rule: C:\apache\qv


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


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

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


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

Re: Virtual Hosts

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

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

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

Thanks.

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



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

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

 John


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


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

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

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

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

 Thanks.

   Tom


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


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

RE: virtual hosts | more

2003-01-03 Thread Turner, John

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

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

John


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


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

Adrian



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

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

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

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




RE: virtual hosts | more [RBS2003010400002265]

2003-01-03 Thread techassistance
Ahoy there!

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

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

Thank you for your patience and enjoy your day!

Best wishes,

Sebastian
First Mate

RIVER BELLE ONLINE CASINO


   RIVER BELLE CASINOS ONLINE


RIVER BELLE   ACES HIGH
Enjoy Southern HospitalityFast Paced Casino Action

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

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

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

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

E.O.E.

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




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




Re: Virtual hosts with Apache 2.0.43 Tomcat 4.1.12 mod_jk2 on Linux

2002-10-31 Thread Tomcat Newbie
OK, just figured it out. Duh! I just had to add [uri:www.mydomain.tld/*]
entry in addition to an existing [uri:mydomain.tld/*]. Now it works. :-)

Ed

- Original Message -
From: Tomcat Newbie [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, October 30, 2002 9:27 PM
Subject: Virtual hosts with Apache 2.0.43  Tomcat 4.1.12  mod_jk2 on Linux


 I can't seem to figure out why my setup behaves differently when I access
 the same host with and without 'www.'. I used to run Apache 1.3.x and
Tomcat
 4.0.x, where my setup included aliases in Apache config file as well as
two
 virtual hosts in Tomcat (with 'www.' and without) for each domain. Not
sure
 if that was the way to do it, but it worked!

 My present setup, aside from upgraded software, has Aliases both in Apache
 and Tomcat config files, however such setup does not seem to help. Apache
 handles requests properly and forwards them to the same directory, however
 with 'www.' I get a directory listing, while without Tomcat picks up the
 request and processes it.

 What am I missing? Or do I have to setup two hosts for each domain again?

 Thanks,

 Ed


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




Re: Virtual Hosts

2002-10-25 Thread Curt LeCaptain
Now, what I'm wondering, is since (according to your HOWTO) Tomcat is setup
to create the Virtualhost directive for Apache, will setting up just my
server.xml do it for me, or will I need to setup Apache also?

Curt



- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, October 25, 2002 10:03 AM
Subject: RE: Virtual Hosts



 Glad I could help.

 Check the documentation for the Host container:

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

 ...and the documentation for the Context container:

 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html

 Basically, a default Tomcat install has a single Virtual Host (localhost)
 with a single webapp (/examples).  So setup a new Host container that
mimics
 the one for localhost, and setup a ROOT Context container for your webapp
 within the new Host container.

 On the Apache side, setup a normal Apache VirtualHost, and in that
 VirtualHost container, put two JkMount statements to map *.jsp and
/servlet
 to ajp13.  In workers.properties, duplicate the setup you have for
 localhost, and change .host to the same name as the virtual host in Apache
 and the new Host container in server.xml.

 That should get you started.

 John


  -Original Message-
  From: Curt LeCaptain [mailto:lecaptainc;itol.com]
  Sent: Friday, October 25, 2002 10:50 AM
  To: Tomcat Users List
  Subject: Virtual Hosts
 
 
  Okay... so, I've redone my complete Tomcat/Apache setup according to
  instructions on John Turner's website:
 
  http://www.johnturner.com/howto/apache1-tomcat404-howto.html
 
  Everything works as it should! :)
 
  Now... I'm completely baffled as to how to set up a virtual host in
  server.xml, I'm not exactly sure how to setup the elements
  and such to get
  directories to work.
 
  IE, I want a virtual host called dev.infinity-tech.com
  within there, where
  JSP's can be launched from the document root of that site
  (/www/docs/dev.infinity-tech.com) and servlets can be
  launched from a folder
  within that directory.  If someone could help me out, or point me in a
  direction to figure this out, please, let me know! :)
 
  Curt LeCaptain
 
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
 

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



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




RE: Virtual Hosts

2002-10-25 Thread Turner, John

Nope, just setting up server.xml should be enough.  You will need to restart
Tomcat to regen a new mod_jk.conf, then either restart apache or do
`APACHE_HOME/bin/apachectl graceful`.

John

 -Original Message-
 From: Curt LeCaptain [mailto:lecaptainc;itol.com]
 Sent: Friday, October 25, 2002 11:14 AM
 To: Tomcat Users List
 Subject: Re: Virtual Hosts
 
 
 Now, what I'm wondering, is since (according to your HOWTO) 
 Tomcat is setup
 to create the Virtualhost directive for Apache, will 
 setting up just my
 server.xml do it for me, or will I need to setup Apache also?
 
 Curt
 
 
 
 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Friday, October 25, 2002 10:03 AM
 Subject: RE: Virtual Hosts
 
 
 
  Glad I could help.
 
  Check the documentation for the Host container:
 
  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html
 
  ...and the documentation for the Context container:
 
  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html
 
  Basically, a default Tomcat install has a single Virtual 
 Host (localhost)
  with a single webapp (/examples).  So setup a new Host 
 container that
 mimics
  the one for localhost, and setup a ROOT Context container 
 for your webapp
  within the new Host container.
 
  On the Apache side, setup a normal Apache VirtualHost, and in that
  VirtualHost container, put two JkMount statements to map *.jsp and
 /servlet
  to ajp13.  In workers.properties, duplicate the setup you have for
  localhost, and change .host to the same name as the virtual 
 host in Apache
  and the new Host container in server.xml.
 
  That should get you started.
 
  John
 
 
   -Original Message-
   From: Curt LeCaptain [mailto:lecaptainc;itol.com]
   Sent: Friday, October 25, 2002 10:50 AM
   To: Tomcat Users List
   Subject: Virtual Hosts
  
  
   Okay... so, I've redone my complete Tomcat/Apache setup 
 according to
   instructions on John Turner's website:
  
   http://www.johnturner.com/howto/apache1-tomcat404-howto.html
  
   Everything works as it should! :)
  
   Now... I'm completely baffled as to how to set up a 
 virtual host in
   server.xml, I'm not exactly sure how to setup the elements
   and such to get
   directories to work.
  
   IE, I want a virtual host called dev.infinity-tech.com
   within there, where
   JSP's can be launched from the document root of that site
   (/www/docs/dev.infinity-tech.com) and servlets can be
   launched from a folder
   within that directory.  If someone could help me out, or 
 point me in a
   direction to figure this out, please, let me know! :)
  
   Curt LeCaptain
  
  
   --
   To unsubscribe, e-mail:
   mailto:tomcat-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
   mailto:tomcat-user-help;jakarta.apache.org
  
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

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




Re: Virtual Hosts

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


What exactly would I set that to?

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

Is that what I would set as my appBase?

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

Curt L


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




RE: Virtual Hosts

2002-10-25 Thread Shapira, Yoav
Hi,

What exactly would I set that to?

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

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

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

Do you have just one webapp or many?  

Is that what I would set as my appBase?

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

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

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

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

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

Yoav Shapira
Millennium ChemInformatics

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


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


Re: Virtual Hosts

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

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

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

Curt


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


 Question about appBase...


 What exactly would I set that to?

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

 Is that what I would set as my appBase?

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

 Curt L


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



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




Re: Virtual Hosts

2002-10-25 Thread Craig R. McClanahan


On Fri, 25 Oct 2002, Curt LeCaptain wrote:

 Date: Fri, 25 Oct 2002 13:20:45 -0500
 From: Curt LeCaptain [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Virtual Hosts

 Question about appBase...


 What exactly would I set that to?

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

 Is that what I would set as my appBase?

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


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


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

 Curt L


Craig


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




Re: Virtual Hosts

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

rls





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

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Virtual Hosts

Okay... so, I've redone my complete Tomcat/Apache setup according to
instructions on John Turner's website:

http://www.johnturner.com/howto/apache1-tomcat404-howto.html

Everything works as it should! :)

Now... I'm completely baffled as to how to set up a virtual host in
server.xml, I'm not exactly sure how to setup the elements and such to get
directories to work.

IE, I want a virtual host called dev.infinity-tech.com within there, 
where
JSP's can be launched from the document root of that site
(/www/docs/dev.infinity-tech.com) and servlets can be launched from a 
folder
within that directory.  If someone could help me out, or point me in a
direction to figure this out, please, let me know! :)

Curt LeCaptain


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




Web Hosting with Tomcat 4 and Apache

Overview


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

The major conerns are:

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

2.  Configuring Apache and Tomcat for virtual hosting.

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

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

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

Unix accounts and groups


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

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

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

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

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

Directory layout


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

Here is an example of how I do it:

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

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

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


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

www webmaster:user 2775
--

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

logs root:other 755
---

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

tomcat tomcat:tomcat 755


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

tomcat/work tomcat:tomcat 755
-

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

tomcat/logs tomcat:tomcat 755 
--

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

reports webmaster:tomcat 2775
-

Directory I use for placing custom 

Re: Virtual Hosts: Connecting Apache 2.x to Tomcat 4.x (was mod_jk, WindowsXP, Tomcat 4.0.5 - issues)

2002-09-26 Thread Robert L Sowders

It depends on your situation.  With just a few VirtualHosts it's easier to 
have the client domains aliased to your interface.

Here's a nice article that was posted here a couple of months ago.






Matt Raible [EMAIL PROTECTED]
09/25/2002 08:29 PM
Please respond to Tomcat Users List

 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:Virtual Hosts: Connecting Apache 2.x to Tomcat 4.x (was 
mod_jk, Windows 
XP, Tomcat 4.0.5 - issues)

Sweet - I got it all working - now for a new question.

What is the recommended setup for an ISP/ASP with one box?  The article
I modified my workers.properties after (http://www.ubeans.com/tomcat/)
seems to be geared for load-balancing rather than an ISP/ASP
situation.  So I added the following and it seemed to achieve what I
wanted.

VirtualHost 192.168.0.3:80
ServerName localhost
JkMount /*.jsp tomcat1
JkMount /servlet/* tomcat1
/VirtualHost

# Second Virtual Host. Also accessible via HTTPS
#
VirtualHost 192.168.0.3:80
ServerName fatbastard
JkMount /*.jsp tomcat2
JkMount /servlet/* tomcat2
/VirtualHost

Where requests to http://localhost will go to tomcat 1 and
http://fatbastard will go to tomcat 2.  So if I now have to configure
this on one Linux server for approx 5 (initially) different tomcat
instances. 

So do you recommend setting up a bunch of customer1.mycompany.com
aliases that go to the same IP, or stuffing a bunch of NIC cards into
the one box?

Thanks for all your help - this stuff is great, and folks on this list
have made it very easy to setup.

Matt



 -Original Message-
 From: Robert L Sowders [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, September 25, 2002 6:25 PM
 To: Tomcat Users List
 Subject: Re: mod_jk, Windows XP, Tomcat 4.0.5 - issues
 
 
 No, you should stay with 2.0.42.  You need the dll from the 
 Jakarta build 
 web site, it has been built against 2.0.42.  The one you 
 downloaded has 
 not been up-graded yet to work with 2.0.42 yet.
 
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2
 /nightly/win32/
 
 rls
 
 
 
 
 Matt Raible [EMAIL PROTECTED]
 09/25/2002 05:10 PM
 Please respond to Tomcat Users List
 
 
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 cc: 
 Subject:mod_jk, Windows XP, Tomcat 4.0.5 - issues
 
 I'm trying to use one of the mod_jk.dll downloads at 
http://www.acg-gmbh.de/mod_jk/ and having no luck.  The errors I'm
getting is:

1. The Apache service named  reported the following error:
 Apache.exe: module
C:\jakarta-tomcat-connectors-4.0.4-src\jk\native\apache-2.0\mod_jk.c
is not compatible with this version of Apache (found 20020628, need
20020903). .

2. The Apache service named  reported the following error:
 Please contact the vendor for the correct version. .

I have the following in http.conf

# Using mod_jk.dll to redirect dynamic calls to Tomcat LoadModule
jk_module modules/mod_jk.dll

#
# Configure mod_jk
#
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info

And I've downloaded http://www.acg-gmbh.de/mod_jk/Release/mod_jk.dll.

My configuration is Windows XP SP1, Apache 2.0.42, Tomcat 4.0.5.

Looks like I need Apache 2.0.40 eh?

Thanks,

Matt



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







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





Web Hosting with Tomcat 4 and Apache

Overview


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

The major conerns are:

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

2.  Configuring Apache and Tomcat for virtual hosting.

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

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

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

Unix accounts and groups


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

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

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

Re: Virtual Hosts: Connecting Apache 2.x to Tomcat 4.x (was mod_jk, WindowsXP, Tomcat 4.0.5 - issues)

2002-09-26 Thread Robert L Sowders

Also don't forget that with Apache2 you have access to mod_vhost_alias and 
mod_vhost_aliasIP which can simplify things greatly.  Examples are in the 
Apache documentation that is installed with Apache 2.0.42
http://localhost/manual/mod/mod_vhost_alias.html
http://localhost/manual/vhosts/mass.html
See also
http://localhost/manual/vhosts/name-based.html

rls





Matt Raible [EMAIL PROTECTED]
09/25/2002 08:29 PM
Please respond to Tomcat Users List

 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:Virtual Hosts: Connecting Apache 2.x to Tomcat 4.x (was 
mod_jk, Windows 
XP, Tomcat 4.0.5 - issues)

Sweet - I got it all working - now for a new question.

What is the recommended setup for an ISP/ASP with one box?  The article
I modified my workers.properties after (http://www.ubeans.com/tomcat/)
seems to be geared for load-balancing rather than an ISP/ASP
situation.  So I added the following and it seemed to achieve what I
wanted.

VirtualHost 192.168.0.3:80
ServerName localhost
JkMount /*.jsp tomcat1
JkMount /servlet/* tomcat1
/VirtualHost

# Second Virtual Host. Also accessible via HTTPS
#
VirtualHost 192.168.0.3:80
ServerName fatbastard
JkMount /*.jsp tomcat2
JkMount /servlet/* tomcat2
/VirtualHost

Where requests to http://localhost will go to tomcat 1 and
http://fatbastard will go to tomcat 2.  So if I now have to configure
this on one Linux server for approx 5 (initially) different tomcat
instances. 

So do you recommend setting up a bunch of customer1.mycompany.com
aliases that go to the same IP, or stuffing a bunch of NIC cards into
the one box?

Thanks for all your help - this stuff is great, and folks on this list
have made it very easy to setup.

Matt



 -Original Message-
 From: Robert L Sowders [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, September 25, 2002 6:25 PM
 To: Tomcat Users List
 Subject: Re: mod_jk, Windows XP, Tomcat 4.0.5 - issues
 
 
 No, you should stay with 2.0.42.  You need the dll from the 
 Jakarta build 
 web site, it has been built against 2.0.42.  The one you 
 downloaded has 
 not been up-graded yet to work with 2.0.42 yet.
 
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2
 /nightly/win32/
 
 rls
 
 
 
 
 Matt Raible [EMAIL PROTECTED]
 09/25/2002 05:10 PM
 Please respond to Tomcat Users List
 
 
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 cc: 
 Subject:mod_jk, Windows XP, Tomcat 4.0.5 - issues
 
 I'm trying to use one of the mod_jk.dll downloads at 
http://www.acg-gmbh.de/mod_jk/ and having no luck.  The errors I'm
getting is:

1. The Apache service named  reported the following error:
 Apache.exe: module
C:\jakarta-tomcat-connectors-4.0.4-src\jk\native\apache-2.0\mod_jk.c
is not compatible with this version of Apache (found 20020628, need
20020903). .

2. The Apache service named  reported the following error:
 Please contact the vendor for the correct version. .

I have the following in http.conf

# Using mod_jk.dll to redirect dynamic calls to Tomcat LoadModule
jk_module modules/mod_jk.dll

#
# Configure mod_jk
#
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info

And I've downloaded http://www.acg-gmbh.de/mod_jk/Release/mod_jk.dll.

My configuration is Windows XP SP1, Apache 2.0.42, Tomcat 4.0.5.

Looks like I need Apache 2.0.40 eh?

Thanks,

Matt



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







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





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




Re: Virtual hosts using Apache 2.0.40, Tomcat 4.1.10 and mod_jk2

2002-09-17 Thread Dom

Hi

I'm having the same trouble using Apache 2.0.40, Tomcat 4.1.10 and mod_jk2
with virtual hosts

It works without problem without v.h., but the only doc I've found about
mod_jk2 doesn't talk about v.h.(
http://www.apache.org/~jfclere/jk2_docs/configweb.html)

Maybe mod_jk2 isn't ready for v.h ?

(I don't have any trouble with the same configuration but mod_jk instead of
mod_jk2)

Dom

- Original Message -
From: Short, Dave [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, September 17, 2002 7:30 PM
Subject: Virtual hosts using Apache 2.0.40, Tomcat 4.1.10 and mod_jk2


 Can anyone please provide a working configuration for Apache 2.0.40
virtual
 hosts with Tomcat 4.1.10 (running in-process) and mod_jk2?

 Defining a virtual host in Apache, redirecting to Tomcat (via
 workers.properties), defining a virtual host and context in the server.xml
 file isn't working somehow.  The examples example works just fine when
 defined without a virtual host in Apache.  When defined as a virtual host,
 Tomcat seems unable to find Java classes and import files.  No errors are
 written anywhere (that I can find) and the jsp executes ok, but any Java
 classes are not called.  If I run the date example form a non virtual host
 Apache, everything works.  When running the same example with an Apache
 virtual host set up, the date jsp is executed but the date class it calls
is
 not invoked.  The date example boiler plate text is displayed without
 values.

 Any help would be greatly appreciated.

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





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




RE: Virtual hosts using Apache 2.0.40, Tomcat 4.1.10 and mod_jk2

2002-09-17 Thread Turner, John


For reference, the official URL is here:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configweb.html

It's the same page, but just in case the other one gets moved out of a user
dir, the official version would be the one above.

John


 -Original Message-
 From: Dom [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 17, 2002 4:16 PM
 To: Tomcat Users List
 Subject: Re: Virtual hosts using Apache 2.0.40, Tomcat 4.1.10 and
 mod_jk2
 
 
 Hi
 
 I'm having the same trouble using Apache 2.0.40, Tomcat 
 4.1.10 and mod_jk2
 with virtual hosts
 
 It works without problem without v.h., but the only doc I've 
 found about
 mod_jk2 doesn't talk about v.h.(
 http://www.apache.org/~jfclere/jk2_docs/configweb.html)
 
 Maybe mod_jk2 isn't ready for v.h ?
 
 (I don't have any trouble with the same configuration but 
 mod_jk instead of
 mod_jk2)
 
 Dom

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




Re: virtual hosts and apache

2002-09-05 Thread Branko Kannenberg

Hi there !

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

Just add

Include path to tomcat/conf/auto/mod_jk.conf

to httpd.conf and something like

  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig 
jkDebug=info modJk=/opt/apache2/modules/mod_jk.so /

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

 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig 
append=true forwardAll=true noRoot=false jkDebug=info /

to the Host section of your server.xml file

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

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

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

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

Ciao,   Branko.




Am Donnerstag, 5. September 2002 08:16 schrieb Dionisio Ruiz de Zarate:
 I know how i must to configure the virtual hosts in apache but in the
 tomcat server.xml i don't know.

 1.- can any body send me one sample?
 2.- in the apache httpd.conf file, in the virtual host  description i have
 the normal virtual host description but for the interaction with tomcat,
 must i add some lines? which lines are these?(for the integration with
 tomcat)

 i am running in one linux platform (SuSE 8).
 thanks



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




Re: virtual hosts and apache

2002-09-05 Thread Dionisio Ruiz de Zarate

I am using tomcat 4.0.2 or 1. web_apps

can you help me?
thanks

Branko Kannenberg
 Hi there !

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

 Just add

 Include path to tomcat/conf/auto/mod_jk.conf

 to httpd.conf and something like

   Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 jkDebug=info modJk=/opt/apache2/modules/mod_jk.so /

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

  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true forwardAll=true noRoot=false jkDebug=info /

 to the Host section of your server.xml file

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

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

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

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

 Ciao, Branko.




 Am Donnerstag, 5. September 2002 08:16 schrieb Dionisio Ruiz de Zarate:
 I know how i must to configure the virtual hosts in apache but in the
 tomcat server.xml i don't know.

 1.- can any body send me one sample?
 2.- in the apache httpd.conf file, in the virtual host  description i
 have the normal virtual host description but for the interaction with
 tomcat, must i add some lines? which lines are these?(for the
 integration with tomcat)

 i am running in one linux platform (SuSE 8).
 thanks



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




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




Re: virtual hosts and apache

2002-09-05 Thread Branko Kannenberg

Hi there !

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

Ciao,   Branko.




Am Donnerstag, 5. September 2002 11:00 schrieb Dionisio Ruiz de Zarate:
 I am using tomcat 4.0.2 or 1. web_apps

 can you help me?
 thanks

 Branko Kannenberg

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



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




RE: virtual hosts and apache

2002-09-05 Thread Turner, John


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

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

John


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

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




Re: virtual hosts and apache

2002-09-05 Thread Dionisio Ruiz de Zarate

apache and tomcat 4.0.1, web_apps

can you help me?
thanks




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


 Hi there !

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

 Just add

 Include path to tomcat/conf/auto/mod_jk.conf

 to httpd.conf and something like

   Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 jkDebug=info modJk=/opt/apache2/modules/mod_jk.so /

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

  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true forwardAll=true noRoot=false jkDebug=info /

 to the Host section of your server.xml file

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

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

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

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

 Ciao, Branko.




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



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





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




RE: Virtual Hosts Question

2002-07-10 Thread Turner, John


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

VirtualHost www.site1.com
AppJServMount /someURL ajpv12://someURL:someTomcat_3.2.1_Port/someURL
/VirtualHost

VirtualHost www.site2.com
JkMount /someURL ajp13
/VirtualHost

Or is that what isn't working for you?

John Turner
[EMAIL PROTECTED]


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


Hi,

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


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

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


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

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




RE: Virtual Hosts Question

2002-07-10 Thread Mark_DiBattista


I was actually trying to do this.

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

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

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

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

Thanks for your help.


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





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

VirtualHost www.site1.com
AppJServMount /someURL ajpv12://someURL:someTomcat_3.2.1_Port/someURL
/VirtualHost

VirtualHost www.site2.com
JkMount /someURL ajp13
/VirtualHost

Or is that what isn't working for you?

John Turner
[EMAIL PROTECTED]


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


Hi,

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


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

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


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

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






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




RE: Virtual Hosts Question

2002-07-10 Thread Turner, John


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

John Turner
[EMAIL PROTECTED]


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



I was actually trying to do this.

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

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

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

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

Thanks for your help.


 

Turner, John

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

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

10:33 AM

Please respond

to Tomcat

Users List

 

 






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

VirtualHost www.site1.com
AppJServMount /someURL ajpv12://someURL:someTomcat_3.2.1_Port/someURL
/VirtualHost

VirtualHost www.site2.com
JkMount /someURL ajp13
/VirtualHost

Or is that what isn't working for you?

John Turner
[EMAIL PROTECTED]


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


Hi,

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


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

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


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

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






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

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




RE: Virtual Hosts Question

2002-07-10 Thread Mark_DiBattista


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

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

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

html
headtitleView/Edit Records/title/head
%@ include file=include/login.jsp %

jsp:include page=include/header_download.jsp flush=true /

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

response); %

/table
/html

Thanks again.
Mark




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





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

John Turner
[EMAIL PROTECTED]


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



I was actually trying to do this.

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

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

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

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

Thanks for your help.




Turner, John

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

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

10:33 AM

Please respond

to Tomcat

Users List










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

VirtualHost www.site1.com
AppJServMount /someURL ajpv12://someURL:someTomcat_3.2.1_Port/someURL
/VirtualHost

VirtualHost www.site2.com
JkMount /someURL ajp13
/VirtualHost

Or is that what isn't working for you?

John Turner
[EMAIL PROTECTED]


-Original

  1   2   >