virtual hosting

2002-10-23 Thread chad kellerman
He;llo,

Can anyone point me to some good links to post exampls of httpd.conf
files and server.xml files?

I have started getting 
java.lang.OutOfMemoryError: unable to create new native thread

when I started addding extra virtual hosts to my tomcat server.

thanks,
chad





signature.asc
Description: This is a digitally signed message part


virtual hosting

2002-10-23 Thread John Murtari

Chad,

I posted some examples of a  a few minutes ago.  

I am not sure if this will help, but it may help to track it down a
little.

I had been starting Tomcat from a wrapper script where I set a bunch
of limits on memory, cpu, etc... :

ulimit -c 1000 # core files
ulimit -d 8 # data segment
ulimit -l 8 # max size which can be locked into memory
ulimit -m 8 # The maximum resident set size
ulimit -s 8 The maximum stack size
ulimit -t 300 #The max cpu time
ulimit -v 15  # The  maximum amount of virtual memory

With these limits I was also getting an java.lang.OutOfMemoryError

>From the shell prompt, if you type ulimit -a it will list your shell's
limits.  If you start Tomcat from the same shell, it will inherit
those limits.  

I tried upping each limit a little here and a little there trying to
figure out exactly how much memory, stack, etc.. Tomcat wanted but I
finally gave up on it and save that adventure for another day.



chad kellerman writes:
 > He;llo,
 > 
 > Can anyone point me to some good links to post exampls of httpd.conf
 > files and server.xml files?
 > 
 > I have started getting 
 > java.lang.OutOfMemoryError: unable to create new native thread
 > 
 > when I started addding extra virtual hosts to my tomcat server.
 > 
 > thanks,
 > chad
 > 
 > 

-- 
  John
___
John Murtari  Software Workshop Inc.
[EMAIL PROTECTED] 315.695.1301(x-211)"TheBook.Com" (TM)
http://www.thebook.com/

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




Virtual hosting . . .

2001-06-24 Thread Camilo Lopez

Hi,

I searched the archives, but did not find exactly what I was lookign for.

Here is my situation:

I need to do Java work from home. I am using Tomcat 4 b-5 on Linux RH 7.1 
and need to set up virtual hosts from a single machine with multiple JVM 
running so that I need to restart I just restart what I am working on, and 
not my own webserver.

Let's say I own "www.foo.com", I need for:

1._ everything that looks like .foo.com to be directed to my site. 
Example:

   prefix:  Would go to:
  "projects.sillyshop.13.foo.com"   "sillyshop" virtual machine version 13
  "projects.sillyshop.foo.com"  "sillyshop" virtual machine most current (, 
latest) version
  "projects.veryimportant.404.foo.com"  "veryimportant" virtual machine

and with this setup I would have three JVM running (/ Tomcat instances?) in 
my server, namely, "foo.com" 's, "sillyshop.13.foo.com" 's and 
"projects.veryimportant.404.foo.com" 's

2._ Be able to restrict from where people are getting to my host and in 
case, there are people that do not belong to a certain IP range, silently 
redirect them to my own site, "www.foo.com".
  This way you can protect confidentiallity. Only people that are coming 
from certain places, can see/participate on what they are supposed to.

  Now, my questions:

  How do you do this, and please, notice that I want/need to you use one 
running JVM for each project?

  What should my ISP do to redirect all ".foo.com" traffic to my 
site?

  What about if clients need for me to develop/test also mail, ftp servers, 
... how would redirections work in this case?

  Security isues?

  Could I use ipchains to route the request to servers other than Tomcat?

  Any other issues that I am not aware of?

  Any references, links, etc?

  I don't want to run any chances to mess it up with other projects, so that 
is why I will run multiple JVM, but what is your experience?

  Thanks
  Albretch
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Virtual Hosting

2001-08-26 Thread Arafat

Does anyone know where I can get instructions on virtual hosting with IIS
and Tomcat?

Thanks.
-Arafat


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Virtual hosting

2001-08-26 Thread inexcess foru

How can I do virtual hosting in tomcat.
Do I have to make change in server.xml only or do I
have to make any other change in apache or tomcat
folder.
Please let me know if anyone has done it successfully.


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



Virtual Hosting

2001-01-29 Thread Andrea Bertone



Can anyone 
forward an example of setting up Tomcat for Virtual Hosts for .jsp pages. I 
figure it's something with server.xml. I use Apache for web 
server.
 
Thank 
you,
Andrea


virtual hosting

2004-05-04 Thread Charles Jordan
I have tomcat 4.1 and apache 2 working together using jk2, but I want to
be able to type in www.mycompany.com in the browser and have it run the
jsp in ${tomcat home}/webapps/mycompany

Do I need to enable virtual host in http.conf and server.xml?
Do I need to add anything to workers2.properties?

Any help would be appreciated.

Am I missing something
Charles (Allen) Jordan   <[EMAIL PROTECTED]>
  System Administrator(407)771-8919
  Convergys
  285 International Parkway, 
  Lake Mary, FL 32746-5007


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



Virtual Hosting

2004-02-11 Thread David Hairston
I'm looking for instructions on settting up Virtual Host to permit
users access to their home directories

example http://localhost:8080~username

Thanks

David Hairston
CIS Department
Florida A & M University
[EMAIL PROTECTED]
(850)599-3222

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



Virtual hosting

2000-11-22 Thread Tom Gilbert

I have an apache server setup with two virtual hosts:


and


I'm using tomcat-3.2-beta5.1 and mod_jk. I want to tell tomcat about my
different virtual hosts, but the problem is they have the same
servername in each case, but different documentroots.

In the server.xml I want to do something like:
  
or even
  
But neither of these seem to work and I am wondering if there is a way
to configure this. (tomcat needs to use a different docbase in each case
- secure and insecure content are intended to be separate.

Is the a way this could be achieved?

I'd also like the report that on
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-apache-howto.html
there is an error in the Virtual Hosting section. The example server.xml
for "option 2" is actually the apache httpd.conf snippet from the
example above it, instead of the server.xml snippet that might have
helped me out :-)

Tom.
-- 
   .^..---.
   /V\| Tom Gilbert, London, England | http://linuxbrit.co.uk |
 /(   )\  | Open Source hacker, advocate | [EMAIL PROTECTED]|
  ^^-^^   '---'

 PGP signature


Virtual hosting

2000-12-14 Thread Parayali, Jayesh 1065
Title: Virtual hosting





I have set up 2 virtual hosts on a server running tomcat 3.2 running one web application.


now the question is how do I differentiate the requests coming from 2 different URLs


In other words, is the url name accessible within my JSP?


Thanks,
Jayesh





Virtual Hosting

2001-01-16 Thread Wilhelm Colln

