You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by teknokrat <te...@yahoo.com> on 2007/06/20 15:47:01 UTC

define security constraint by virtual host

Does anyone know if its possible to make the security-constraint in a 
web.xml aware of what virtual-host it should apply to? The kind of thing 
I am after is - I have a security constraint on /admin which i want to 
be available on admin.company.com but not on any other virtual host I 
set up for this context.

cheers


---------------------------------------------------------------------
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: define security constraint by virtual host

Posted by teknokrat <te...@yahoo.com>.
Caldarale, Charles R wrote:
>> From: news [mailto:news@sea.gmane.org] On Behalf Of teknokrat
>> Subject: define security constraint by virtual host
>>
>> Does anyone know if its possible to make the security-constraint
>> in a web.xml aware of what virtual-host it should apply to?
> 
> No, since web.xml is defined by the servlet spec and <Host> is
> Tomcat-specific.
> 
>> I have a security constraint on /admin which i want to be
>> available on admin.company.com but not on any other virtual
>> host I set up for this context.
> 
> Then deploy admin only on the admin.company.com <Host> and not the
> others.  Put the admin.xml file under conf/Catalina/admin.company.com
> only.
> 
>  - 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
> 
> 

Ok, I suspected as such. Thanks.


---------------------------------------------------------------------
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: define security constraint by virtual host

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: news [mailto:news@sea.gmane.org] On Behalf Of teknokrat
> Subject: define security constraint by virtual host
> 
> Does anyone know if its possible to make the security-constraint
> in a web.xml aware of what virtual-host it should apply to?

No, since web.xml is defined by the servlet spec and <Host> is
Tomcat-specific.

> I have a security constraint on /admin which i want to be
> available on admin.company.com but not on any other virtual
> host I set up for this context.

Then deploy admin only on the admin.company.com <Host> and not the
others.  Put the admin.xml file under conf/Catalina/admin.company.com
only.

 - 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