You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Greg Jewell <GM...@raytheon.com> on 2008/02/15 15:30:48 UTC
Selective ports without virtual hosts
Hello,
I have a webapp that has two servlets in it. I would like one of the
servlets to respond when a client connects to an SSL port, and the other
to respond when a client connects to a non-SSL port. Each servlet has a different mapping in the web.xml.
Basically, I want to allow this:
https://host/app/a
http://host/app/b
and disallow this:
http://host/app/a
I have read the FAQ on how to set up virtual hosts, but this isn't
really a desirable solution for this case.
Is there a way to do this without using virtual hosts?
I am using Tomcat 5.5, but may have the option of updating to 6.
Thanks,
Greg Jewell
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Selective ports without virtual hosts
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Greg Jewell [mailto:GMJewell@raytheon.com]
> Subject: Selective ports without virtual hosts
>
> Basically, I want to allow this:
> https://host/app/a
> http://host/app/b
>
> and disallow this:
> http://host/app/a
Any reason why you can't use a <transport-guarantee> of CONFIDENTIAL for
the /a mapping? This would be the standard way to do it. See section
12.7 of the servlet spec for details.
- 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org