I need some help.
I want to access my page in the form www.domain.com/*.jsp
but the httpd.conf and the server.xml doesn't work with me.

I think it is ME, not Tomcat 3.21 nor Apache 1.3.12
If your solution works, Please Help.

Thanks

Wilhelm


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




virtual hosting questions

2002-07-25 Thread Guenther Starnberger

hello list,

i am having trouble to configure tomcat (on linux) to support several
vhosts for untrusted users. (i can't find any good documentation on
this topic).

currently i am using the mod_webapp apache module.

in server.xml i did configure one engine:



and several subvhosts (under this engine):



the configuration seems to work, but i can't find any documentation
about security aspects.

is this configuration "safe", or would users have the possibility to
affect other users vhosts. should i use one engine per user?

do i need any additional security settings to e.g. prevent users from
deleting files owned by the tomcat uid?

how can i define one tomcat-users.xml per virtual host? are there any
major disadvantages when using a shared tomcat instance?

references to good documentation/books on this topic would be greatly
appreciated.

/gst

-- 
sysfrog.org

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




virtual hosting problem

2001-04-10 Thread davea

Hi,

  I'm attempting to setup virtual hosts with tomcat/apache and I ran into a problem.  
It appears from the log messages TOMCAT is not following the
docBase directive in my vitural host setup.  Here are sections of the server.xml file 
and httpsd file, along with the error from my jasper.log file.  Could give me an idea 
what might be wrong.  

Server.xml file:






httpsd.conf


DocumentRoot "/software/Alpha"
ServerName myhost.com
ServerAdmin [EMAIL PROTECTED]
ErrorLog logs/8601_error_log
TransferLog logs/8601_access_log
SetEnvIf Request_URI wwwAuthenticatedEntrance.cgi$ login
CustomLog logs/agent_log loginagent env=login
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
SSLEngine on

  (ssl stuff omitted)


Error from jasper.log

2001-04-10 09:43:51 - IMPORTANT: Do not modify the generated servlets
2001-04-10 09:44:11 - JspEngine --> /mystuff/footer.jsp
2001-04-10 09:44:11 -ServletPath: /mystuff/footer.jsp
2001-04-10 09:44:11 -   PathInfo: null
2001-04-10 09:44:11 -   RealPath: 
/software/jakarta-tomcat-3.2.1/webapps/ROOT/mystuff/footer.jsp
2001-04-10 09:44:11 - RequestURI: /mystuff/footer.jsp
2001-04-10 09:44:11 -QueryString: null
2001-04-10 09:44:11 - Request Params: 
2001-04-10 09:44:11 - Classpath according to the Servlet Engine is: 
/software/jakarta-tomcat-3.2.1/webapps/ROOT/WEB-INF/classes

Dave




IIS Virtual hosting

2001-09-12 Thread David Oxley

Hi all,

I need to set up IIS with each virtual host routing to a different worker in
Tomcat. Each virtual host has the same web application under it and
therefore must all be the same context.

i.e. Under Apache I set up the following:
NameVirtualHost 128.100.2.23


ServerName cisweb2k
JkMount /spweb/servlet/* ajp13_1



ServerName cisweb2k2
JkMount /spweb/servlet/* ajp13_2


How is the best way to achieve the same configuration with IIS?
I think what I need is to be able to specify the host name in
uriworkermap.properties:
cisweb2k/spweb/servlet/*=ajp13_1
cisweb2k2/spweb/servlet/*=ajp13_2

Thanks.
Dave.



RE: Virtual Hosting

2001-01-30 Thread Jord Sonneveld



Take a 
look at the bottom of the default server.xml. I shall include it here for 
you:
 
 

 
I 
figure that the 'name' attribute in the  tag should be the name of 
the virtual host. Never tried it though.
 
Jord.
 

  -Original Message-From: Andrea Bertone 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, January 29, 
  2001 6:24 PMTo: [EMAIL PROTECTED]Subject: 
  Virtual Hosting
  Can anyone 
  forward an example of setting up Tomcat for Virtual Hosts for .jsp pages. I 
  figure it's something with server.xml. I use Apache for web 
  server.
   
  Thank 
  you,
  Andrea


RE: Virtual Hosting

2001-01-30 Thread Java Softech Pvt Ltd

Can anyone please help me on how to setup contexts 

  for ex:  http://localhost:8080/tcp

 and please also kindly me know the username and password for the 
http://localhost:8080/admin page or is there any alternative for the 
above.



Raj.



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




Virtual Hosting Tomcat

2003-02-10 Thread Sangam Dash
Hi

I am using tomcat for my websites.
I am not using apache.
I need to do have two websites running from the same machine with the 
same tomcat instance.
i didnt get any help on the net as everything for virtual hosting  is 
with apache and tomcat combination.
is it possible to server two different websites from same machine using 
only tomcat?
please help me out

I tried the following
but it doesnt work

added this following to the server.xml file

  
  
  
  
  
  
  
  
  
  
  
  
  
  i appreciate any kind of help ...
i am using tomcat 4.1.12

thanks a lot
sangam dash


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



Virtual hosting & mod_jk2

2003-03-27 Thread Quinton McCombs
I am having a difficult time figuring out how to properly configure
Apache 2.0.44 and Tomcat 4.1.12 with virtual hosting.  I am using
mod_jk2 as my connector.

I have all of this working with Apache 1.3, Tomcat 4.1, and
mod_webapp

In my testing environment, I have a servlet based application that is
available over https and http.  

On the tomcat side, I have defined the default host and one virtual
host.  The virtual host (test.nequalsone.com) has a non-default appBase.
The intent here is to only allow access to the application through
test.nequalsone.com although the server can be accessed by serveral
names.

On the Apache side, I am using name based virtual hosting.  I have one
host defined to use SSL which should forward requests for my application
to Tomcat.  I have another virtual host (test.nequalsone.com) that is
defined to also forward requests to tomcat.  I am using JKUriSet to
define the mapping to Tomcat.

This seemed to work fine at first but then I noticed that the
application did not work properly on the SSL version.  My application
did not detect that it was being accessed over SSL so it was generating
links using http:// instead of https://.  Everything else appeared to
work...

I decided to try creating a second AJP13 connector on tomcat.  The
second connection has scheme="https" and secure="true".  Both connectors
are on different ports.  Is this the correct way to solve this problem
so far?

Next, I created a new channel in workers2.properties.  I then modified
the JKSetUri directive for the SSL virtual host to use the new channel.
This is where things started to go wrong

Checking the jkstatus page showed that the last JKSetUri directive over
wrote the previous one.  Under the uri runtime info section, I had the
following:
Id=0, name=/neo/servlet, host=*, uri=/neo/servlet,
group=ajp13:localhost:8010, context=/

The location that I mapped for both virtual hosts was /neo/servlet.  It
seems that it should have created two uri mappings with different hosts.

After running into this problem, I tried setting the mapping in
workers2.properties.  I was unable to get that working properly.
Consider the following section from the virtual host in apache.


ServerName test.nequalsone.com
DocumentRoot /usr/local/www/test
Alias /neo /opt/jakarta/test_webapps/neo

  JKUriSet group ajp13:localhost:8009



I tried all of the following entries in workers2.properties:
[uri:test.nequalsone.com/neo/servlet]
Group=agp13:localhost:8009

[uri:test.nequalsone.com/neo/servlet/]
Group=agp13:localhost:8009

[uri:test.nequalsone.com/neo/servlet/*]
Group=agp13:localhost:8009

[uri:/neo/servlet]
Group=agp13:localhost:8009

[uri:/neo/servlet/]
Group=agp13:localhost:8009

[uri:/neo/servlet/*]
Group=agp13:localhost:8009

None of them worked.  The log file for the mod_jk2 module reported that
the file /opt/jakarta/test_webapps/neo/servlet did not exist.

What am I doing wrong here?

Quinton McCombs
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com 


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



Re: virtual hosting

2004-05-04 Thread Filip Hanik - Dev
you should be able to do it just using virtual hosts in httpd.conf.
play around with it, you may add one section for mod_jk for each virtual host

FIlip
- Original Message - 
From: "Charles Jordan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 04, 2004 3:31 PM
Subject: virtual hosting


I have tomcat 4.1 and apache 2 working together using jk2, but I want to
be able to type in www.mycompany.com in the browser and have it run the
jsp in ${tomcat home}/webapps/mycompany

Do I need to enable virtual host in http.conf and server.xml?
Do I need to add anything to workers2.properties?

Any help would be appreciated.

Am I missing something
Charles (Allen) Jordan   <[EMAIL PROTECTED]>
  System Administrator(407)771-8919
  Convergys
  285 International Parkway, 
  Lake Mary, FL 32746-5007


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

2004-05-04 Thread Charles Daniel
Do you have the URL (www.mycompany.com) defined by a DNS server?  You need a DNS to 
translate the URL  to an IP address. If you are already on the net then two DNS 
servers will be required.  The primary DNS should be provided by your ISP and you can 
manage your own secondary if you like for your internal network (local intranet).  

Virtual Hosting is normally used when you are attempting to server multiple web sites 
from a single web server.  If this is not what you are trying to do then don't concern 
yourself with virtual hosting.

In either case a DNS setup is required.

Osensei
[EMAIL PROTECTED]

  - Original Message - 
  From: Charles Jordan 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, May 04, 2004 3:31 PM
  Subject: virtual hosting


  I have tomcat 4.1 and apache 2 working together using jk2, but I want to
  be able to type in www.mycompany.com in the browser and have it run the
  jsp in ${tomcat home}/webapps/mycompany

  Do I need to enable virtual host in http.conf and server.xml?
  Do I need to add anything to workers2.properties?

  Any help would be appreciated.

  Am I missing something
  Charles (Allen) Jordan   <[EMAIL PROTECTED]>
System Administrator(407)771-8919
Convergys
285 International Parkway, 
Lake Mary, FL 32746-5007


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



Tomcat Virtual Hosting

2000-11-09 Thread John Elia

Hey Gang, Semper Fi to all those former Marines out there.

My question is:

Does anyone have any experience running tomcat with virtual hosts?  I am
using Apache (and I use virtual hosting extensively) and am adding JSP
functionality to the clients.  I dont want to give a long winded explanation
of what I am doing unless someone needs the info to help me, but, the
virtual hosts are used to send individual users updates to their desktop if
they meet certain criteria (usually a date since last update.) I am looking
for this transition to go smoothly and would love to hear from someone who
might have had some experience with this who can tell me all the pitfalls.

Thank you and Great Day

John




Re: Virtual hosting

2000-12-14 Thread Filip Hanik
Title: Virtual hosting



I'm not sure if this feature is available in Tomcat 
3.2
I know it was planned for release 4.
if it is not available - read the docs to find out 
- you can do this by placing apache in front of your tomcat server. and have 
apache handle the virtual hosts.
As of now, I believe you will have to have two 
tomcat servers, one for each virtual host. This will change soon 
though
 
Filip

  - Original Message - 
  From: 
  Parayali, Jayesh 1065 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Thursday, December 14, 2000 3:28 
  PM
  Subject: Virtual hosting
  
  I have set up 2 virtual hosts on a server running 
  tomcat 3.2 running one web application. 
  now the question is how do I differentiate the 
  requests coming from 2 different URLs 
  In other words, is the url name accessible within 
  my JSP? 
  Thanks, Jayesh 


RE: Virtual hosting

2000-12-14 Thread Parayali, Jayesh 1065
Title: RE: Virtual hosting





I got it working with 3.2. I have two virtual hosts working on one tomcat instance.
request.getServerName() gets me the url name


Thanks,
Jayesh




-Original Message-
From:   Filip Hanik [SMTP:[EMAIL PROTECTED]]
Sent:   Thursday, December 14, 2000 4:31 PM
To: [EMAIL PROTECTED]
Subject:    Re: Virtual hosting


I'm not sure if this feature is available in Tomcat 3.2
I know it was planned for release 4.
if it is not available - read the docs to find out - you can do this by placing apache in front of your tomcat server. and have apache handle the virtual hosts.

As of now, I believe you will have to have two tomcat servers, one for each virtual host. This will change soon though
 
Filip


- Original Message - 
From: Parayali, Jayesh 1065 <mailto:[EMAIL PROTECTED]> 
To: '[EMAIL PROTECTED]' <mailto:'[EMAIL PROTECTED]'> 
Sent: Thursday, December 14, 2000 3:28 PM
Subject: Virtual hosting



I have set up 2 virtual hosts on a server running tomcat 3.2 running one web application. 


now the question is how do I differentiate the requests coming from 2 different URLs 


In other words, is the url name accessible within my JSP? 


Thanks,
Jayesh 





Re: Virtual hosting

2000-12-14 Thread Filip Hanik
Title: RE: Virtual hosting



cool,
sorry for saying it didn't work in 3.2, my 
apologies
 
Filip

  - Original Message - 
  From: 
  Parayali, Jayesh 1065 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Thursday, December 14, 2000 4:50 
  PM
  Subject: RE: Virtual hosting
  
  I got it working with 3.2. I have two 
  virtual hosts working on one tomcat instance. request.getServerName() gets me the url name 
  Thanks, Jayesh 
  
-Original Message- From:   Filip 
Hanik [SMTP:[EMAIL PROTECTED]] Sent:   Thursday, 
December 14, 2000 4:31 PM To: [EMAIL PROTECTED] 
Subject:    Re: Virtual hosting 
I'm not sure if this feature is available in 
Tomcat 3.2 I know it was planned for 
release 4. if it is not available - read 
the docs to find out - you can do this by placing apache in front of your 
tomcat server. and have apache handle the virtual hosts.
As of now, I believe you will have to have two 
tomcat servers, one for each virtual host. This will change soon 
though   Filip 

  - Original Message - From: Parayali, Jayesh 1065 <mailto:[EMAIL PROTECTED]> To: '[EMAIL PROTECTED]' <mailto:'[EMAIL PROTECTED]'> Sent: Thursday, December 14, 2000 3:28 PM Subject: Virtual hosting 
  
  I have set up 2 virtual hosts on a server 
  running tomcat 3.2 running one web application. 
  
  now the question is how do I differentiate the 
  requests coming from 2 different URLs 
  In other words, is the url name accessible 
  within my JSP? 
  Thanks,Jayesh 



Virtual Hosting Questions

2004-11-17 Thread Bill Winspur
I need to set up a few virtual hosts for a development project, and 
being new to Tomcat virtual hosts, have a couple of questions:
---
1. In development, the clients and tomcat will be on an intranet. I plan 
to use the hosts files of the client and tomcat boxes to map domain 
names to IP addresses, thereby preempting invocation of DNS, and thus 
exposure of our product-specific domain names to the Internet at-large, 
until the site is deployed publicly.

Question 1: Is this hosts-file approach feasible? Does tomcat care HOW 
domain names
are mapped to IP addresses?
--
The following fragment is extracted from conf/server.xml of the the 
tomcat distribution:


   

Question 2: Why is the host named localhost? From the documentation, I 
expected that only URL's of the form http://localhost:8080/... would be 
handled by this virtual host, but it seems to handle any URL's that map 
to the IP and port of the real host that tomcat serves.
---
Question 3: How would one configure a 'local' virtual host, i.e. a host 
visible only on the box that runs tomcat?
---
Thanks,
Bill

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


Virtual Hosting and Contexts

2002-09-17 Thread Brian Topping

Good day,

I'm rather new to setting up vhosting on Tomcat, but am quite familiar with
it on Apache.  I am having some problems understanding the correct
configuration to set up a root context on each apache virtual host, and was
hoping someone here might be able to offer some pointers.

Basically, I would like to have a different Tomcat context mapped to the root
of each Apache .  I am able to map a context with a different
name to each site, in other words, one url http://a.foo.com/a-context/ and
another http://b.foo.com/b-context, but not simply http://a.foo.com where the
root goes to a-context and http://b.foo.com where the root goes to b-context.
Httpd and Tomcat are on separate machines, for development httpd is on SuSE
and Tomcat is on W2K, for deployment both with be on SuSE.

I've taken a look at the autoconfiguration stuff, but it's leaving me lost in
the weeds, and I don't mind maintaining the stuff manually anyway, so if you
could, please help me focus on that.  I'm using httpd 1.3.36 with Tomcat
4.0.4 and the mod_jk 4.0.4 connectors under DSO with EAPI.  

Of course what I have below isn't working.  Can someone help me understand
what I am missing?  My problem is in the context mapping stuff, otherwise all
the connectors are confirmed to be working.

Thanks a million for your consideration!!

Brian

#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#




















#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#


DocumentRoot "/usr/local/httpd/htdocs/a.digidemic.com"
ServerName a.digidemic.com
Alias /dav /usr/local/httpd/htdocs/a.digidemic.com

DAV On

AuthUserFile /usr/local/httpd/htdocs/users
AuthType Basic
AuthName WebDAV
Require user topping


JkMount /* tomcat1



DocumentRoot "/usr/local/httpd/htdocs/b.digidemic.com"
ServerName b.digidemic.com
Alias /dav /usr/local/httpd/htdocs/b.digidemic.com

DAV On

AuthUserFile /usr/local/httpd/htdocs/users
AuthType Basic
AuthName WebDAV
Require user topping


JkMount /* tomcat1




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




Virtual Hosting without Apache?

2002-11-12 Thread John Menke
Do you need Apache to do Virtual Hosting with Tomcat?  Can tomcat handle by
itself?

-jm


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




Port based virtual hosting

2002-06-12 Thread David Oxley

In Tomcat 4 a  node allows name based virtual hosting. How should this
be set up to handle port based virtual hosting.

i.e. should this work:

  

 

  

  

 

  

 

Dave.




Re: virtual hosting questions

2002-07-29 Thread Guenther Starnberger

"Nikola Milutinovic" <[EMAIL PROTECTED]> writes:

hello,

> If you're running Tomcat-standalone, then you need  elements,
> but in Warp it should work without them. I think Warp Engine should
> ignore  elements. Or maybe it doesn't. Maybe it is used to
> setup different "appBase"-s for each of the vhosts.

yop... i use it for the appBase's.

> > do i need any additional security settings to e.g. prevent users
> > from deleting files owned by the tomcat uid?

> You'd have this problem with Apache VHost as well. How do you make
> it possible for one user (httpd) to access directories in several
> other user's homes and still prevent individual users access to each
> others files? I'm using ACLs on Tru64 UNIX for that. Does Linux have
> ACLs? (Access Control List, just like on Windows NT or, originally,
> on VMS).

one possiblity would be to put all users in the same group and
disallow all access rights to the group. read access for "others"
would be set, so that apache which isn't in the same group as the user
does have the possibility to read the files.

there are several acl patches for linux too, but i haven't tried them
out yet.

> I make each vhost user a member of group "httpd", make his
> public_html accessable to group (to let Apache in), his home dir is
> set to "rwx--" + ACL "user:httpd:r-x". That way I have
> security. For Tomcat, I'd make tomcat user a member of "httpd"
> group, add ACL for "user:tomcat:r-x" and set $USER/webapp to have
> rwxr-x--- access rights, just like public_html.

hmm.. with apache i only use suexec for all cgi and php stuff. when
using tomcat each user does have the possibility to execute java code
under the tomcat uid.

according to the docs (haven't tried it out yet) i can set a security
policy in catalina.policy. is this enough to prevent users to snoop on
other users via tomcat? is there something similiar to php's safemode
where each user can only read files owned by his uid?

cu
/gst



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




AW: virtual hosting questions

2002-07-29 Thread Ralph Einfeldt

It's not a direct equivalent, but you can achieve similar results.

You can allow or disallow access to several resources. (files are 
just a small part)

http://java.sun.com/j2se/1.3/docs/guide/security/index.html
http://java.sun.com/j2se/1.4/docs/guide/security/index.html


> -Ursprüngliche Nachricht-
> Von: Guenther Starnberger [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 30. Juli 2002 02:15
> An: Tomcat Users List
> Betreff: Re: virtual hosting questions
> 
> according to the docs (haven't tried it out yet) i can set a security
> policy in catalina.policy. is this enough to prevent users to snoop on
> other users via tomcat? is there something similiar to php's safemode
> where each user can only read files owned by his uid?
> 

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




Virtual Hosting with Tomcat

2001-04-05 Thread Brandon Cruz

I am hosting several sites on a linux machine with an apache webserver.  I
want to use tomcat as a servlet/JSP engine.  Upon reading some
documentation, I have found that their suggested way of linking to virtual
hosts on apache is to create a separate instance of a JVM for each virtual
host.  Can this be correct, and has anyone done anything similar to this
that can provide me with some knowledge on how well it works and any other
alternatives I may have if it doesn't work well?

Thanks!


Brandon




Virtual Hosting and security

2001-05-17 Thread Renato Weiner
 Hi all,
I know this is a quite common subject but I didn't find any ultimate answer. In a shared hosting environment, how can I prevent clientX to read files from clientY ? 
-  java.policy doesn't cover this. If I use grant codeBase 'file:/...' or 'http://', it doesn't work.
- can I override SecurityManager ? If so, how can I know which JSP/Servlets is trying to read a file ? ( inside the methgd checkRead I now the file... If I know the absolute path I can compare the location of the reader and the file being read ) 
Did anybody make a secure shared-hosting environment 
I do not want to use a private JVM for each client, because it's too expensive.
Thanks in advance
Renato - Brazil.
 Do You Yahoo!?
Yahoo! Auctions $2 Million Sweepstakes  -  Got something to sell?

Virtual Hosting and security

2001-05-24 Thread Renato Weiner
 Hi all, 
I know this is a quite common subject but I didn't find any ultimate answer. In a shared hosting environment, how can I prevent clientX to read files from clientY ? 
-  java.policy doesn't cover this. If I use grant codeBase 'file:/...' or 'http://', it doesn't work. 
- can I override SecurityManager ? If so, how can I know which JSP/Servlets is trying to read a file ? ( inside the methgd checkRead I now the file... If I know the absolute path I can compare the location of the reader and the file being read ) 
Did anybody make a secure shared-hosting environment  
I do not want to use a private JVM for each client, because it's too expensive. 
Thanks in advance 
Renato - Brazil. Do You Yahoo!?
Yahoo! Auctions $2 Million Sweepstakes  -  Got something to sell?

RE: IIS Virtual hosting

2001-09-12 Thread Larry Isaacs

Hi David,

Multiple virtual hosts on IIS is something I have not found time
to try to do, yet.  However, it is something I hope to support
in Tomcat 3.3.

Tim Whittington has submitted a patch to the isapi_redirect.dll
that should be included soon.  It adds a feature where
the "isapi_redirect" dll queries its actual file name and
uses that name to read a ".properties" file from
the same directory.  If that file exists, those properties are
used.  If not, it reverts to the old behavior of getting the
"properties" file location from the registry.  This "properties"
file would specify where to get the "uriworkermap" file.

This implies that you get multiple isapi_redirector instances,
each using different settings, by having multiple copies of the
"isapi_redirector" with different names.  Each virtual host
would use the appropriately named copy.  Not elegant, but
I'm not sure there is a better way.

Cheers,
Larry

> -Original Message-
> From: David Oxley [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 12, 2001 9:40 AM
> To: [EMAIL PROTECTED]
> Subject: IIS Virtual hosting
> 
> 
> Hi all,
> 
> I need to set up IIS with each virtual host routing to a 
> different worker in
> Tomcat. Each virtual host has the same web application under it and
> therefore must all be the same context.
> 
> i.e. Under Apache I set up the following:
> NameVirtualHost 128.100.2.23
> 
> 
> ServerName cisweb2k
> JkMount /spweb/servlet/* ajp13_1
> 
> 
> 
> ServerName cisweb2k2
> JkMount /spweb/servlet/* ajp13_2
> 
> 
> How is the best way to achieve the same configuration with IIS?
> I think what I need is to be able to specify the host name in
> uriworkermap.properties:
> cisweb2k/spweb/servlet/*=ajp13_1
> cisweb2k2/spweb/servlet/*=ajp13_2
> 
> Thanks.
> Dave.
> 



Re: IIS Virtual hosting

2001-09-18 Thread Kar YEOW

where can I get a copy of the patched isapi_redirect.dll?  TIA.  kar
- Original Message - 
From: "Larry Isaacs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 13, 2001 3:42 AM
Subject: RE: IIS Virtual hosting


Hi David,

Multiple virtual hosts on IIS is something I have not found time
to try to do, yet.  However, it is something I hope to support
in Tomcat 3.3.

Tim Whittington has submitted a patch to the isapi_redirect.dll
that should be included soon.  It adds a feature where
the "isapi_redirect" dll queries its actual file name and
uses that name to read a ".properties" file from
the same directory.  If that file exists, those properties are
used.  If not, it reverts to the old behavior of getting the
"properties" file location from the registry.  This "properties"
file would specify where to get the "uriworkermap" file.

This implies that you get multiple isapi_redirector instances,
each using different settings, by having multiple copies of the
"isapi_redirector" with different names.  Each virtual host
would use the appropriately named copy.  Not elegant, but
I'm not sure there is a better way.

Cheers,
Larry

> -Original Message-
> From: David Oxley [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 12, 2001 9:40 AM
> To: [EMAIL PROTECTED]
> Subject: IIS Virtual hosting
> 
> 
> Hi all,
> 
> I need to set up IIS with each virtual host routing to a 
> different worker in
> Tomcat. Each virtual host has the same web application under it and
> therefore must all be the same context.
> 
> i.e. Under Apache I set up the following:
> NameVirtualHost 128.100.2.23
> 
> 
> ServerName cisweb2k
> JkMount /spweb/servlet/* ajp13_1
> 
> 
> 
> ServerName cisweb2k2
> JkMount /spweb/servlet/* ajp13_2
> 
> 
> How is the best way to achieve the same configuration with IIS?
> I think what I need is to be able to specify the host name in
> uriworkermap.properties:
> cisweb2k/spweb/servlet/*=ajp13_1
> cisweb2k2/spweb/servlet/*=ajp13_2
> 
> Thanks.
> Dave.
>




RE: IIS Virtual hosting

2001-09-19 Thread Ignacio J. Ortega

Hola David:

> How is the best way to achieve the same configuration with IIS?
> I think what I need is to be able to specify the host name in
> uriworkermap.properties:
> cisweb2k/spweb/servlet/*=ajp13_1
> cisweb2k2/spweb/servlet/*=ajp13_2

:)

This syntax sugar for uriworkermap.properties has been added a week ago,
in addition to the change named by Larry, so yo can do exactly what you
propose right now .. :)

The Tomcat 3.3 Version have this capacity, out of the box..

Saludos ,
Ignacio J. Ortega




RE: IIS Virtual hosting

2001-09-19 Thread David Oxley

It's in CVS. Or wait until RC1 gets built (Don't know when that is happening
though).

Dave
[EMAIL PROTECTED]

-Original Message-
From: Kar YEOW [mailto:[EMAIL PROTECTED]]
Sent: 19 September 2001 04:27
To: [EMAIL PROTECTED]
Subject: Re: IIS Virtual hosting

where can I get a copy of the patched isapi_redirect.dll?  TIA.  kar
- Original Message -
From: "Larry Isaacs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 13, 2001 3:42 AM
Subject: RE: IIS Virtual hosting


Hi David,

Multiple virtual hosts on IIS is something I have not found time
to try to do, yet.  However, it is something I hope to support
in Tomcat 3.3.

Tim Whittington has submitted a patch to the isapi_redirect.dll
that should be included soon.  It adds a feature where
the "isapi_redirect" dll queries its actual file name and
uses that name to read a ".properties" file from
the same directory.  If that file exists, those properties are
used.  If not, it reverts to the old behavior of getting the
"properties" file location from the registry.  This "properties"
file would specify where to get the "uriworkermap" file.

This implies that you get multiple isapi_redirector instances,
each using different settings, by having multiple copies of the
"isapi_redirector" with different names.  Each virtual host
would use the appropriately named copy.  Not elegant, but
I'm not sure there is a better way.

Cheers,
Larry

> -Original Message-
> From: David Oxley [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 12, 2001 9:40 AM
> To: [EMAIL PROTECTED]
> Subject: IIS Virtual hosting
>
>
> Hi all,
>
> I need to set up IIS with each virtual host routing to a
> different worker in
> Tomcat. Each virtual host has the same web application under it and
> therefore must all be the same context.
>
> i.e. Under Apache I set up the following:
> NameVirtualHost 128.100.2.23
>
> 
> ServerName cisweb2k
> JkMount /spweb/servlet/* ajp13_1
> 
>
> 
> ServerName cisweb2k2
> JkMount /spweb/servlet/* ajp13_2
> 
>
> How is the best way to achieve the same configuration with IIS?
> I think what I need is to be able to specify the host name in
> uriworkermap.properties:
> cisweb2k/spweb/servlet/*=ajp13_1
> cisweb2k2/spweb/servlet/*=ajp13_2
>
> Thanks.
> Dave.
>



Virtual Hosting with Tomcat3

2002-04-08 Thread randy melder

I would be interested to know a resource for Tomcat 3.x and Apache
Virtual Hosting setup and configuration.

Thanks in advance,

; ) .randy melder


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Virtual hosting with IIS

2001-07-03 Thread Markus Strickler

Hi!
I have several IIS webserver instances running on different ports on the
same IP.
Now I need to map the *.xml extension to Cocoon for all instances.
Anybody an idea how to set this up?

I'm using IIS5, Tomcat-3.2.2, JDK1.3

Any help would be appreciated,

-markus





virtual hosting conf question

2001-07-25 Thread Jerry QU



Hi All,
 
We are using Tomact3.2.3 and Apache1.3.20 with 
mod_jk.so.
 
it works fine when use Directory:
 
    Alias /loc "/home/.../path"
 
    
        Options Indexes 
FollowSymLinks
    
    JkMount /loc/servlet/* ajp12
    JkMount /loc/*.jsp ajp12
 
But when trying virtual hosting:
    
NameVirutalHost ip
    
    
        ServerName www.domain.com
        DocumentRoot 
"/home/.../path"
        JkMount /servlet/* 
ajp12
        JkMount /*.jsp 
ajp12
    
        Options Includes Indexes 
FollowSymlinks
        AllowOverride AuthConfig 
FileInfo Indexes Limit Options
        Order allow, 
deny
        Allow from 
all
    
 
    
 
WE are geting 404 error for all .jsp files and looks 
like the apache to tomcat redirect not works
 
anything missing?
 
 
TIA
 
Jerry
 
 
 
    
 


Virtual hosting in Tomcat

2001-08-25 Thread inexcess foru

How can I do virtual hosting in tomcat.
Do I have to make change in server.xml only or do I
have to make any other change in apache or tomcat
folder.
Please let me know if anyone has done it successfully.
:)

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



problem with virtual hosting

2001-04-02 Thread Christopher Shade

I tried to map www.domain.com to www.domain.com/webapp by using
ServerName and ServerAlias in the config file, but it's not working.
Below is what I tried in my-tomcat-apache.conf.  What am I doing wrong?
Is there a better way to map a domain to a webapp?  Thanks!
...Christopher

### my-tomcat-apache.conf #

LoadModule jserv_module libexec/mod_jserv.so
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice
 
ApJServDefaultPort 8010

# Name the Virtual Host IP
NameVirtualHost ...server IP is here...
 
# Define the Virtual Hosts

ServerName www.domain.com/fas
ServerAlias www.domain.com
ApJServMount /fas ajpv12://www.domain.com:8010/fas
DocumentRoot /usr/local/apache/prod/htdocs/fas


AddType text/jsp .jsp
AddHandler jserv-servlet .jsp

...and the Alias entries for my webapps...





virtual hosting on tomcat

2002-12-12 Thread Sherif D Mohamad
I am trying to add a virtual host on tomcat, I added this lines to
server.xml file:

 
mysite.mydom.net



  

and copied all $CATALINE_HOME/webapps to /home/username/webapps , I can get
the default index.jsp of tomcat, but when I click on manager application it
says status 404, not available , so  how can I install an application on the
new site ? or how can I run the manager on the new site, is there other
things that I need to copy other than $CATALINE_HOME/webapps ?



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




Virtual Hosting with Tomcat

2002-12-30 Thread Mike Rixford
Hi there,
 
I need to setup virtual hosting with Tomcat.  We are not running the
full Apache server, just Tomcat and its web piece.  Can this be done?
Everything I have found so far refers to Apache not Tomcat on its own.
 
Any help would be greatly appreciated.
 
Thanks,

Mike

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




Virtual hosting and mod_jk

2003-01-09 Thread Andreas Hirner
Hello,

I have successfully integrated tomcat (4.0.6) with apache (1.3.26) on linux
and I am able to access a single virtual host (e.g. myapplication) located
in the tomcat/webapps/myapplication directory using a url like that:

http://www.mydomain.com/myapplication/index.jsp

However I would like to be able to access the files in that directory
without using the path /myapplication, i.e.

http://www.mydomain.com/index.jsp

I have been playing around with the configuration files but I have not been
able to alter the configuration according to my needs. Does anybody know if
this is possible?

Thanks in advance.

Andreas

PS: The relevant sections of httpd.conf and server.xml are listed below.


http.conf
#

   ServerName meinfotoalbum.com
   ServerAlias www.meinfotoalbum.com

   DocumentRoot /usr/local/tomcat/mywebapps/meinfoto
   
 DirectoryIndex index.htm index.html
Options Indexes FollowSymLinks
   

#mod_jk link to tomcat
   JkMount / ajp13
   JkMount /*jsp ajp13

   #prohibit access of WEB-INF

AllowOverride None
deny from all
   

#prohibit access of META-INF
   
  AllowOverride None
   deny from all
   

   

server.xml

  
www.meinfotoalbum.com



   




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




Re: Virtual Hosting Tomcat

2003-02-10 Thread Lajos
Hi Sangam -

Looks like the examples from my FlashGuide ;) What doesn't work? One 
thing that you must make sure is that the values of the name attribute 
of the  resolve to your machine. You can do this via your 
machine's DNS configuration. In the example below, mydomain0.com, 
mydomain1.com and mydomain2.com must resolve to the same machine. If 
not, the example won't work.

Regards,

Lajos


Sangam Dash wrote:
Hi

I am using tomcat for my websites.
I am not using apache.
I need to do have two websites running from the same machine with the 
same tomcat instance.
i didnt get any help on the net as everything for virtual hosting  is 
with apache and tomcat combination.
is it possible to server two different websites from same machine using 
only tomcat?
please help me out

I tried the following
but it doesnt work

added this following to the server.xml file

  
  
  
  
  
  
  
  
  
  
  
  
  
  i appreciate any kind of help ...
i am using tomcat 4.1.12

thanks a lot
sangam dash


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




--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- powered by AzSSL


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




Re: Virtual Hosting Tomcat

2003-02-10 Thread Sangam Dash
Hi

Thanks for the mail.
But do you know how to do that on windows machine?
The other thing is that when i add this one to the server.xml file the 
tomcat runs out of memory and it gives premature end of file error 
sometimes. :-[
Is it better to have apache and tomcat both configured for this kind of 
situations? :-\
Thanks a lot
Sangam Dash :-)
Lajos wrote:

Hi Sangam -

Looks like the examples from my FlashGuide ;) What doesn't work? One 
thing that you must make sure is that the values of the name attribute 
of the  resolve to your machine. You can do this via your 
machine's DNS configuration. In the example below, mydomain0.com, 
mydomain1.com and mydomain2.com must resolve to the same machine. If 
not, the example won't work.

Regards,

Lajos


Sangam Dash wrote:

Hi

I am using tomcat for my websites.
I am not using apache.
I need to do have two websites running from the same machine with the 
same tomcat instance.
i didnt get any help on the net as everything for virtual hosting  is 
with apache and tomcat combination.
is it possible to server two different websites from same machine 
using only tomcat?
please help me out

I tried the following
but it doesnt work

added this following to the server.xml file

  
  
  
  
  
  
  
  
  
  
  
  
  
  i appreciate any kind of help ...
i am using tomcat 4.1.12

thanks a lot
sangam dash


-
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 Hosting Tomcat

2003-02-10 Thread Lajos
Ouch, windows. I'm not too sure - maybe someone else can provide the 
info. On older versions, you could edit some file like lmhosts ...

I like fronting Tomcat with Apache for security reasons, but I still use 
virtual hosts in Tomcat. I have no idea why you are running out of 
memory - how much RAM do you have? It may be due to your applications 
more than Tomcat itself.

Regards,

Lajos


Sangam Dash wrote:
Hi

Thanks for the mail.
But do you know how to do that on windows machine?
The other thing is that when i add this one to the server.xml file the 
tomcat runs out of memory and it gives premature end of file error 
sometimes. :-[
Is it better to have apache and tomcat both configured for this kind of 
situations? :-\
Thanks a lot
Sangam Dash :-)
Lajos wrote:

Hi Sangam -

Looks like the examples from my FlashGuide ;) What doesn't work? One 
thing that you must make sure is that the values of the name attribute 
of the  resolve to your machine. You can do this via your 
machine's DNS configuration. In the example below, mydomain0.com, 
mydomain1.com and mydomain2.com must resolve to the same machine. If 
not, the example won't work.

Regards,

Lajos


Sangam Dash wrote:

Hi

I am using tomcat for my websites.
I am not using apache.
I need to do have two websites running from the same machine with the 
same tomcat instance.
i didnt get any help on the net as everything for virtual hosting  is 
with apache and tomcat combination.
is it possible to server two different websites from same machine 
using only tomcat?
please help me out

I tried the following
but it doesnt work

added this following to the server.xml file

  
  
  
  
  
  
  
  
  
  
  
  
  
  i appreciate any kind of help ...
i am using tomcat 4.1.12

thanks a lot
sangam dash


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





--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- powered by AzSSL


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




RE: Virtual Hosting Tomcat

2003-02-10 Thread Turner, John

In %SYSTEM%\system32\drivers\etc, there is a file called hosts.  If there
isn't a file called hosts, there is typically a file called hosts.sam.  If
hosts exists, edit it.  If it doesn't, copy hosts.sam to hosts, edit hosts.

%SYSTEM% = wherever Windows is, like C:\Windows

John

-Original Message-
From: Lajos [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 10, 2003 10:25 PM
To: Tomcat Users List
Subject: Re: Virtual Hosting Tomcat


Ouch, windows. I'm not too sure - maybe someone else can provide the 
info. On older versions, you could edit some file like lmhosts ...

I like fronting Tomcat with Apache for security reasons, but I still use 
virtual hosts in Tomcat. I have no idea why you are running out of 
memory - how much RAM do you have? It may be due to your applications 
more than Tomcat itself.

Regards,

Lajos


Sangam Dash wrote:
> Hi
> 
> Thanks for the mail.
> But do you know how to do that on windows machine?
> The other thing is that when i add this one to the server.xml file the
> tomcat runs out of memory and it gives premature end of file error 
> sometimes. :-[
> Is it better to have apache and tomcat both configured for this kind of 
> situations? :-\
> Thanks a lot
> Sangam Dash :-)
> Lajos wrote:
> 
>> Hi Sangam -
>>
>> Looks like the examples from my FlashGuide ;) What doesn't work? One
>> thing that you must make sure is that the values of the name attribute 
>> of the  resolve to your machine. You can do this via your 
>> machine's DNS configuration. In the example below, mydomain0.com, 
>> mydomain1.com and mydomain2.com must resolve to the same machine. If 
>> not, the example won't work.
>>
>> Regards,
>>
>> Lajos
>>
>>
>> Sangam Dash wrote:
>>
>>> Hi
>>>
>>> I am using tomcat for my websites.
>>> I am not using apache.
>>> I need to do have two websites running from the same machine with 
>>> the
>>> same tomcat instance.
>>> i didnt get any help on the net as everything for virtual hosting  is 
>>> with apache and tomcat combination.
>>> is it possible to server two different websites from same machine 
>>> using only tomcat?
>>> please help me out
>>>
>>> I tried the following
>>> but it doesnt work
>>>
>>> added this following to the server.xml file
>>> >> unpackWARs="true">
>>>   >> directory="logs" prefix="mydomain0." suffix=".log" timestamp="true"/>
>>>   
>>>   >> reloadable="true"/>
>>>   
>>>   >> unpackWARs="true">
>>>   >> directory="logs" prefix="mydomain1." suffix=".log" timestamp="true"/>
>>>   
>>>   >> reloadable="true"/>
>>>   
>>>   >> unpackWARs="true">
>>>   >> directory="logs" prefix="mydomain2." suffix=".log" timestamp="true"/>
>>>   
>>>   >> reloadable="true"/>
>>>   i appreciate any kind of help ...
>>> i am using tomcat 4.1.12
>>>
>>> thanks a lot
>>> sangam dash
>>>
>>>
>>> 
>>> -
>>> 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]
> 
> 


-- 



Lajos Moczar
   
 Open Source Support, Consulting and Training
   
 Cocoon Developer's Handbook
  (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

_  _
   / \ /
  /___\  /
 / \   /

  http://www.galatea.com -- powered by AzSSL


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

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
 

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
 

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




Re: Virtual Hosting Tomcat

2003-02-10 Thread Sean Dockery
I have done this in the past.  Here's what you can do...

Open the "hosts" file on your machine (in WinNT\System32\drivers\etc on my
Windows 2000 machine--your location may be different) and add the following
lines to the end of the file...

127.0.0.1alpha
127.0.0.1gamma
127.0.0.1omega

For each Host.name attribute in your server.xml, set it to a machine name.
Like this...

  
...
  

  
...
  

  
...
  

Then you should be able to access your local machine using different names
like this...

http://alpha:8080/
http://gamma:8080/
http://omega:8080/

Good luck.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Lajos" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 20:25
Subject: Re: Virtual Hosting Tomcat


> Ouch, windows. I'm not too sure - maybe someone else can provide the
> info. On older versions, you could edit some file like lmhosts ...
>
> I like fronting Tomcat with Apache for security reasons, but I still use
> virtual hosts in Tomcat. I have no idea why you are running out of
> memory - how much RAM do you have? It may be due to your applications
> more than Tomcat itself.
>
> Regards,
>
> Lajos
>
>
> Sangam Dash wrote:
> > Hi
> >
> > Thanks for the mail.
> > But do you know how to do that on windows machine?
> > The other thing is that when i add this one to the server.xml file the
> > tomcat runs out of memory and it gives premature end of file error
> > sometimes. :-[
> > Is it better to have apache and tomcat both configured for this kind of
> > situations? :-\
> > Thanks a lot
> > Sangam Dash :-)
> > Lajos wrote:
> >
> >> Hi Sangam -
> >>
> >> Looks like the examples from my FlashGuide ;) What doesn't work? One
> >> thing that you must make sure is that the values of the name attribute
> >> of the  resolve to your machine. You can do this via your
> >> machine's DNS configuration. In the example below, mydomain0.com,
> >> mydomain1.com and mydomain2.com must resolve to the same machine. If
> >> not, the example won't work.
> >>
> >> Regards,
> >>
> >> Lajos
> >>
> >>
> >> Sangam Dash wrote:
> >>
> >>> Hi
> >>>
> >>> I am using tomcat for my websites.
> >>> I am not using apache.
> >>> I need to do have two websites running from the same machine with the
> >>> same tomcat instance.
> >>> i didnt get any help on the net as everything for virtual hosting  is
> >>> with apache and tomcat combination.
> >>> is it possible to server two different websites from same machine
> >>> using only tomcat?
> >>> please help me out
> >>>
> >>> I tried the following
> >>> but it doesnt work
> >>>
> >>> added this following to the server.xml file
> >>>  >>> unpackWARs="true">
> >>>>>> directory="logs" prefix="mydomain0." suffix=".log" timestamp="true"/>
> >>>   
> >>>>>> reloadable="true"/>
> >>>   
> >>>>>> unpackWARs="true">
> >>>>>> directory="logs" prefix="mydomain1." suffix=".log" timestamp="true"/>
> >>>   
> >>>>>> reloadable="true"/>
> >>>   
> >>>>>> unpackWARs="true">
> >>>>>> directory="logs" prefix="mydomain2." suffix=".log" timestamp="true"/>
> >>>   
> >>>>>> reloadable="true"/>
> >>>   i appreciate any kind of help ...
> >>> i am using tomcat 4.1.12
> >>>
> >>> thanks a lot
> >>> sangam dash
> >>>
> >>>
> >>> -
> >>> 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]
> >
> >
>
>
> --
>
>
>
> Lajos Moczar
>
>  Open Source Support, Consulting and Training
>
>  Cocoon Developer's Handbook
>   (www.amazon.com/exec/obidos/tg/detail/-/0672322579)
>
> _  _
>/ \ /
>   /___\  /
>  / \   /
>
>   http://www.galatea.com -- powered by AzSSL
>
>
> -
> 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 Hosting Tomcat

2003-02-11 Thread Sangam Dash
Hi
i added something like you said to the hosts file
127.0.0.1 rippleimpact
then if i give rippleimpact:8080 it works
thanks a lot
but then i added
this to the server.xml file


   
   
   
   
is there something wrong with this ?
tomcat doesnt start now...
do you have any idea why its doing that?
i dont find any error showing in the logs folder?
please help
thanks
sangam dash
Sean Dockery wrote:

I have done this in the past.  Here's what you can do...

Open the "hosts" file on your machine (in WinNT\System32\drivers\etc on my
Windows 2000 machine--your location may be different) and add the following
lines to the end of the file...

127.0.0.1alpha
127.0.0.1gamma
127.0.0.1omega

For each Host.name attribute in your server.xml, set it to a machine name.
Like this...

 
   ...
 

 
   ...
 

 
   ...
 

Then you should be able to access your local machine using different names
like this...

http://alpha:8080/
http://gamma:8080/
http://omega:8080/

Good luck.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Lajos" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 20:25
Subject: Re: Virtual Hosting Tomcat


 

Ouch, windows. I'm not too sure - maybe someone else can provide the
info. On older versions, you could edit some file like lmhosts ...

I like fronting Tomcat with Apache for security reasons, but I still use
virtual hosts in Tomcat. I have no idea why you are running out of
memory - how much RAM do you have? It may be due to your applications
more than Tomcat itself.

Regards,

Lajos


Sangam Dash wrote:
   

Hi

Thanks for the mail.
But do you know how to do that on windows machine?
The other thing is that when i add this one to the server.xml file the
tomcat runs out of memory and it gives premature end of file error
sometimes. :-[
Is it better to have apache and tomcat both configured for this kind of
situations? :-\
Thanks a lot
Sangam Dash :-)
Lajos wrote:

 

Hi Sangam -

Looks like the examples from my FlashGuide ;) What doesn't work? One
thing that you must make sure is that the values of the name attribute
of the  resolve to your machine. You can do this via your
machine's DNS configuration. In the example below, mydomain0.com,
mydomain1.com and mydomain2.com must resolve to the same machine. If
not, the example won't work.

Regards,

Lajos


Sangam Dash wrote:

   

Hi

I am using tomcat for my websites.
I am not using apache.
I need to do have two websites running from the same machine with the
same tomcat instance.
i didnt get any help on the net as everything for virtual hosting  is
with apache and tomcat combination.
is it possible to server two different websites from same machine
using only tomcat?
please help me out

I tried the following
but it doesnt work

added this following to the server.xml file

unpackWARs="true">
 
directory="logs" prefix="mydomain0." suffix=".log" timestamp="true"/>
 
 

reloadable="true"/>
 

 
reloadable="true"/>
 
 
unpackWARs="true">
 
directory="logs" prefix="mydomain1." suffix=".log" timestamp="true"/>
 
 

reloadable="true"/>
 

 
reloadable="true"/>
 
 
unpackWARs="true">
 
directory="logs" prefix="mydomain2." suffix=".log" timestamp="true"/>
 
 

reloadable="true"/>
 

 
reloadable="true"/>
 i appreciate any kind of help ...
i am using tomcat 4.1.12

thanks a lot
sangam dash


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


 

--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- powered by AzSSL


-
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 Hosting Tomcat

2003-02-11 Thread Sangam Dash
Sorry for the previous message i had a typo
the tomcat is starting now
let me try if the virtual hosting is working or not ;-)
thanks
sangam dash
Sangam Dash wrote:


Hi
i added something like you said to the hosts file
127.0.0.1 rippleimpact
then if i give rippleimpact:8080 it works
thanks a lot
but then i added
this to the server.xml file


   
   
   
   
is there something wrong with this ?
tomcat doesnt start now...
do you have any idea why its doing that?
i dont find any error showing in the logs folder?
please help
thanks
sangam dash
Sean Dockery wrote:

I have done this in the past.  Here's what you can do...

Open the "hosts" file on your machine (in WinNT\System32\drivers\etc 
on my
Windows 2000 machine--your location may be different) and add the 
following
lines to the end of the file...

127.0.0.1alpha
127.0.0.1gamma
127.0.0.1omega

For each Host.name attribute in your server.xml, set it to a machine 
name.
Like this...

 
   ...
 

 
   ...
 

 
   ...
 

Then you should be able to access your local machine using different 
names
like this...

http://alpha:8080/
http://gamma:8080/
http://omega:8080/

Good luck.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Lajos" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 20:25
Subject: Re: Virtual Hosting Tomcat


 

Ouch, windows. I'm not too sure - maybe someone else can provide the
info. On older versions, you could edit some file like lmhosts ...

I like fronting Tomcat with Apache for security reasons, but I still 
use
virtual hosts in Tomcat. I have no idea why you are running out of
memory - how much RAM do you have? It may be due to your applications
more than Tomcat itself.

Regards,

Lajos


Sangam Dash wrote:
  

Hi

Thanks for the mail.
But do you know how to do that on windows machine?
The other thing is that when i add this one to the server.xml file the
tomcat runs out of memory and it gives premature end of file error
sometimes. :-[
Is it better to have apache and tomcat both configured for this 
kind of
situations? :-\
Thanks a lot
Sangam Dash :-)
Lajos wrote:



Hi Sangam -

Looks like the examples from my FlashGuide ;) What doesn't work? One
thing that you must make sure is that the values of the name 
attribute
of the  resolve to your machine. You can do this via your
machine's DNS configuration. In the example below, mydomain0.com,
mydomain1.com and mydomain2.com must resolve to the same machine. If
not, the example won't work.

Regards,

Lajos


Sangam Dash wrote:

  

Hi

I am using tomcat for my websites.
I am not using apache.
I need to do have two websites running from the same machine with 
the
same tomcat instance.
i didnt get any help on the net as everything for virtual 
hosting  is
with apache and tomcat combination.
is it possible to server two different websites from same machine
using only tomcat?
please help me out

I tried the following
but it doesnt work

added this following to the server.xml file

unpackWARs="true">
 
directory="logs" prefix="mydomain0." suffix=".log" 
timestamp="true"/>
 



reloadable="true"/>
 

 
reloadable="true"/>
 
 
unpackWARs="true">
 
directory="logs" prefix="mydomain1." suffix=".log" 
timestamp="true"/>
 



reloadable="true"/>
 

 
reloadable="true"/>
 
 
unpackWARs="true">
 
directory="logs" prefix="mydomain2." suffix=".log" 
timestamp="true"/>
 



reloadable="true"/>
 

 
reloadable="true"/>
 i appreciate any kind of help ...
i am using tomcat 4.1.12

thanks a lot
sangam dash


- 

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]




--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- powered by AzSSL


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

Re: Virtual Hosting Tomcat

2003-02-11 Thread Sangam Dash
Hey you know what the virtual hosting is working :-)
thanks a lot for all your help guys
cheers
sangam dash
Sangam Dash wrote:


Sorry for the previous message i had a typo
the tomcat is starting now
let me try if the virtual hosting is working or not ;-)
thanks
sangam dash
Sangam Dash wrote:


Hi
i added something like you said to the hosts file
127.0.0.1 rippleimpact
then if i give rippleimpact:8080 it works
thanks a lot
but then i added
this to the server.xml file


   
   
   
   
is there something wrong with this ?
tomcat doesnt start now...
do you have any idea why its doing that?
i dont find any error showing in the logs folder?
please help
thanks
sangam dash
Sean Dockery wrote:

I have done this in the past.  Here's what you can do...

Open the "hosts" file on your machine (in WinNT\System32\drivers\etc 
on my
Windows 2000 machine--your location may be different) and add the 
following
lines to the end of the file...

127.0.0.1alpha
127.0.0.1gamma
127.0.0.1omega

For each Host.name attribute in your server.xml, set it to a machine 
name.
Like this...

 
   ...
 

 
   ...
 

 
   ...
 

Then you should be able to access your local machine using different 
names
like this...

http://alpha:8080/
http://gamma:8080/
http://omega:8080/

Good luck.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Lajos" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 20:25
Subject: Re: Virtual Hosting Tomcat


 

Ouch, windows. I'm not too sure - maybe someone else can provide the
info. On older versions, you could edit some file like lmhosts ...

I like fronting Tomcat with Apache for security reasons, but I 
still use
virtual hosts in Tomcat. I have no idea why you are running out of
memory - how much RAM do you have? It may be due to your applications
more than Tomcat itself.

Regards,

Lajos


Sangam Dash wrote:
 

Hi

Thanks for the mail.
But do you know how to do that on windows machine?
The other thing is that when i add this one to the server.xml file 
the
tomcat runs out of memory and it gives premature end of file error
sometimes. :-[
Is it better to have apache and tomcat both configured for this 
kind of
situations? :-\
Thanks a lot
Sangam Dash :-)
Lajos wrote:

   

Hi Sangam -

Looks like the examples from my FlashGuide ;) What doesn't work? One
thing that you must make sure is that the values of the name 
attribute
of the  resolve to your machine. You can do this via your
machine's DNS configuration. In the example below, mydomain0.com,
mydomain1.com and mydomain2.com must resolve to the same machine. If
not, the example won't work.

Regards,

Lajos


Sangam Dash wrote:

 

Hi

I am using tomcat for my websites.
I am not using apache.
I need to do have two websites running from the same machine 
with the
same tomcat instance.
i didnt get any help on the net as everything for virtual 
hosting  is
with apache and tomcat combination.
is it possible to server two different websites from same machine
using only tomcat?
please help me out

I tried the following
but it doesnt work

added this following to the server.xml file

unpackWARs="true">
 
directory="logs" prefix="mydomain0." suffix=".log" 
timestamp="true"/>
 




reloadable="true"/>
 

 
reloadable="true"/>
 
 
unpackWARs="true">
 
directory="logs" prefix="mydomain1." suffix=".log" 
timestamp="true"/>
 




reloadable="true"/>
 

 
reloadable="true"/>
 
 
unpackWARs="true">
 
directory="logs" prefix="mydomain2." suffix=".log" 
timestamp="true"/>
 




reloadable="true"/>
 

 
reloadable="true"/>
 i appreciate any kind of help ...
i am using tomcat 4.1.12

thanks a lot
sangam dash


- 

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]





--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- 

Re: Virtual Hosting Tomcat

2003-02-11 Thread Sean Dockery
What do you mean that you don't find any errors in the logs folder?  Where
did you look?  What about the output of the console window when you start
Tomcat manually?  I'm willing to be that you fatally corrupted your
server.xml file somehow.

Make a copy of the Host definition for localhost within the same Engine
definition.  Then make changes to the copy.  Your Host definition is far
more sparse than mine.


Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com


- Original Message -
From: "Sangam Dash" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 11:31
Subject: Re: Virtual Hosting Tomcat


> Hi
> i added something like you said to the hosts file
> 127.0.0.1 rippleimpact
> then if i give rippleimpact:8080 it works
> thanks a lot
> but then i added
> this to the server.xml file
>
> 
>  directory="logs" prefix="ripple." suffix=".log" timestamp="true"/>
> 
> 
> 
> is there something wrong with this ?
> tomcat doesnt start now...
> do you have any idea why its doing that?
> i dont find any error showing in the logs folder?
> please help
> thanks
> sangam dash
> Sean Dockery wrote:
>
> >I have done this in the past.  Here's what you can do...
> >
> >Open the "hosts" file on your machine (in WinNT\System32\drivers\etc on
my
> >Windows 2000 machine--your location may be different) and add the
following
> >lines to the end of the file...
> >
> >127.0.0.1alpha
> >127.0.0.1gamma
> >127.0.0.1omega
> >
> >For each Host.name attribute in your server.xml, set it to a machine
name.
> >Like this...
> >
> >  
> >...
> >  
> >
> >  
> >...
> >  
> >
> >  
> >...
> >  
> >
> >Then you should be able to access your local machine using different
names
> >like this...
> >
> >http://alpha:8080/
> >http://gamma:8080/
> >http://omega:8080/
> >
> >Good luck.
> >
> >Sean Dockery
> >[EMAIL PROTECTED]
> >Certified Java Web Component Developer
> >Certified Delphi Programmer
> >SBD Consultants
> >http://www.sbdconsultants.com
> >
> >- Original Message -
> >From: "Lajos" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Monday, February 10, 2003 20:25
> >Subject: Re: Virtual Hosting Tomcat
> >
> >
> >
> >
> >>Ouch, windows. I'm not too sure - maybe someone else can provide the
> >>info. On older versions, you could edit some file like lmhosts ...
> >>
> >>I like fronting Tomcat with Apache for security reasons, but I still use
> >>virtual hosts in Tomcat. I have no idea why you are running out of
> >>memory - how much RAM do you have? It may be due to your applications
> >>more than Tomcat itself.
> >>
> >>Regards,
> >>
> >>Lajos
> >>
> >>
> >>Sangam Dash wrote:
> >>
> >>
> >>>Hi
> >>>
> >>>Thanks for the mail.
> >>>But do you know how to do that on windows machine?
> >>>The other thing is that when i add this one to the server.xml file the
> >>>tomcat runs out of memory and it gives premature end of file error
> >>>sometimes. :-[
> >>>Is it better to have apache and tomcat both configured for this kind of
> >>>situations? :-\
> >>>Thanks a lot
> >>>Sangam Dash :-)
> >>>Lajos wrote:
> >>>
> >>>
> >>>
> >>>>Hi Sangam -
> >>>>
> >>>>Looks like the examples from my FlashGuide ;) What doesn't work? One
> >>>>thing that you must make sure is that the values of the name attribute
> >>>>of the  resolve to your machine. You can do this via your
> >>>>machine's DNS configuration. In the example below, mydomain0.com,
> >>>>mydomain1.com and mydomain2.com must resolve to the same machine. If
> >>>>not, the example won't work.
> >>>>
> >>>>Regards,
> >>>>
> >>>>Lajos
> >>>>
> >>>>
> >>>>Sangam Dash wrote:
> >>>>
> >>>>
> >>>>
> >>>>>Hi
> >>>>>
> >>>>>I 

RE: Virtual Hosting Tomcat

2003-02-11 Thread Turner, John

Aside from the fact that you have two root ("") Contexts configured for the
same host?  Or is that a typo?


John


> -Original Message-
> From: Sangam Dash [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 11, 2003 1:32 PM
> To: Tomcat Users List
> Subject: Re: Virtual Hosting Tomcat
> 
> 
> Hi
> i added something like you said to the hosts file
> 127.0.0.1 rippleimpact
> then if i give rippleimpact:8080 it works
> thanks a lot
> but then i added
> this to the server.xml file
> 
>  unpackWARs="true">
>  directory="logs" prefix="ripple." suffix=".log" timestamp="true"/>
>  reloadable="true"/>
>  reloadable="true"/>
> 
> is there something wrong with this ?
> tomcat doesnt start now...
> do you have any idea why its doing that?
> i dont find any error showing in the logs folder?
> please help
> thanks
> sangam dash
> Sean Dockery wrote:
> 
> >I have done this in the past.  Here's what you can do...
> >
> >Open the "hosts" file on your machine (in 
> WinNT\System32\drivers\etc on my
> >Windows 2000 machine--your location may be different) and 
> add the following
> >lines to the end of the file...
> >
> >127.0.0.1alpha
> >127.0.0.1gamma
> >127.0.0.1omega
> >
> >For each Host.name attribute in your server.xml, set it to a 
> machine name.
> >Like this...
> >
> >  
> >...
> >  
> >
> >  
> >...
> >  
> >
> >  
> >...
> >  
> >
> >Then you should be able to access your local machine using 
> different names
> >like this...
> >
> >http://alpha:8080/
> >http://gamma:8080/
> >http://omega:8080/
> >
> >Good luck.
> >
> >Sean Dockery
> >[EMAIL PROTECTED]
> >Certified Java Web Component Developer
> >Certified Delphi Programmer
> >SBD Consultants
> >http://www.sbdconsultants.com
> >
> >- Original Message -
> >From: "Lajos" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Monday, February 10, 2003 20:25
> >Subject: Re: Virtual Hosting Tomcat
> >
> >
> >  
> >
> >>Ouch, windows. I'm not too sure - maybe someone else can provide the
> >>info. On older versions, you could edit some file like lmhosts ...
> >>
> >>I like fronting Tomcat with Apache for security reasons, 
> but I still use
> >>virtual hosts in Tomcat. I have no idea why you are running out of
> >>memory - how much RAM do you have? It may be due to your 
> applications
> >>more than Tomcat itself.
> >>
> >>Regards,
> >>
> >>Lajos
> >>
> >>
> >>Sangam Dash wrote:
> >>
> >>
> >>>Hi
> >>>
> >>>Thanks for the mail.
> >>>But do you know how to do that on windows machine?
> >>>The other thing is that when i add this one to the 
> server.xml file the
> >>>tomcat runs out of memory and it gives premature end of file error
> >>>sometimes. :-[
> >>>Is it better to have apache and tomcat both configured for 
> this kind of
> >>>situations? :-\
> >>>Thanks a lot
> >>>Sangam Dash :-)
> >>>Lajos wrote:
> >>>
> >>>  
> >>>
> >>>>Hi Sangam -
> >>>>
> >>>>Looks like the examples from my FlashGuide ;) What 
> doesn't work? One
> >>>>thing that you must make sure is that the values of the 
> name attribute
> >>>>of the  resolve to your machine. You can do this via your
> >>>>machine's DNS configuration. In the example below, mydomain0.com,
> >>>>mydomain1.com and mydomain2.com must resolve to the same 
> machine. If
> >>>>not, the example won't work.
> >>>>
> >>>>Regards,
> >>>>
> >>>>Lajos
> >>>>
> >>>>
> >>>>Sangam Dash wrote:
> >>>>
> >>>>
> >>>>
> >>>>>Hi
> >>>>>
> >>>>>I am using tomcat for my websites.
> >>>>>I am not using apache.
> >>>>>I need to do have two websites running from the same 
> machine with the
> >>>>>same tomcat instance.
> >>>>>i didnt get any help on the net a

Re: Virtual Hosting Tomcat

2003-02-11 Thread Sangam Dash
hi

I have this

   www.inqbyte.com
   
   
   
in the server.xml file now
in the hosts file
it is
127.0.0.1 inqbyte.com
so now when i say http://www.inqbyte.com:8080/  it says page cant be found
without the alias it works fine
when i say http://inqbyte.com:8080/ it works fine
do u know what happens?
thanks
sangam dash
Sean Dockery wrote:

What do you mean that you don't find any errors in the logs folder?  Where
did you look?  What about the output of the console window when you start
Tomcat manually?  I'm willing to be that you fatally corrupted your
server.xml file somehow.

Make a copy of the Host definition for localhost within the same Engine
definition.  Then make changes to the copy.  Your Host definition is far
more sparse than mine.


Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com


- Original Message -
From: "Sangam Dash" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 11:31
Subject: Re: Virtual Hosting Tomcat


 

Hi
i added something like you said to the hosts file
127.0.0.1 rippleimpact
then if i give rippleimpact:8080 it works
thanks a lot
but then i added
this to the server.xml file


   
directory="logs" prefix="ripple." suffix=".log" timestamp="true"/>
   
   
   
is there something wrong with this ?
tomcat doesnt start now...
do you have any idea why its doing that?
i dont find any error showing in the logs folder?
please help
thanks
sangam dash
Sean Dockery wrote:

   

I have done this in the past.  Here's what you can do...

Open the "hosts" file on your machine (in WinNT\System32\drivers\etc on
 

my
 

Windows 2000 machine--your location may be different) and add the
 

following
 

lines to the end of the file...

127.0.0.1alpha
127.0.0.1gamma
127.0.0.1omega

For each Host.name attribute in your server.xml, set it to a machine
 

name.
 

Like this...


  ...



  ...



  ...


Then you should be able to access your local machine using different
 

names
 

like this...

http://alpha:8080/
http://gamma:8080/
http://omega:8080/

Good luck.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Lajos" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 20:25
Subject: Re: Virtual Hosting Tomcat




 

Ouch, windows. I'm not too sure - maybe someone else can provide the
info. On older versions, you could edit some file like lmhosts ...

I like fronting Tomcat with Apache for security reasons, but I still use
virtual hosts in Tomcat. I have no idea why you are running out of
memory - how much RAM do you have? It may be due to your applications
more than Tomcat itself.

Regards,

Lajos


Sangam Dash wrote:


   

Hi

Thanks for the mail.
But do you know how to do that on windows machine?
The other thing is that when i add this one to the server.xml file the
tomcat runs out of memory and it gives premature end of file error
sometimes. :-[
Is it better to have apache and tomcat both configured for this kind of
situations? :-\
Thanks a lot
Sangam Dash :-)
Lajos wrote:



 

Hi Sangam -

Looks like the examples from my FlashGuide ;) What doesn't work? One
thing that you must make sure is that the values of the name attribute
of the  resolve to your machine. You can do this via your
machine's DNS configuration. In the example below, mydomain0.com,
mydomain1.com and mydomain2.com must resolve to the same machine. If
not, the example won't work.

Regards,

Lajos


Sangam Dash wrote:



   

Hi

I am using tomcat for my websites.
I am not using apache.
I need to do have two websites running from the same machine with the
same tomcat instance.
i didnt get any help on the net as everything for virtual hosting  is
with apache and tomcat combination.
is it possible to server two different websites from same machine
using only tomcat?
please help me out

I tried the following
but it doesnt work

added this following to the server.xml file

unpackWARs="true">

directory="logs" prefix="mydomain0." suffix=".log" timestamp="true"/>



 

reloadable="true"/>


 


reloadable="true"/>


unpackWARs="true">

directory="logs" prefix="mydomain1." suffix=".log" timestamp="true"/>



 

reloadable="true"/>


 


reloadable="true"/>


unpackWARs="true">

directory="logs" prefix="mydomain2." suffix="

Re: Virtual Hosting Tomcat

2003-02-11 Thread Sean Dockery
www.inqbyte.com is not in your hosts file, so your machine looks to your DNS
server to resolve to it to an IP.  If you put www.ipqbyte.com in your hosts
file, it should work as you expect.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Sangam Dash" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 12:21
Subject: Re: Virtual Hosting Tomcat


> hi
>
> I have this
> 
> www.inqbyte.com
>  directory="logs" prefix="inqbyte." suffix=".log" timestamp="true"/>
> 
> 
> in the server.xml file now
> in the hosts file
> it is
> 127.0.0.1 inqbyte.com
> so now when i say http://www.inqbyte.com:8080/  it says page cant be found
> without the alias it works fine
> when i say http://inqbyte.com:8080/ it works fine
> do u know what happens?
> thanks
> sangam dash
> Sean Dockery wrote:
>
> >What do you mean that you don't find any errors in the logs folder?
Where
> >did you look?  What about the output of the console window when you start
> >Tomcat manually?  I'm willing to be that you fatally corrupted your
> >server.xml file somehow.
> >
> >Make a copy of the Host definition for localhost within the same Engine
> >definition.  Then make changes to the copy.  Your Host definition is far
> >more sparse than mine.
> >
> >
> >Sean Dockery
> >[EMAIL PROTECTED]
> >Certified Java Web Component Developer
> >Certified Delphi Programmer
> >SBD Consultants
> >http://www.sbdconsultants.com
> >
> >
> >- Original Message -
> >From: "Sangam Dash" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Tuesday, February 11, 2003 11:31
> >Subject: Re: Virtual Hosting Tomcat
> >
> >
> >
> >
> >>Hi
> >>i added something like you said to the hosts file
> >>127.0.0.1 rippleimpact
> >>then if i give rippleimpact:8080 it works
> >>thanks a lot
> >>but then i added
> >>this to the server.xml file
> >>
> >>
> >> >>directory="logs" prefix="ripple." suffix=".log" timestamp="true"/>
> >>
> >>
> >>
> >>is there something wrong with this ?
> >>tomcat doesnt start now...
> >>do you have any idea why its doing that?
> >>i dont find any error showing in the logs folder?
> >>please help
> >>thanks
> >>sangam dash
> >>Sean Dockery wrote:
> >>
> >>
> >>
> >>>I have done this in the past.  Here's what you can do...
> >>>
> >>>Open the "hosts" file on your machine (in WinNT\System32\drivers\etc on
> >>>
> >>>
> >my
> >
> >
> >>>Windows 2000 machine--your location may be different) and add the
> >>>
> >>>
> >following
> >
> >
> >>>lines to the end of the file...
> >>>
> >>>127.0.0.1alpha
> >>>127.0.0.1gamma
> >>>127.0.0.1omega
> >>>
> >>>For each Host.name attribute in your server.xml, set it to a machine
> >>>
> >>>
> >name.
> >
> >
> >>>Like this...
> >>>
> >>> 
> >>>   ...
> >>> 
> >>>
> >>> 
> >>>   ...
> >>> 
> >>>
> >>> 
> >>>   ...
> >>> 
> >>>
> >>>Then you should be able to access your local machine using different
> >>>
> >>>
> >names
> >
> >
> >>>like this...
> >>>
> >>>http://alpha:8080/
> >>>http://gamma:8080/
> >>>http://omega:8080/
> >>>
> >>>Good luck.
> >>>
> >>>Sean Dockery
> >>>[EMAIL PROTECTED]
> >>>Certified Java Web Component Developer
> >>>Certified Delphi Programmer
> >>>SBD Consultants
> >>>http://www.sbdconsultants.com
> >>>
> >>>- Original Message -
> >>>From: "Lajos" <[EMAIL PROTECTED]>
> >>>To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >>>Sent: Monday, February 10, 2003 20:25
> >>>Subject: Re: Virtual Host

Re: Virtual Hosting Tomcat

2003-02-11 Thread Harish Kumar K.K.
Hi Sangam

Add this line to your hosts file

127.0.0.1 www.inqbyte.com

and then try.

Harish
- Original Message -
From: "Sangam Dash" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 11:21 AM
Subject: Re: Virtual Hosting Tomcat


> hi
>
> I have this
> 
> www.inqbyte.com
>  directory="logs" prefix="inqbyte." suffix=".log" timestamp="true"/>
> 
> 
> in the server.xml file now
> in the hosts file
> it is
> 127.0.0.1 inqbyte.com
> so now when i say http://www.inqbyte.com:8080/  it says page cant be found
> without the alias it works fine
> when i say http://inqbyte.com:8080/ it works fine
> do u know what happens?
> thanks
> sangam dash
> Sean Dockery wrote:
>
> >What do you mean that you don't find any errors in the logs folder?
Where
> >did you look?  What about the output of the console window when you start
> >Tomcat manually?  I'm willing to be that you fatally corrupted your
> >server.xml file somehow.
> >
> >Make a copy of the Host definition for localhost within the same Engine
> >definition.  Then make changes to the copy.  Your Host definition is far
> >more sparse than mine.
> >
> >
> >Sean Dockery
> >[EMAIL PROTECTED]
> >Certified Java Web Component Developer
> >Certified Delphi Programmer
> >SBD Consultants
> >http://www.sbdconsultants.com
> >
> >
> >- Original Message -
> >From: "Sangam Dash" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Tuesday, February 11, 2003 11:31
> >Subject: Re: Virtual Hosting Tomcat
> >
> >
> >
> >
> >>Hi
> >>i added something like you said to the hosts file
> >>127.0.0.1 rippleimpact
> >>then if i give rippleimpact:8080 it works
> >>thanks a lot
> >>but then i added
> >>this to the server.xml file
> >>
> >>
> >> >>directory="logs" prefix="ripple." suffix=".log" timestamp="true"/>
> >>
> >>
> >>
> >>is there something wrong with this ?
> >>tomcat doesnt start now...
> >>do you have any idea why its doing that?
> >>i dont find any error showing in the logs folder?
> >>please help
> >>thanks
> >>sangam dash
> >>Sean Dockery wrote:
> >>
> >>
> >>
> >>>I have done this in the past.  Here's what you can do...
> >>>
> >>>Open the "hosts" file on your machine (in WinNT\System32\drivers\etc on
> >>>
> >>>
> >my
> >
> >
> >>>Windows 2000 machine--your location may be different) and add the
> >>>
> >>>
> >following
> >
> >
> >>>lines to the end of the file...
> >>>
> >>>127.0.0.1alpha
> >>>127.0.0.1gamma
> >>>127.0.0.1omega
> >>>
> >>>For each Host.name attribute in your server.xml, set it to a machine
> >>>
> >>>
> >name.
> >
> >
> >>>Like this...
> >>>
> >>> 
> >>>   ...
> >>> 
> >>>
> >>> 
> >>>   ...
> >>> 
> >>>
> >>> 
> >>>   ...
> >>> 
> >>>
> >>>Then you should be able to access your local machine using different
> >>>
> >>>
> >names
> >
> >
> >>>like this...
> >>>
> >>>http://alpha:8080/
> >>>http://gamma:8080/
> >>>http://omega:8080/
> >>>
> >>>Good luck.
> >>>
> >>>Sean Dockery
> >>>[EMAIL PROTECTED]
> >>>Certified Java Web Component Developer
> >>>Certified Delphi Programmer
> >>>SBD Consultants
> >>>http://www.sbdconsultants.com
> >>>
> >>>- Original Message -
> >>>From: "Lajos" <[EMAIL PROTECTED]>
> >>>To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >>>Sent: Monday, February 10, 2003 20:25
> >>>Subject: Re: Virtual Hosting Tomcat
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>Ouch, windows. I'm not too sure - maybe someone else can provide th

Re: Virtual Hosting Tomcat

2003-02-11 Thread Sangam Dash
Sean Dockery wrote:


www.inqbyte.com is not in your hosts file, so your machine looks to your DNS
server to resolve to it to an IP.  If you put www.ipqbyte.com in your hosts
file, it should work as you expect.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Sangam Dash" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 12:21
Subject: Re: Virtual Hosting Tomcat


 

hi

I have this

   www.inqbyte.com
   
directory="logs" prefix="inqbyte." suffix=".log" timestamp="true"/>
   
   
in the server.xml file now
in the hosts file
it is
127.0.0.1 inqbyte.com
so now when i say http://www.inqbyte.com:8080/  it says page cant be found
without the alias it works fine
when i say http://inqbyte.com:8080/ it works fine
do u know what happens?
thanks
sangam dash
Sean Dockery wrote:

   

What do you mean that you don't find any errors in the logs folder?
 

Where
 

did you look?  What about the output of the console window when you start
Tomcat manually?  I'm willing to be that you fatally corrupted your
server.xml file somehow.

Make a copy of the Host definition for localhost within the same Engine
definition.  Then make changes to the copy.  Your Host definition is far
more sparse than mine.


Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com


- Original Message -
From: "Sangam Dash" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 11:31
Subject: Re: Virtual Hosting Tomcat




 

Hi
i added something like you said to the hosts file
127.0.0.1 rippleimpact
then if i give rippleimpact:8080 it works
thanks a lot
but then i added
this to the server.xml file


  
directory="logs" prefix="ripple." suffix=".log" timestamp="true"/>
  
  
   

reloadable="true"/>
 

  
is there something wrong with this ?
tomcat doesnt start now...
do you have any idea why its doing that?
i dont find any error showing in the logs folder?
please help
thanks
sangam dash
Sean Dockery wrote:



   

I have done this in the past.  Here's what you can do...

Open the "hosts" file on your machine (in WinNT\System32\drivers\etc on


 

my


 

Windows 2000 machine--your location may be different) and add the


 

following


 

lines to the end of the file...

127.0.0.1alpha
127.0.0.1gamma
127.0.0.1omega

For each Host.name attribute in your server.xml, set it to a machine


 

name.


 

Like this...


 ...



 ...



 ...


Then you should be able to access your local machine using different


 

names


 

like this...

http://alpha:8080/
http://gamma:8080/
http://omega:8080/

Good luck.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Lajos" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 20:25
Subject: Re: Virtual Hosting Tomcat






 

Ouch, windows. I'm not too sure - maybe someone else can provide the
info. On older versions, you could edit some file like lmhosts ...

I like fronting Tomcat with Apache for security reasons, but I still
   

use
 

virtual hosts in Tomcat. I have no idea why you are running out of
memory - how much RAM do you have? It may be due to your applications
more than Tomcat itself.

Regards,

Lajos


Sangam Dash wrote:




   

Hi

Thanks for the mail.
But do you know how to do that on windows machine?
The other thing is that when i add this one to the server.xml file
 

the
 

tomcat runs out of memory and it gives premature end of file error
sometimes. :-[
Is it better to have apache and tomcat both configured for this kind
 

of
 

situations? :-\
Thanks a lot
Sangam Dash :-)
Lajos wrote:





 

Hi Sangam -

Looks like the examples from my FlashGuide ;) What doesn't work? One
thing that you must make sure is that the values of the name
   

attribute
 

of the  resolve to your machine. You can do this via your
machine's DNS configuration. In the example below, mydomain0.com,
mydomain1.com and mydomain2.com must resolve to the same machine. If
not, the example won't work.

Regards,

Lajos


Sangam Dash wrote:





       

Hi

I am using tomcat for my websites.
I am not using apache.
I need to do have two websites running from the same machine with
 

the
 

same tomcat instance.
i d

Re: Virtual hosting & mod_jk2

2003-03-28 Thread Richard Anderson
Did you have any luck getting this configured?

I'm having difficulties doing the same thing.

--Rick

On Thursday, March 27, 2003, at 03:51 PM, Quinton McCombs wrote:

I am having a difficult time figuring out how to properly configure
Apache 2.0.44 and Tomcat 4.1.12 with virtual hosting.  I am using
mod_jk2 as my connector.
I have all of this working with Apache 1.3, Tomcat 4.1, and
mod_webapp
In my testing environment, I have a servlet based application that is
available over https and http.
On the tomcat side, I have defined the default host and one virtual
host.  The virtual host (test.nequalsone.com) has a non-default 
appBase.
The intent here is to only allow access to the application through
test.nequalsone.com although the server can be accessed by serveral
names.

On the Apache side, I am using name based virtual hosting.  I have one
host defined to use SSL which should forward requests for my 
application
to Tomcat.  I have another virtual host (test.nequalsone.com) that is
defined to also forward requests to tomcat.  I am using JKUriSet to
define the mapping to Tomcat.

This seemed to work fine at first but then I noticed that the
application did not work properly on the SSL version.  My application
did not detect that it was being accessed over SSL so it was generating
links using http:// instead of https://.  Everything else appeared to
work...
I decided to try creating a second AJP13 connector on tomcat.  The
second connection has scheme="https" and secure="true".  Both 
connectors
are on different ports.  Is this the correct way to solve this problem
so far?

Next, I created a new channel in workers2.properties.  I then modified
the JKSetUri directive for the SSL virtual host to use the new channel.
This is where things started to go wrong
Checking the jkstatus page showed that the last JKSetUri directive over
wrote the previous one.  Under the uri runtime info section, I had the
following:
Id=0, name=/neo/servlet, host=*, uri=/neo/servlet,
group=ajp13:localhost:8010, context=/
The location that I mapped for both virtual hosts was /neo/servlet.  It
seems that it should have created two uri mappings with different 
hosts.

After running into this problem, I tried setting the mapping in
workers2.properties.  I was unable to get that working properly.
Consider the following section from the virtual host in apache.

ServerName test.nequalsone.com
DocumentRoot /usr/local/www/test
Alias /neo /opt/jakarta/test_webapps/neo

  JKUriSet group ajp13:localhost:8009


I tried all of the following entries in workers2.properties:
[uri:test.nequalsone.com/neo/servlet]
Group=agp13:localhost:8009
[uri:test.nequalsone.com/neo/servlet/]
Group=agp13:localhost:8009
[uri:test.nequalsone.com/neo/servlet/*]
Group=agp13:localhost:8009
[uri:/neo/servlet]
Group=agp13:localhost:8009
[uri:/neo/servlet/]
Group=agp13:localhost:8009
[uri:/neo/servlet/*]
Group=agp13:localhost:8009
None of them worked.  The log file for the mod_jk2 module reported that
the file /opt/jakarta/test_webapps/neo/servlet did not exist.
What am I doing wrong here?

Quinton McCombs
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.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 hosting & mod_jk2

2003-03-29 Thread Quinton McCombs
None at all.  I think that I encountered a bug or two in mod_jk2.  This
is when you have two virtual hosts mapping the same path to the worker.
Only the last map is kept.

I ended up switching to mod_jk.  I got everything working under that
connector.  I can go into the details of how that is working if you are
interested.

> -Original Message-
> From: Richard Anderson [mailto:[EMAIL PROTECTED] 
> Sent: Friday, March 28, 2003 5:56 PM
> To: Tomcat Users List
> Subject: Re: Virtual hosting & mod_jk2
> 
> 
> Did you have any luck getting this configured?
> 
> I'm having difficulties doing the same thing.
> 
> --Rick
> 
> On Thursday, March 27, 2003, at 03:51 PM, Quinton McCombs wrote:
> 
> > I am having a difficult time figuring out how to properly configure 
> > Apache 2.0.44 and Tomcat 4.1.12 with virtual hosting.  I am using 
> > mod_jk2 as my connector.
> >
> > I have all of this working with Apache 1.3, Tomcat 4.1, and 
> > mod_webapp
> >
> > In my testing environment, I have a servlet based 
> application that is 
> > available over https and http.
> >
> > On the tomcat side, I have defined the default host and one virtual 
> > host.  The virtual host (test.nequalsone.com) has a non-default 
> > appBase. The intent here is to only allow access to the application 
> > through test.nequalsone.com although the server can be accessed by 
> > serveral names.
> >
> > On the Apache side, I am using name based virtual hosting.  
> I have one 
> > host defined to use SSL which should forward requests for my 
> > application to Tomcat.  I have another virtual host 
> > (test.nequalsone.com) that is defined to also forward requests to 
> > tomcat.  I am using JKUriSet to define the mapping to Tomcat.
> >
> > This seemed to work fine at first but then I noticed that the 
> > application did not work properly on the SSL version.  My 
> application 
> > did not detect that it was being accessed over SSL so it was 
> > generating links using http:// instead of https://.  
> Everything else 
> > appeared to work...
> >
> > I decided to try creating a second AJP13 connector on tomcat.  The 
> > second connection has scheme="https" and secure="true".  Both 
> > connectors are on different ports.  Is this the correct way 
> to solve 
> > this problem so far?
> >
> > Next, I created a new channel in workers2.properties.  I 
> then modified 
> > the JKSetUri directive for the SSL virtual host to use the new 
> > channel. This is where things started to go wrong
> >
> > Checking the jkstatus page showed that the last JKSetUri directive 
> > over wrote the previous one.  Under the uri runtime info section, I 
> > had the
> > following:
> > Id=0, name=/neo/servlet, host=*, uri=/neo/servlet,
> > group=ajp13:localhost:8010, context=/
> >
> > The location that I mapped for both virtual hosts was 
> /neo/servlet.  
> > It seems that it should have created two uri mappings with 
> different 
> > hosts.
> >
> > After running into this problem, I tried setting the mapping in 
> > workers2.properties.  I was unable to get that working properly. 
> > Consider the following section from the virtual host in apache.
> >
> > 
> > ServerName test.nequalsone.com
> > DocumentRoot /usr/local/www/test
> > Alias /neo /opt/jakarta/test_webapps/neo
> > 
> >   JKUriSet group ajp13:localhost:8009
> > 
> > 
> >
> > I tried all of the following entries in workers2.properties: 
> > [uri:test.nequalsone.com/neo/servlet]
> > Group=agp13:localhost:8009
> >
> > [uri:test.nequalsone.com/neo/servlet/]
> > Group=agp13:localhost:8009
> >
> > [uri:test.nequalsone.com/neo/servlet/*]
> > Group=agp13:localhost:8009
> >
> > [uri:/neo/servlet]
> > Group=agp13:localhost:8009
> >
> > [uri:/neo/servlet/]
> > Group=agp13:localhost:8009
> >
> > [uri:/neo/servlet/*]
> > Group=agp13:localhost:8009
> >
> > None of them worked.  The log file for the mod_jk2 module reported 
> > that the file /opt/jakarta/test_webapps/neo/servlet did not exist.
> >
> > What am I doing wrong here?
> > 
> > Quinton McCombs
> > NequalsOne - HealthCare marketing tools 
> mailto:[EMAIL PROTECTED]
> > http://www.NequalsOne.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]
> 
> 
> 


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



Re: Virtual hosting & mod_jk2

2003-03-30 Thread Richard Anderson
Thanks,

I'm going to go back and try mod_jk for now and see how that goes. 
Thanks for the help.

--Rick

Quinton McCombs wrote:

None at all.  I think that I encountered a bug or two in mod_jk2.  This
is when you have two virtual hosts mapping the same path to the worker.
Only the last map is kept.
I ended up switching to mod_jk.  I got everything working under that
connector.  I can go into the details of how that is working if you are
interested.
 

-Original Message-
From: Richard Anderson [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 28, 2003 5:56 PM
To: Tomcat Users List
Subject: Re: Virtual hosting & mod_jk2

Did you have any luck getting this configured?

I'm having difficulties doing the same thing.

--Rick

On Thursday, March 27, 2003, at 03:51 PM, Quinton McCombs wrote:

   

I am having a difficult time figuring out how to properly configure 
Apache 2.0.44 and Tomcat 4.1.12 with virtual hosting.  I am using 
mod_jk2 as my connector.

I have all of this working with Apache 1.3, Tomcat 4.1, and 
mod_webapp

In my testing environment, I have a servlet based 
 

application that is 
   

available over https and http.

On the tomcat side, I have defined the default host and one virtual 
host.  The virtual host (test.nequalsone.com) has a non-default 
appBase. The intent here is to only allow access to the application 
through test.nequalsone.com although the server can be accessed by 
serveral names.

On the Apache side, I am using name based virtual hosting.  
 

I have one 
   

host defined to use SSL which should forward requests for my 
application to Tomcat.  I have another virtual host 
(test.nequalsone.com) that is defined to also forward requests to 
tomcat.  I am using JKUriSet to define the mapping to Tomcat.

This seemed to work fine at first but then I noticed that the 
application did not work properly on the SSL version.  My 
 

application 
   

did not detect that it was being accessed over SSL so it was 
generating links using http:// instead of https://.  
 

Everything else 
   

appeared to work...

I decided to try creating a second AJP13 connector on tomcat.  The 
second connection has scheme="https" and secure="true".  Both 
connectors are on different ports.  Is this the correct way 
 

to solve 
   

this problem so far?

Next, I created a new channel in workers2.properties.  I 
 

then modified 
   

the JKSetUri directive for the SSL virtual host to use the new 
channel. This is where things started to go wrong

Checking the jkstatus page showed that the last JKSetUri directive 
over wrote the previous one.  Under the uri runtime info section, I 
had the
following:
Id=0, name=/neo/servlet, host=*, uri=/neo/servlet,
group=ajp13:localhost:8010, context=/

The location that I mapped for both virtual hosts was 
 

/neo/servlet.  
   

It seems that it should have created two uri mappings with 
 

different 
   

hosts.

After running into this problem, I tried setting the mapping in 
workers2.properties.  I was unable to get that working properly. 
Consider the following section from the virtual host in apache.


   ServerName test.nequalsone.com
   DocumentRoot /usr/local/www/test
   Alias /neo /opt/jakarta/test_webapps/neo
   
 JKUriSet group ajp13:localhost:8009
   

I tried all of the following entries in workers2.properties: 
[uri:test.nequalsone.com/neo/servlet]
Group=agp13:localhost:8009

[uri:test.nequalsone.com/neo/servlet/]
Group=agp13:localhost:8009
[uri:test.nequalsone.com/neo/servlet/*]
Group=agp13:localhost:8009
[uri:/neo/servlet]
Group=agp13:localhost:8009
[uri:/neo/servlet/]
Group=agp13:localhost:8009
[uri:/neo/servlet/*]
Group=agp13:localhost:8009
None of them worked.  The log file for the mod_jk2 module reported 
that the file /opt/jakarta/test_webapps/neo/servlet did not exist.

What am I doing wrong here?

Quinton McCombs
NequalsOne - HealthCare marketing tools 
 

mailto:[EMAIL PROTECTED]
   

http://www.NequalsOne.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]


   



-
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 hosting & mod_jk2

2003-03-30 Thread Richard Anderson
Actually, I'm interested. I wanted to try things out first.

What did you do for the workers.properties file?

--Rick

Richard Anderson wrote:

Thanks,

I'm going to go back and try mod_jk for now and see how that goes. 
Thanks for the help.

--Rick

Quinton McCombs wrote:

None at all.  I think that I encountered a bug or two in mod_jk2.  This
is when you have two virtual hosts mapping the same path to the worker.
Only the last map is kept.
I ended up switching to mod_jk.  I got everything working under that
connector.  I can go into the details of how that is working if you are
interested.
 

-Original Message-
From: Richard Anderson [mailto:[EMAIL PROTECTED] Sent: 
Friday, March 28, 2003 5:56 PM
To: Tomcat Users List
Subject: Re: Virtual hosting & mod_jk2

Did you have any luck getting this configured?

I'm having difficulties doing the same thing.

--Rick

On Thursday, March 27, 2003, at 03:51 PM, Quinton McCombs wrote:

  

I am having a difficult time figuring out how to properly configure 
Apache 2.0.44 and Tomcat 4.1.12 with virtual hosting.  I am using 
mod_jk2 as my connector.

I have all of this working with Apache 1.3, Tomcat 4.1, and 
mod_webapp

In my testing environment, I have a servlet based 
application that is   

available over https and http.

On the tomcat side, I have defined the default host and one virtual 
host.  The virtual host (test.nequalsone.com) has a non-default 
appBase. The intent here is to only allow access to the application 
through test.nequalsone.com although the server can be accessed by 
serveral names.

On the Apache side, I am using name based virtual hosting.  
I have one   

host defined to use SSL which should forward requests for my 
application to Tomcat.  I have another virtual host 
(test.nequalsone.com) that is defined to also forward requests to 
tomcat.  I am using JKUriSet to define the mapping to Tomcat.

This seemed to work fine at first but then I noticed that the 
application did not work properly on the SSL version.  My 
application   

did not detect that it was being accessed over SSL so it was 
generating links using http:// instead of https://.  
Everything else   

appeared to work...

I decided to try creating a second AJP13 connector on tomcat.  The 
second connection has scheme="https" and secure="true".  Both 
connectors are on different ports.  Is this the correct way 
to solve   

this problem so far?

Next, I created a new channel in workers2.properties.  I 
then modified   

the JKSetUri directive for the SSL virtual host to use the new 
channel. This is where things started to go wrong

Checking the jkstatus page showed that the last JKSetUri directive 
over wrote the previous one.  Under the uri runtime info section, I 
had the
following:
Id=0, name=/neo/servlet, host=*, uri=/neo/servlet,
group=ajp13:localhost:8010, context=/

The location that I mapped for both virtual hosts was 
/neo/servlet.

It seems that it should have created two uri mappings with 
different   

hosts.

After running into this problem, I tried setting the mapping in 
workers2.properties.  I was unable to get that working properly. 
Consider the following section from the virtual host in apache.


   ServerName test.nequalsone.com
   DocumentRoot /usr/local/www/test
   Alias /neo /opt/jakarta/test_webapps/neo
   
 JKUriSet group ajp13:localhost:8009
   

I tried all of the following entries in workers2.properties: 
[uri:test.nequalsone.com/neo/servlet]
Group=agp13:localhost:8009

[uri:test.nequalsone.com/neo/servlet/]
Group=agp13:localhost:8009
[uri:test.nequalsone.com/neo/servlet/*]
Group=agp13:localhost:8009
[uri:/neo/servlet]
Group=agp13:localhost:8009
[uri:/neo/servlet/]
Group=agp13:localhost:8009
[uri:/neo/servlet/*]
Group=agp13:localhost:8009
None of them worked.  The log file for the mod_jk2 module reported 
that the file /opt/jakarta/test_webapps/neo/servlet did not exist.

What am I doing wrong here?

Quinton McCombs
NequalsOne - HealthCare marketing tools 
mailto:[EMAIL PROTECTED]
  

http://www.NequalsOne.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]


  


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


Tomcat with Virtual hosting

2003-07-30 Thread Abhinav Gautam
Hi,

I am having serious problems with Tomcat. It just happened that without
any reason the web server stopped responding to JSP requests. I have
restarted Tomcat and Apache several times, but when the index.html
forwards the request to index.jsp, I get an error saying "page not found."
I have checked the server.xml and the httpd.conf files and everything
seems to be fine. Also when I do "netstat -ta" the server seems to be
listening on port 8007.

I have virtual hosting set up in tomcat. There's one primary domain with
an IP address and there are 2 other domains with a different IP (different
from primary, but one IP for both of the other domains) set up on the same
web server.

Any help will be greatly appreciated.

Thanks.
Abhinav





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



tomcat standalone virtual hosting

2004-05-17 Thread Rudolf Feyerkleist
I have a "localhost" host and "test" host. Both contain two webapps: /pkservermanager 
and /pkserver. The test "host" has a seperate connector listening to the port 3030. 
The server.xml content of tomcat is given below. The problem is when I open the 
browser and type http://localhost:3030/pkservermanager/index.htm the 
/pkservermanager/index.html page of localhost (in its docbase) is loaded and not the 
one of test. Does anybody has an idea why this is occurs, and if possible howto fix 
it? I tried to change everything in the server.xml of tomcat but nothing seems to work.
 
Rudolf Feyerkleist
 
 
Directory structure of my tomcat installation under tomcat directory:
/server/webapps/pkserver/
/webapps/pkservermanager/ /** the index.html under this directory isalways loaded **/
/webapps_test/pkserver/
/webapps_test/pkservermangager/  /** the index.html under this directory is never 
loaded **/
 
