Thanks much for the clarification.In this case, how do I nominate the default 
virtual host?
Is there something called default connector, such as that which may be needed if
a request arrives into an unconfigured loopback address (say, 127.0.0.200)?

My second issue is perhaps more serious: is there an underlying assumption with
virtual hosts that they are bound by distinct security constraints? I mean, is 
there
an implicit assumption, for instance, that distinct virtual hosts would use 
distinct SSL certificates?

I plan to (rather, need to) use the same SSL certificate for all vHosts.

Thanx again!

/U

----- Original Message -----
From: Jeffrey Janner 
To: Tomcat Users List 
Sent: Wed, 29 Jul 2009 20:21:47 +0000 (UTC)
Subject: RE: IP-based virtual hosting with Tomcat(6)

Well, Chris is almost correct here.  But Connectors are nested as the Service 
level, not at the Engine level. The engine doc he refers you to even specifies 
this at the top of the page.  Here is the way to do it correctly:


  
  
  
    
  


Add a properly configured  tag group to your web.xml and you can even have http 
requests automatically re-routed to https.

Jeff

-----Original Message-----
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Wednesday, July 29, 2009 2:58 PM
To: Tomcat Users List
Subject: Re: IP-based virtual hosting with Tomcat(6)


You can bind  elements to a specific IP address using the
"address" attribute. You can nest  elements within an
 element, like this:

   
    
    
   

   
    
    
   

This should allow you to have different SSL certs for each "site"
(represented by each  element).

See the following references:
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html
http://tomcat.apache.org/tomcat-6.0-doc/config/engine.html

- -chris


*******************************  NOTICE  *********************************
This message is intended for the use of the individual or entity to which 
it is addressed and may contain information that is privileged, 
confidential, and exempt from disclosure under applicable law.  If the 
reader of this message is not the intended recipient or the employee or 
agent responsible for delivering this message to the intended recipient, 
you are hereby notified that any dissemination, distribution, or copying 
of this communication is strictly prohibited.  If you have received this 
communication in error, please notify us immediately by reply or by 
telephone (call us collect at 512-343-9100) and immediately delete this 
message and all its attachments.

Reply via email to