Content of server.xml
 





































factory

org.apache.catalina.users.MemoryUserDatabaseFactory





pathname

conf/tomcat-users.xml





















































































































































username

sa





password







driverClassName

org.hsql.jdbcDriver





url

jdbc:HypersonicSQL:database











mail.smtp.host

localhost

















 
 


-
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.

virtual hosting - no apache

2004-06-11 Thread Werner van Mook
Hi All,
I want tomcat to serve multiple domains.
Say I have two domains www.karnhuis.nl and www.connecties.com
They both have a different web site. (no alias).
I would like tomcat to serve both sites.
How can I accomplish this?
I tried this in my server.xml :

  


  
  
  
  

  


If I have a look at the manager application I can't see www.karnhuis.nl.
I can't find any reference to www.karnhuis.nl in any of the tomcat 
logfiles.

So what am I doing wrong?
I don't want to use apache in front of tomcat.
Kind Regards
Werner van Mook
Java Lead Developer / Trainer
Connecties Voor Internet BV i.o.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


How setup virtual hosting

2004-09-03 Thread Starting out
Ive used a virtual hosting provider which allows apache/tomcat/ssh/etc
access to each user. How did they accomplish the fff:

1) allow each users in /home/*username/public_html dir to have their
own apache/tomcat daemon, where each user can start stop its own
tomcat
2) each user cannot access other users files (e.g /home, or system files)
3) they can allow each users having own domain name redirected to
their specific user dir
4) they can allow each user register ssl certifcate and apply to
apache? (not sure about this, if this will work on a virtual hosting)

Thanks for any help and a howto will be much appreciated.

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



Virtual Hosting... with 3.2beta6

2000-11-02 Thread Chris Kimpton

Hi,

In the tomcat-apache howto, it describes a means of having virtual hosts with 1 JVM 
using this version tomcat.

...but the example server.xml it gives is actually the excerpt from the apache config 
repeated.

I can't see it fixed in CVS - is there an example somewhere?  

I am trying to do name-based virtual hosts - the example tags in the supplied 
server.xml seem to be doing IP based virtual hosts - so are there supported?

Thanks,
Chris
---
"surely it is madness to accept life as it is and not as it could be"
__
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup



RE: Virtual Hosting Questions

2004-11-17 Thread Shapira, Yoav

Hi,

>1. In development, the clients and tomcat will be on an intranet. I
plan
>to use the hosts files of the client and tomcat boxes to map domain
>names to IP addresses, thereby preempting invocation of DNS, and thus
>exposure of our product-specific domain names to the Internet at-large,
>until the site is deployed publicly.
>
>Question 1: Is this hosts-file approach feasible? Does tomcat care HOW
>domain names
>are mapped to IP addresses?

It's more of a Java networking question that Tomcat question.  I'm not
sure how java's InetAddress class likes hosts files: my guess is they're
ignored.

>Question 2: Why is the host named localhost? From the documentation, I

Localhost is just the default name.  You can substitute any string in
there, and have as many Hosts as you want inside the Engine, but the
Host name must be unique within the Engine.

>expected that only URL's of the form http://localhost:8080/... would be
>handled by this virtual host, but it seems to handle any URL's that map
>to the IP and port of the real host that tomcat serves.

The name of the Host in server.xml is used primarily by Tomcat for
internal management.  It doesn't have that much to do with the host name
in the browser's URL.

>Question 3: How would one configure a 'local' virtual host, i.e. a host
>visible only on the box that runs tomcat?

That's not a Host configuration question.  It's a Connector
configuration issue.  What you would do is define an Engine with a
Connector that only listens on a specific IP address (that of the box
running Tomcat), and define your Host inside that Engine instead of the
default or open Engine.

Yoav



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


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



RE: Virtual Hosting Questions

2004-11-17 Thread Didier McGillis
I did something similar with mine.  I have a server on an intranet.  I have 
my host file setup with names that point to the same ip address.  apache is 
setup with virtual host, each virtual host represents a name (dev1, dev2, 
qa, stage) something like that.  worker2.properties file has those names 
defined seperatly, server.xml has those names in each host area (they are 
setup as seperate tomcat instances).

From: Bill Winspur <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: Virtual Hosting Questions
Date: Wed, 17 Nov 2004 11:52:45 -0700
I need to set up a few virtual hosts for a development project, and being 
new to Tomcat virtual hosts, have a couple of questions:
---
1. In development, the clients and tomcat will be on an intranet. I plan to 
use the hosts files of the client and tomcat boxes to map domain names to 
IP addresses, thereby preempting invocation of DNS, and thus exposure of 
our product-specific domain names to the Internet at-large, until the site 
is deployed publicly.

Question 1: Is this hosts-file approach feasible? Does tomcat care HOW 
domain names
are mapped to IP addresses?
--
The following fragment is extracted from conf/server.xml of the the tomcat 
distribution:


   

Question 2: Why is the host named localhost? From the documentation, I 
expected that only URL's of the form http://localhost:8080/... would be 
handled by this virtual host, but it seems to handle any URL's that map to 
the IP and port of the real host that tomcat serves.
---
Question 3: How would one configure a 'local' virtual host, i.e. a host 
visible only on the box that runs tomcat?
---
Thanks,
Bill

-
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 Hosting Questions

2004-11-17 Thread Caldarale, Charles R
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Subject: RE: Virtual Hosting Questions
> 
> It's more of a Java networking question that Tomcat question.  I'm not
> sure how java's InetAddress class likes hosts files: my guess 
> is they're ignored.

Using the hosts file is the responsibility of the underlying TCP/IP stack, not 
the JRE. This is normally automatic, but may have to be configured on some 
platforms.

> >Question 2: Why is the host named localhost?
> 
> Localhost is just the default name.  You can substitute any string in
> there, and have as many Hosts as you want inside the Engine, but the
> Host name must be unique within the Engine.

I seem to recall seeing code in some component of Tomcat that explicitly 
treated the string "localhost" as 0.0.0.0 (rather than the normal value of 
127.0.0.1), just for this one configuration entry.  This allows listening on 
all IP addresses configured for the TCP/IP stack.

> Question 3: How would one configure a 'local' virtual host, i.e. a host
> visible only on the box that runs tomcat?

Haven't tried it, but putting 127.0.0.1 in there explicitly should prevent 
listening for connection requrests from the network.

 - 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 Hosting Questions

2004-11-17 Thread Steven Lister
you can see it in the logs too  ..

INFO   | jvm 1    | 2004/11/17 15:09:03 | Nov 17, 2004 3:09:03 PM 
org.apache.jk.common.ChannelSocket init
INFO   | jvm 1    | 2004/11/17 15:09:03 | INFO: JK2: ajp13 listening on 
/0.0.0.0:9009

> I seem to recall seeing code in some component of Tomcat that explicitly 
> treated the string "localhost" as 0.0.0.0 (rather than the normal value of 
> 127.0.0.1), just for this one configuration entry. This allows listening on 
> all IP addresses configured for the TCP/IP stack. 
> 
-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


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



Re: Virtual Hosting Questions

2004-11-17 Thread Justin Jaynes
Bill,

I believe I know what you are trying to do.  I have
done the a smiliar thing.  Let me answer your
questions one at a time.

> I need to set up a few virtual hosts for a
> development project, and 
> being new to Tomcat virtual hosts, have a couple of
> questions:

By virtual hosts, I assume you mean multiple domains
all hosted on the same box, like www.firstsite.com,
www.secondsite.com, etc with all different pages being
displayed at each site, with one tomcat server
running.

To do this, you have to get your server.xml
configuration just right, as well as have your hosts
files setup (or DNS entries).  Right now, on my
server, I have four virtual hosts.  I have 4 different
DNS entries all pointing to the same IP.  The
configuration in server.xml makes tomcat point each
address to a different directory with my web content
for each site.

> 1. In development, the clients and tomcat will be on
> an intranet. I plan 
> to use the hosts files of the client and tomcat
> boxes to map domain 
> names to IP addresses, thereby preempting invocation
> of DNS, and thus 
> exposure of our product-specific domain names to the
> Internet at-large, 
> until the site is deployed publicly.
> 

Therefore, without DNS entries, you must put an entry
for each desired virtual host into the hosts file on
each client you wish to have pointing to the server,
with the ip address.

> Question 1: Is this hosts-file approach feasible?

Yes.  Quite feasible.

> Does tomcat care HOW 
> domain names
> are mapped to IP addresses?

Not that I know of.  But I am no expert.

> The following fragment is extracted from
> conf/server.xml of the the 
> tomcat distribution:
> 
>unpackWARs="true" autoDeploy="true"
>   xmlValidation="false"
> xmlNamespaceAware="false">
>  className="org.apache.catalina.logger.FileLogger"
>   directory="logs" 
> prefix="localhost_log." suffix=".txt"
>   timestamp="true"/>
> 
> 

To get each virtual host to direct to its own page,
you must have one whole host entry for each virtual
host where localhost is replaced by the domain that
you desire (e.g. www.firstdomain.com).  Then, within
the host entry, create a context to point to the
proper directory structure.

> Question 2: Why is the host named localhost?

Just a convention of UNIX machines.  You pick any
other name you want for mapping to ip's that you put
in your hosts file or a DNS entry (assuming it is
registered to you).

> I 
> expected that only URL's of the form
> http://localhost:8080/... would be 
> handled by this virtual host, but it seems to handle
> any URL's that map 
> to the IP and port of the real host that tomcat
> serves.

By default (i believe) any name that does not have a
corresponding Host entry in the server.xml file is
routed to the first entry (or something like that) so
your virtual hosts won't split to different pages
until you create a host entry for each one.

> ---
> Question 3: How would one configure a 'local'
> virtual host, i.e. a host 
> visible only on the box that runs tomcat?
> ---

Just put the entry for the desired domain in the hosts
file of only the local machine (the server) and not in
the hosts files on the other machines on the network.

It's that easy.  If I can give any other pointers,
just ask another question.

Good luck,

Justin Jaynes



__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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



Re: Virtual Hosting Questions

2004-11-23 Thread Bill Winspur
Yoav,
Thanks for your feedback. My findings are interleaved below.
Bill.
Question 1: Is this hosts-file approach feasible? Does tomcat care HOW
domain names
are mapped to IP addresses?
   

It's more of a Java networking question that Tomcat question.  I'm not
sure how java's InetAddress class likes hosts files: my guess is they're
ignored.
 

The mapping of domain names to ip's is done (as usual) in the IP stack. 
Thus, using the /hosts /files on
tomcat client and server boxes works fine for development scenarios 
where you do not want to
expose you production domain names to the Internet via DNS. I originally 
asked the question
because the tomcat docs only mention DNS as the mapping agent, which 
seemed overly specific
to me, unless tomcat had some reason to insist on DNS, which is 
apparently not the case.

Question 2: Why is the host named localhost? From the documentation, I
   

<>
Localhost is just the default name. You can substitute any string in
there, and have as many Hosts as you want inside the Engine, but the
Host name must be unique within the Engine.

expected that only URL's of the form http://localhost:8080/... would be
handled by this virtual host, but it seems to handle any URL's that map
to the IP and port of the real host that tomcat serves.
   

The name of the Host in server.xml is used primarily by Tomcat for
internal management.  It doesn't have that much to do with the host name
in the browser's URL.
 

I do not think /just the default name/ is correct. It seems that the 
name attribute value must be a name
that the client and server IP stacks can map to an IP address for the 
configuration to work, which
does have to do with the host name in the browser's URL.

Also, the name 'localhost' seems to be 'magic' in that there is code 
triggered by the occurrence of that
particular name.  As others on the list have pointed out,  a value of 
'localhost' in the 
attribute is mapped to 0.0.0.0, so that the host can respond to requests 
from any domain.

If 'localhost' in this context is magic (I have not checked the source 
to confirm this), the documentation
should make this special usage of 'localhost' explicit. Alternatively, 
it would be much better to make the magic
host name 'any', 'all', or '*', which would avoid overloading 
'localhost' with a special-case meaning that
conflicts with its usual reference to the local IP environment.

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


Re: Virtual Hosting Questions

2004-11-23 Thread karjera

Laba diena.



Dėkojame, kad mums parašėte.

Jūsų atsiųsta žinutė išsaugota mūsų duomenų bazėje.

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



RE: Virtual Hosting Questions

2004-11-23 Thread Shapira, Yoav

Hi,

>The mapping of domain names to ip's is done (as usual) in the IP stack.
>Thus, using the /hosts /files on
>tomcat client and server boxes works fine for development scenarios
>where you do not want to
>expose you production domain names to the Internet via DNS. I
originally
>asked the question
>because the tomcat docs only mention DNS as the mapping agent, which
>seemed overly specific
>to me, unless tomcat had some reason to insist on DNS, which is
>apparently not the case.

Feel free to submit a doc patch for this issue.

>I do not think /just the default name/ is correct. It seems that the
>name attribute value must be a name
> that the client and server IP stacks can map to an IP address for the
>configuration to work, which
>does have to do with the host name in the browser's URL.

Yup, the docs have already been amended for that, now saying that this
must be a network name.

>Also, the name 'localhost' seems to be 'magic' in that there is code
>triggered by the occurrence of that
>particular name.  As others on the list have pointed out,  a value of
>'localhost' in the 
>attribute is mapped to 0.0.0.0, so that the host can respond to
requests
>from any domain.

When you or "others" can show me where in the Catalina code "localhost"
is magic or hard-wired, we can work on a better approach together.

Yoav Shapira http://www.yoavshapira.com



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


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



ip-based virtual hosting

2005-05-20 Thread Mirko
I know name-based virtual hosting works great in Tomcat but I am interested in
setting up ip-based virtual hosting in standalone Tomcat. Is that possible?

/Mirko


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



Tomcat 5.5 Virtual Hosting

2005-09-16 Thread Durfee, Bernard
Okay, after much struggle here is the solution I came up with for
virtual hosting...

1 Machine, 3 DNS Entries - mymachine.me.com, app01.me.com, app02.me.com

==
server.xml - 3 host entries under the Catalina engine:

  
  

  
  

  
  

Notice each host has a separate appBase.
==

==
Create directories for host contexts:
[TOMCAT]/conf/Catalina/app01.me.com
[TOMCAT]/conf/Catalina/app02.me.com

These are the directories that Tomcat will look in to figure out how to
process incoming URLs.

Copy manager.xml from [TOMCAT]/conf/Catalina/localhost to both of these
new directories. This allows you to use the manager to deploy into each
host.
==

==
Start Tomcat, browse to app01.me.com/manager/html, which will bring up
the manager for app01.me.com.

Deploy your application, make sure the WAR file is named with the
context you want. To deploy to the root context you need to name the
WAR: ROOT.war, with 'root' all caps.
==

Bernie


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



Virtual Hosting and SSL

2005-10-10 Thread Justin Jaynes
I am running tomcat 5.5.12 and need to host two sites,
both with ssl.  Obviously one SSL cert/keystore will
not do for two sites.  I understand that SSL is IP
based  because the http header is not read until after
the connection is established.

I know you can configure tomcat to do virtual hosting
based on IP's by adding IPVHost="true" to connectors
in server.xml file.  but you have to specify the
keystore a connector will use PER the connector--NOT
THE HOST.  So even though I can distinguish between IP
addresses, it is too late already.  The connector has
already opened the keystore--without understanding
which IP address the request has come from.

Can you set up two connectors (one port 443 and one
port 80) for one specific ip address and another set
of connectors for another ip address?  This seems to
me (and I am sometimes wrong) the logical way tomcat
should work.  What good is virtual hosting capability
based on IP's if you can't use SSL in conjunction with
them?  Everybody needs some SSL these days for
something or other.

Can you tell jsvc to make the daemon listen only on
one ip address when you start it, and simply start two
dameons listening to different IP's (which would mean
two servers running on my machine, and NOT the
scenario I would prefer)?

I hope some very seasoned pserson can help me.  This
list has never failed me yet and I have been asking
questions for over a year.

Mad-Props to all of you!  Thanks for everything.

Justin






__ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/

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



virtual hosting for muliple applications

2002-08-18 Thread Alon Lutzker

Hi All,

I'm a bit new to the whole tomcat/apache/mod_jk thing, so I was looking for
some advice on virtual hosting.

I would like to run tomcat with 2-3 different applications, with 2-5
loadballanced tomcat instances for each application. from "RTFMing", I have
seen that the way to do this would be using virtual hosts.



The architecture that I'm trying to implement looks like this:
httpserver[Virtual host 1.1.1.1] >> tomcatserver [application1_instance01]
httpserver[Virtual host 1.1.1.1] >> tomcatserver [application1_instance02]
httpserver [virtual host 1.1.1.2 >> tomcatserver [application2_instance01]
httpserver [virtual host 1.1.1.2 >> tomcatserver [application2_instance02]
Each java application is different, and I can't have users that go to the
website 1.1.1.1 going to website 1.1.1.2.

I found some excellent documents on this subject, but it wasn't clear to me
if I could do use these with completely different applications. The seemed
to be relevant only for different instances of the same applications via
different virtual hosts.

Has anyone had any experience with such an architecture?

Here are the docs that I have seen:

http://carnagepro.com/pub/Docs/Tomcat/tomcat-apache-howto.html#virtual_hosti
ng

Thanks,

Alon Lutzker, System Administrator
Check Point Software Technologies, Ltd.
Email: [EMAIL PROTECTED]
Phone: 972 - 3 - 7534673
Fax: 972 - 3 - 575-9256
Mobile: 972 - 57 - 774481 (MIRS)


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




virtual hosting for muliple applications

2002-08-19 Thread Alon Lutzker




Hi All,

I'm a bit new to the whole tomcat/apache/mod_jk thing, so I was looking for
some advice on virtual hosting.

I would like to run tomcat with 2-3 different applications, with 2-5
loadballanced tomcat instances for each application. from "RTFMing", I have
seen that the way to do this would be using virtual hosts.



The architecture that I'm trying to implement looks like this:
httpserver[Virtual host 1.1.1.1] >> tomcatserver [application1_instance01]
httpserver[Virtual host 1.1.1.1] >> tomcatserver [application1_instance02]
httpserver [virtual host 1.1.1.2 >> tomcatserver [application2_instance01]
httpserver [virtual host 1.1.1.2 >> tomcatserver [application2_instance02]
Each java application is different, and I can't have users that go to the
website 1.1.1.1 going to website 1.1.1.2.

I found some excellent documents on this subject, but it wasn't clear to me
if I could do use these with completely different applications. The seemed
to be relevant only for different instances of the same applications via
different virtual hosts.

Has anyone had any experience with such an architecture?

Here are the docs that I have seen:

http://carnagepro.com/pub/Docs/Tomcat/tomcat-apache-howto.html#virtual_hosti
ng

Thanks,

Alon Lutzker, System Administrator
Check Point Software Technologies, Ltd.
Email: [EMAIL PROTECTED]
Phone: 972 - 3 - 7534673
Fax: 972 - 3 - 575-9256
Mobile: 972 - 57 - 774481 (MIRS)


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




virtual hosting tomcat and apache

2002-08-20 Thread Jaco . Smuts

Hello all

Thank you RS for
http://mikal.org/interests/java/tomcat/archive/view?mesg=57650 . You partly
address my question. Unfortunately no one responded, I will presume that
indicates a correct answer.

My scenario: 
I currently run a Server with Apache1.3 on Linux. Some of the virtual hosts
have separate Tomcat4.0 instances (one for each virtual host that requires
it) as servlet-containers. A few developers (10) make use of my server to
host their sites. Some of them only have html content and only use Apache.
Some of them have more than one site (virtual host) but only one virtual
host that requires a servlet-engine. Some of them require more than instance
of the servlet-engine.  

What I have in mind is the following:
I plan to stick to Apache 1.3 for now and Tomcat 4.0 (I'm tempted to use
4.1, I really like the added features). I am trying to find the optimum
set-up with regards to performance and also resource requirements on the
server. I will use one instance of Apache1.3. I will use RedHat 7.3. Each
developer (that requires a servlet-engine) will have one instance of
Tomcat4. If a developer has more than one site that requires Tomcat I will
make use of Tomcat (virtual) hosts to cater for each host. I intend to use
mod_webapp (I am currently using mod_webapp).

My questions:
- Should I use mod_webapp or mod_jk (with JK 2 in mind) ? 
- I'm using different instances of Tomcat for each developer for security
reasons. Would it be possible to share a tomcat instance between more
developers (without increasing the security risk) ?
- I'm sticking to Apache 1.3 because I'm more comfortable that the
connectors are working properly, I've read that the performance gains from
Apache2 isn't all that great on Linux, I'm comfortable that I can configure
Apache1.3.x. Should I consider upgrading to Apache2 or should I wait a while
for the connections between apache2 and tomcat4 to mature ?

Thank you for any-one interested in assisting me. I will gladly provide more
information if I've missed something. I also plan on documenting my new
set-up including .conf files and directory structures should any-one be
interested in reviewing my attempt.

Kind Regards
Jaco Smuts

btw. I can't seem to find a RedHat (V5 ?) boot up script that sufficiently
takes care of starting up Tomcat (as a designated user) and Apache in the
right sequence. I don't use rpm's but the one that comes with the Tomcat 4
rpm is probably the best I've seen up till now. But that forces me to
consider their file structure (fhs compliant, probably better but I find it
confusing - got lots to learn).










This message contains information intended solely for the addressee,
which is confidential or private in nature and subject to legal privilege.
If you are not the intended recipient, you may not peruse, use,
disseminate, distribute or copy this message or any file attached to this
message. Any such unauthorised use is prohibited and may be unlawful. If
you have received this message in error, please notify the sender
immediately by e-mail, facsimile or telephone and thereafter delete the
original message from your machine. 
 
Furthermore, the information contained in this message, and any
attachments thereto, is for information purposes only and may contain the
personal views and opinions of the author, which are not necessarily the
views and opinions of Dimension Data (South Africa) (Proprietary) Limited
or is subsidiaries and associated companies ("Dimension Data"). Dimension
Data therefore does not accept liability for any claims, loss or damages
of whatsoever nature, arising as a result of the reliance on such
information by anyone. 
 
Whilst all reasonable steps are taken to ensure the accuracy and
integrity of information transmitted electronically and to preserve the
confidentiality thereof, Dimension Data accepts no liability or
responsibility whatsoever if information or data is, for whatsoever
reason, incorrect, corrupted or does not reach its intended destination.  



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




RE: Virtual Hosting and Contexts

2002-09-19 Thread Anthony Milbourne

Hi

I have been trying to get Tomcat Contexts mapped to the root of an Apache
VirtualHost.  I did what you did too (under instruction from this list), and
used:

Which successfully mapped the context to the root of the VirtualHost if I
connected direct to Tomcat.  It didn't seem to work for connections via
Apache though.  I then discovered that the auto-generated config file for
mod_jk didn't have any mappings for my root context.  If I changed the path
to a non empty string then mappings were generated.  This seems to be a bug
but I may have just done something wrong.

The way I got round it was to use a non-empty path in order to get Tomcat to
generate some mappings.  Then I cut and pasted those mappings into
httpd.conf and edited them to what I wanted.  It is a cludge but it is
working as far as I can see.

I hope that helps,

Anthony.

> -Original Message-
> From: Brian Topping [SMTP:[EMAIL PROTECTED]]
> Sent: 17 September 2002 15:03
> To:   Tomcat Users List (E-mail)
> Subject:  Virtual Hosting and Contexts
> 
> Good day,
> 
> I'm rather new to setting up vhosting on Tomcat, but am quite familiar
> with
> it on Apache.  I am having some problems understanding the correct
> configuration to set up a root context on each apache virtual host, and
> was
> hoping someone here might be able to offer some pointers.
> 
> Basically, I would like to have a different Tomcat context mapped to the
> root
> of each Apache .  I am able to map a context with a
> different
> name to each site, in other words, one url http://a.foo.com/a-context/ and
> another http://b.foo.com/b-context, but not simply http://a.foo.com where
> the
> root goes to a-context and http://b.foo.com where the root goes to
> b-context.
> Httpd and Tomcat are on separate machines, for development httpd is on
> SuSE
> and Tomcat is on W2K, for deployment both with be on SuSE.
> 
> I've taken a look at the autoconfiguration stuff, but it's leaving me lost
> in
> the weeds, and I don't mind maintaining the stuff manually anyway, so if
> you
> could, please help me focus on that.  I'm using httpd 1.3.36 with Tomcat
> 4.0.4 and the mod_jk 4.0.4 connectors under DSO with EAPI.  
> 
> Of course what I have below isn't working.  Can someone help me understand
> what I am missing?  My problem is in the context mapping stuff, otherwise
> all
> the connectors are confirmed to be working.
> 
> Thanks a million for your consideration!!
> 
> Brian
> 
> #=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#
> 
> 
>   
>   
>className="org.jboss.web.catalina.Log4jLogger" verbosityLevel="trace"
> category="org.jboss.web.localhost.Engine"/>
>   
>className="org.apache.catalina.valves.AccessLogValve"
> prefix="localhost_access" suffix=".log" pattern="common"
> directory="../server/default/log"/>
>docBase="C:/dev/jboss-3.0.1_tomcat-4.0.4/server/default/deploy/root.war"
> debug="0"/>
>   
>   
>className="org.apache.catalina.valves.AccessLogValve"
> prefix="localhost_access" suffix=".log" pattern="common"
> directory="../server/default/log"/>
>docBase="C:/dev/jboss-3.0.1_tomcat-4.0.4/server/default/deploy/jmx-console
> .wa
> r" debug="0"/>
>   
>   
>   
>className="org.apache.catalina.connector.http.HttpConnector" port="80"
> minProcessors="3" maxProcessors="10" enableLookups="true" acceptCount="10"
> debug="5" connectionTimeout="6"/>
>port="11009" minProcessors="5" maxProcessors="75" acceptCount="10"/>
>   
> 
> 
> #=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#
> 
> 
> DocumentRoot "/usr/local/httpd/htdocs/a.digidemic.com"
> ServerName a.digidemic.com
> Alias /dav /usr/local/httpd/htdocs/a.digidemic.com
> 
> DAV On
>  UNLOCK>
> AuthUserFile /usr/local/httpd/htdocs/users
> AuthType Basic
> AuthName WebDAV
> Require user topping
> 
> 
> JkMount /* tomcat1
> 
> 
> 
> DocumentRoot "/usr/local/httpd/htdocs/b.digidemic.com"
> 

RE: Virtual Hosting and Contexts

2002-09-20 Thread Brian Topping

Hi Anthony!

Cool, I'll try those suggestions, thanks!

I've actually started spending more time on the JBoss container facilities
that wrap Tomcat, since that's probably what I am going to be deploying on.
There is some interesting code that has been developed there that allows
Tomcat to be configured externally by parsing and manipulating the container
objects directly.  It looks cumbersome but doable.  I suspect that JBoss is
focusing on Jetty lately because Jules Gosnell (the lead on the Jetty
project) is much more active with supporting Jetty on JBoss than anyone is
for Tomcat on JBoss.  

I think Tomcat is a better container in many ways and may be for some time to
come, but this rift between JBoss and Tomcat is painful from a user
perspective.  I wish people on both sides could realize that we are all on
the same team.  Ah, to be idealist.  :)

More as I get it...

-b

> -Original Message-
> From: Anthony Milbourne [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 7:29 AM
> To: 'Tomcat Users List'
> Subject: RE: Virtual Hosting and Contexts
> 
> 
> Hi
> 
> I have been trying to get Tomcat Contexts mapped to the root 
> of an Apache
> VirtualHost.  I did what you did too (under instruction from 
> this list), and
> used:
> 
> Which successfully mapped the context to the root of the 
> VirtualHost if I
> connected direct to Tomcat.  It didn't seem to work for 
> connections via
> Apache though.  I then discovered that the auto-generated 
> config file for
> mod_jk didn't have any mappings for my root context.  If I 
> changed the path
> to a non empty string then mappings were generated.  This 
> seems to be a bug
> but I may have just done something wrong.
> 
> The way I got round it was to use a non-empty path in order 
> to get Tomcat to
> generate some mappings.  Then I cut and pasted those mappings into
> httpd.conf and edited them to what I wanted.  It is a cludge but it is
> working as far as I can see.
> 
> I hope that helps,
> 
>   Anthony.
> 
> > -Original Message-
> > From:   Brian Topping [SMTP:[EMAIL PROTECTED]]
> > Sent:   17 September 2002 15:03
> > To: Tomcat Users List (E-mail)
> > Subject:Virtual Hosting and Contexts
> > 
> > Good day,
> > 
> > I'm rather new to setting up vhosting on Tomcat, but am 
> quite familiar
> > with
> > it on Apache.  I am having some problems understanding the correct
> > configuration to set up a root context on each apache 
> virtual host, and
> > was
> > hoping someone here might be able to offer some pointers.
> > 
> > Basically, I would like to have a different Tomcat context 
> mapped to the
> > root
> > of each Apache .  I am able to map a context with a
> > different
> > name to each site, in other words, one url 
> http://a.foo.com/a-context/ and
> > another http://b.foo.com/b-context, but not simply 
> http://a.foo.com where
> > the
> > root goes to a-context and http://b.foo.com where the root goes to
> > b-context.
> > Httpd and Tomcat are on separate machines, for development 
> httpd is on
> > SuSE
> > and Tomcat is on W2K, for deployment both with be on SuSE.
> > 
> > I've taken a look at the autoconfiguration stuff, but it's 
> leaving me lost
> > in
> > the weeds, and I don't mind maintaining the stuff manually 
> anyway, so if
> > you
> > could, please help me focus on that.  I'm using httpd 
> 1.3.36 with Tomcat
> > 4.0.4 and the mod_jk 4.0.4 connectors under DSO with EAPI.  
> > 
> > Of course what I have below isn't working.  Can someone 
> help me understand
> > what I am missing?  My problem is in the context mapping 
> stuff, otherwise
> > all
> > the connectors are confirmed to be working.
> > 
> > Thanks a million for your consideration!!
> > 
> > Brian
> > 
> > #=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#
> > 
> > 
> > 
> > 
> >  > className="org.jboss.web.catalina.Log4jLogger" 
> verbosityLevel="trace"
> > category="org.jboss.web.localhost.Engine"/>
> > 
> >  > className="org.apache.catalina.valves.AccessLogValve"
> > prefix="localhost_access" suffix=".log" pattern="common"
> > directory="../server/default/log"/>
> >  > 
> docBase="C:/dev/jboss-3.0.1_tomcat-4.0.4/server/default/deploy
> /root.war"
> 

JK2 connector and virtual hosting

2002-10-21 Thread Umberto Nicoletti
Hi all,
I succeeded in configuring apache 2.0.43 and tomcat 4.1.12 to talk to
each other via jk2.

Still I have a couple of questions:

1) I am using name based virtual hosting and have the following problem:
the main/default site will be reached through its IP address because of
customers coming from extranet. This way I cannot get the jk2 connector
to handle jsp pages, unless i put a uri mapping like this in
workers2.properties: [uri:10.0.0.10/*.jsp]. Is this the way it should be
or am I missing something?

2) for each vhost I must add an uri mapping in workers2.properties. Is
this intentional? Is there any way to specify a global uri like
[uri:*/*.jsp]?

3) for better security should I use a network socket or a unix socket to
connect apache and tomcat (they're on the same box)? Has anyone
suggestions on setting up a secure configuration?

I have also looked through the code and it looks like item 2 is not
possible, but I did not spend too much time on it, just a quick tour.
I can post my conf files, if that's necessary.

Thanks in advance,

-- 
Umberto Nicoletti - [EMAIL PROTECTED] | [EMAIL PROTECTED]
Tel. 049-8239380 (assistenza)

"We'll try to make different mistakes this time." - Larry Wall

--
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 Hosting without Apache?

2002-11-12 Thread Jose Antonio Martinez
tomcat can serve static and jsp/servlets request. It
can be used for virtual hosting itself but considere
that static request are served faster with apache.


 --- John Menke <[EMAIL PROTECTED]> escribió: > Do you
need Apache to do Virtual Hosting with
> Tomcat?  Can tomcat handle by
> itself?
> 
> -jm
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-user-help@;jakarta.apache.org>
>  

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

--
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 Hosting without Apache?

2002-11-12 Thread Turner, John

No, you do not need Apache.

In Tomcat, virtual hosts are configured via Host elements in server.xml.

John


> -Original Message-
> From: John Menke [mailto:jm@;basebeans.com]
> Sent: Tuesday, November 12, 2002 6:52 AM
> To: Tomcat Users List
> Subject: Virtual Hosting without Apache?
> 
> 
> Do you need Apache to do Virtual Hosting with Tomcat?  Can 
> tomcat handle by
> itself?
> 
> -jm
> 
> 
> --
> 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>




apache virtual Hosting with tomcat

2001-04-18 Thread C.M. Rahman (jr.)

Hi, I am using unix apache to do virtual hosting. I have recently added
tomcat and trying to configure virtual hosting. Is there anybody on the list
setup a virtual site with tomcat successfully?

I am failing to load servlet from virtual site.

Thanks
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
C.M. Rahman
Network Engineer
CCS Internet
13740 Research Blvd. Suite O-4
Austin, TX 78758
[EMAIL PROTECTED]




Virtual hosting on different ports

2001-05-08 Thread Sean Pritchard

Hi,

I'm trying to set up virtual hosting based on the port a request came in on
(i.e. if the request is on port 80, one context is returned, port 5150
results in another).  I tried the settings below in my server.xml file but
my requests to the 5150 port were routed to the context at port 80.  Does
anyone have any suggestions for how to make this work?

Thanks,
Sean
 





  







   

  
   



Sean Pritchard
[EMAIL PROTECTED]
(919) 941-4201
fax (919) 941-4188
.
facilis venire, facilis exire




Configuring ISP with virtual hosting

2002-04-07 Thread Stefan Lindgren

Hi all,

I'm having some problems getting a proper ISP setup with 
Tomcat/Apache/Virtual hosting. Hopefully some can guide me/correct me:).

1. I need all customers to have a own setup. I have defined 
CATALINA_BASE for every user and in that dir a server 
structure(webapps/logs e t c)
2.  In the virtual host directive I point all requests to a separate 
port:

### Java 
JkWorkersFile /XXX/JavaConfig/workers.properties
JkLogFile //JavaConfig/mod_jk.log
JkLogLevel debug


   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot /some/dir
   ServerName www.X.com
   JkMount *.jsp ajp13://java..com:23002/
   JkMount /servlets/* ajp13://java..com:23003/


As I understand it that should be it. Then there should be a server.xml 
file that answers to that port and a corresponding application in 
webapps. Right?

Is this correct or is it a better way of doing this?
Does someone have a good example setup URL?

Regards
/stefan


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Virtual Hosting with Appache/Tomcat

2002-04-13 Thread Huang Hai - ES/BJ

Dear Sir,

Stupid question from me,

I am using Apache 1.3.20 and Tomcat 3.2.3. It can work without virtual hosting 
or just apache virtual hosting.( I am using same IP, different port), but I can 
not config Tomcat hosting.

Please note my application is not put under TOMCAT_HOME/webapps, but 
/myapplication/server1 and /myapplication/server2.

Here is the configuration file relative to the virtual hosting,

Apache
==
NameVirtualHost MyServer_IP


DocumentRoot /myapplication/server1
ServerName MyServer_Name
JkMount /*.jsp ajp12



DocumentRoot /myapplication/server2
ServerName MyServer_Name
JkMount /fs/*.jsp ajp12


Tomcat
==

   




   



When I browse my jsp file and I got an error message,
Not Found (404)

I checked the jsp log and found that the jsp enginee tried to find the jsp file 
from 
RealPath: /usr/tomcat/webapps/ROOT/my.jsp

if I move the context configuration from the  directives, it can work 
without virtual hosting.

Thanks for your help in advance. 
Hai


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Virtual hosting with IIS

2001-07-03 Thread Everitt, Andrew

Markus,

Go in to IIS admin console and right click the computer icon, select
properties. In 'Master Properties' select 'WWW Service' and click the 'Edit
...' button this will bring up the default properties page for all virtual
server's on the computer - set the things you want set globally and you're
done.

Cheers,
Andi.

> -Original Message-
> From: Markus Strickler [mailto:[EMAIL PROTECTED]]
> Sent: 03 July 2001 10:53
> To: [EMAIL PROTECTED]
> Subject: Virtual hosting with IIS
> 
> 
> Hi!
> I have several IIS webserver instances running on different 
> ports on the
> same IP.
> Now I need to map the *.xml extension to Cocoon for all instances.
> Anybody an idea how to set this up?
> 
> I'm using IIS5, Tomcat-3.2.2, JDK1.3
> 
> Any help would be appreciated,
> 
> -markus
> 



Re: Virtual hosting with IIS

2001-07-03 Thread Markus Strickler

Andi-

actually which parameters to set, is the problem.
For example I have two server instances with their doc roots at
C:\server1 and c:\server2

a) If I access a file from server1 like this:
http://server:9000/index.xml
I need the Cocoon servlet being invoked and the path C:\server1\index.xml
passed to it.
b) If I access a file from server2 like this:
http://server:9001/index.xml
I need the servlet being invoked and the path C:\server2\index.xml passed to
it.

The best solution would be if in case a) and b) different servlet contexts
could be invoked.

Any idea how to accomplish this?

Note that I have several dozens of web servers, so using a separate JVM for
each is ruled out.

Thanks for any help

 -markus
- Original Message -
From: "Everitt, Andrew" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 12:44 PM
Subject: RE: Virtual hosting with IIS


> Markus,
>
> Go in to IIS admin console and right click the computer icon, select
> properties. In 'Master Properties' select 'WWW Service' and click the
'Edit
> ...' button this will bring up the default properties page for all virtual
> server's on the computer - set the things you want set globally and you're
> done.
>
> Cheers,
> Andi.
>
> > -Original Message-
> > From: Markus Strickler [mailto:[EMAIL PROTECTED]]
> > Sent: 03 July 2001 10:53
> > To: [EMAIL PROTECTED]
> > Subject: Virtual hosting with IIS
> >
> >
> > Hi!
> > I have several IIS webserver instances running on different
> > ports on the
> > same IP.
> > Now I need to map the *.xml extension to Cocoon for all instances.
> > Anybody an idea how to set this up?
> >
> > I'm using IIS5, Tomcat-3.2.2, JDK1.3
> >
> > Any help would be appreciated,
> >
> > -markus
> >
>
>




RE: Virtual hosting with IIS

2001-07-03 Thread Everitt, Andrew

To get the mapping to happen you need to configure your
uriworkermap.properties file (in the tomcat 'conf' directory) to pickup xml
files:
#
# Simple worker configuration file
#

# Catch all XML files and pass to Tomcat
*.xml=ajp12

As I understand it this should cause all .xml files requested to IIS to have
the request passed to tomcat. You then need tomcat to pickup the xml files
and pass them thro' your servlet, you achieve this in web.xml using a
mapping.

Andi.

> -Original Message-
> From: Markus Strickler [mailto:[EMAIL PROTECTED]]
> Sent: 03 July 2001 12:31
> To: [EMAIL PROTECTED]
> Subject: Re: Virtual hosting with IIS
> 
> 
> Andi-
> 
> actually which parameters to set, is the problem.
> For example I have two server instances with their doc roots at
> C:\server1 and c:\server2
> 
> a) If I access a file from server1 like this:
> http://server:9000/index.xml
> I need the Cocoon servlet being invoked and the path 
> C:\server1\index.xml
> passed to it.
> b) If I access a file from server2 like this:
> http://server:9001/index.xml
> I need the servlet being invoked and the path 
> C:\server2\index.xml passed to
> it.
> 
> The best solution would be if in case a) and b) different 
> servlet contexts
> could be invoked.
> 
> Any idea how to accomplish this?
> 
> Note that I have several dozens of web servers, so using a 
> separate JVM for
> each is ruled out.
> 
> Thanks for any help
> 
>  -markus
> - Original Message -
> From: "Everitt, Andrew" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 03, 2001 12:44 PM
> Subject: RE: Virtual hosting with IIS
> 
> 
> > Markus,
> >
> > Go in to IIS admin console and right click the computer icon, select
> > properties. In 'Master Properties' select 'WWW Service' and 
> click the
> 'Edit
> > ...' button this will bring up the default properties page 
> for all virtual
> > server's on the computer - set the things you want set 
> globally and you're
> > done.
> >
> > Cheers,
> > Andi.
> >
> > > -Original Message-
> > > From: Markus Strickler [mailto:[EMAIL PROTECTED]]
> > > Sent: 03 July 2001 10:53
> > > To: [EMAIL PROTECTED]
> > > Subject: Virtual hosting with IIS
> > >
> > >
> > > Hi!
> > > I have several IIS webserver instances running on different
> > > ports on the
> > > same IP.
> > > Now I need to map the *.xml extension to Cocoon for all instances.
> > > Anybody an idea how to set this up?
> > >
> > > I'm using IIS5, Tomcat-3.2.2, JDK1.3
> > >
> > > Any help would be appreciated,
> > >
> > > -markus
> > >
> >
> >
> 



Re: virtual hosting conf question

2001-07-26 Thread Kaneda K

I Might be wrong, but in order to allow Apache to communicate with tomcat, 
you need to use ajp13 instead of 12. and did you correctly set mod_jk.so. ?

At 07:01 26/07/2001 +0800, you wrote:
>Hi All,
>
>We are using Tomact3.2.3 and Apache1.3.20 with mod_jk.so.
>
>it works fine when use Directory:
>
> Alias /loc "/home/.../path"
>
> 
> Options Indexes FollowSymLinks
> 
> JkMount /loc/servlet/* ajp12
> JkMount /loc/*.jsp ajp12
>
>But when trying virtual hosting:
>
>NameVirutalHost ip
>
> 
> ServerName <http://www.domain.com>www.domain.com
> DocumentRoot "/home/.../path"
> JkMount /servlet/* ajp12
> JkMount /*.jsp ajp12
> 
> Options Includes Indexes FollowSymlinks
> AllowOverride AuthConfig FileInfo Indexes Limit Options
> Order allow, deny
> Allow from all
> 
>
> 
>
>WE are geting 404 error for all .jsp files and looks like the apache to 
>tomcat redirect not works
>
>anything missing?
>
>
>TIA
>
>Jerry
>
>
>
>
>




Re: virtual hosting conf question

2001-07-26 Thread Jerry QU

it works by using ajp12. what I missed was vhost setting in server.xml. and I did in 
right way but the code was actually comment out . a very very stupid mistake

thanks anyway

Jerry


 
- Original Message - 
From: "Kaneda K" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 4:45 PM
Subject: Re: virtual hosting conf question


> I Might be wrong, but in order to allow Apache to communicate with tomcat, 
> you need to use ajp13 instead of 12. and did you correctly set mod_jk.so. ?
> 
> At 07:01 26/07/2001 +0800, you wrote:
> >Hi All,
> >
> >We are using Tomact3.2.3 and Apache1.3.20 with mod_jk.so.
> >
> >it works fine when use Directory:
> >
> > Alias /loc "/home/.../path"
> >
> > 
> > Options Indexes FollowSymLinks
> > 
> > JkMount /loc/servlet/* ajp12
> > JkMount /loc/*.jsp ajp12
> >
> >But when trying virtual hosting:
> >
> >NameVirutalHost ip
> >
> > 
> > ServerName <http://www.domain.com>www.domain.com
> > DocumentRoot "/home/.../path"
> > JkMount /servlet/* ajp12
> > JkMount /*.jsp ajp12
> > 
> > Options Includes Indexes FollowSymlinks
> > AllowOverride AuthConfig FileInfo Indexes Limit Options
> > Order allow, deny
> > Allow from all
> > 
> >
> > 
> >
> >WE are geting 404 error for all .jsp files and looks like the apache to 
> >tomcat redirect not works
> >
> >anything missing?
> >
> >
> >TIA
> >
> >Jerry
> >
> >
> >
> >
> >
> 



virtual hosting behind a firewall

2002-02-14 Thread James Moore

Hello has anyone got virtual hosting of several jsp sites on an
apache/tomcat 3.2.x server behind a firewall working and visible from the
Internet working?

If so, what inbound tunnels/port forwarding do you need to setup?

I use Win2K Server's RRAS (routing and remote access) NAT features to give
the apache/tomcat server access to the Internet (along with the rest of the
LAN).

I can only seem to get the first virtual server working properly. The others
seem to have problems displaying images or display content from the first
virtual server.

Best Regards

James Moore
IT Consultant
e-Travelbase Limited
~~~
The Granary
Pury Hill Business Park
Alderton Road, Nr. Towcester
Northamptonshire NN12 7TB
Tel: +44 (0)1327 810640
Fax: +44 (0)1327 811075
Email: [EMAIL PROTECTED]
~~~


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




help about tomcat virtual hosting...

2001-02-14 Thread Jino Lee


I'm using apache 1.3.17 + tomcat 3.2.1 + red-hat 6.2.

Every time I add a virtual host, I have to restart apache and tomcat.
During the restart, the visitors will loose all connection to the site is there anyway 
to add a virtual host without restarting the server?

Currentl, I'm only using tomcat3.2.1 for web service. Is there a way to refresh 
additional virtual hosts without restarting the server?



Re: problem with virtual hosting

2001-04-02 Thread Kieran Barry

On Mon, 2 Apr 2001, Christopher Shade wrote:

> I tried to map www.domain.com to www.domain.com/webapp by using
> ServerName and ServerAlias in the config file, but it's not working.
> Below is what I tried in my-tomcat-apache.conf.  What am I doing wrong?
> Is there a better way to map a domain to a webapp?  Thanks!
> ...Christopher
> 
> ### my-tomcat-apache.conf #
> 
> LoadModule jserv_module libexec/mod_jserv.so
> ApJServManual on
> ApJServDefaultProtocol ajpv12
> ApJServSecretKey DISABLED
> ApJServMountCopy on
> ApJServLogLevel notice
>  
> ApJServDefaultPort 8010
> 
> # Name the Virtual Host IP
> NameVirtualHost ...server IP is here...
>  
> # Define the Virtual Hosts
> 
> ServerName www.domain.com/fas
> ServerAlias www.domain.com
> ApJServMount /fas ajpv12://www.domain.com:8010/fas
> DocumentRoot /usr/local/apache/prod/htdocs/fas
> 
> 
> AddType text/jsp .jsp
> AddHandler jserv-servlet .jsp
> 
> ...and the Alias entries for my webapps...
> 
> 
> 
Something to look at would be RedirectMatch or Redirect.

Stick in something like:

Redirect / http://www.domain.com/fas

in the Virtualhost.

Of course, I could be wrong.

regards

Kieran




Re: problem with virtual hosting

2001-04-02 Thread Kieran Barry

Doh!

On Mon, 2 Apr 2001, Kieran Barry wrote:

> On Mon, 2 Apr 2001, Christopher Shade wrote:
> 
> > I tried to map www.domain.com to www.domain.com/webapp by using
> > ServerName and ServerAlias in the config file, but it's not working.
> > Below is what I tried in my-tomcat-apache.conf.  What am I doing wrong?
> > Is there a better way to map a domain to a webapp?  Thanks!
> > ...Christopher
> > 
> > ### my-tomcat-apache.conf #
> > 
> > LoadModule jserv_module libexec/mod_jserv.so
> > ApJServManual on
> > ApJServDefaultProtocol ajpv12
> > ApJServSecretKey DISABLED
> > ApJServMountCopy on
> > ApJServLogLevel notice
> >  
> > ApJServDefaultPort 8010
> > 
> > # Name the Virtual Host IP
> > NameVirtualHost ...server IP is here...
> >  
> > # Define the Virtual Hosts
> > 
> > ServerName www.domain.com/fas
> > ServerAlias www.domain.com
> > ApJServMount /fas ajpv12://www.domain.com:8010/fas
> > DocumentRoot /usr/local/apache/prod/htdocs/fas
> > 
> > 
> > AddType text/jsp .jsp
> > AddHandler jserv-servlet .jsp
> > 
> > ...and the Alias entries for my webapps...
> > 
> > 
> > 
> Something to look at would be RedirectMatch or Redirect.
> 
> Stick in something like:
> 
> Redirect / http://www.domain.com/fas
> 
> in the Virtualhost.
> 
> Of course, I could be wrong.
> 
And I am!
This would rewrite everything which included / in its path.

Try 
RedirectMatch /$ http://www.domain.com/fas

Sorry about the mistake.

Regards

Kieran




  1   2   3   >