tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: How to allow access just from one remote host?
Date Tue, 24 Aug 2004 12:43:54 GMT

Hi,
Yes, you can do this with Tomcat by itself.  RTFM on the Remote Host
Filter Valve at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Eugene [mailto:j.subscribe@bk.ru]
>Sent: Monday, August 23, 2004 11:28 PM
>To: Tomcat Users List
>Subject: How to allow access just from one remote host?
>
>Hi! I have Apache2.0.50+mod_jk2+Tomcat5.0.27 running together on
Windows
>2003.
>Access to the applications directories mounted in <Virtual Host> of
>Apache. I'm trying to deny access to root of every site and the
>applications directory with
><Directory C:/server/apache/htdocs>
>Order Deny,Allow
>Deny from all
>Allow from www.mysite.com
></Directory>
>
>But its didnt work. I can deny access to the htdocs/, but the
>application directory, for example htdocs/myapp/ still accesible to
all.
>I've tryed to do that with <LocationMatch /> and <Location />, then
Tomcat
>cannot load applet, because it tells that applet innaccesible.
>I've tryed to resolve it like this:
><Directory C:/server/apache/htdocs/myapp-folder>
>Order Deny,Allow
>Deny from all
>Allow from www.mysite.com
></Directory>
>
><Directory C:/server/apache/htdocs>
>Order Deny,Allow
>Deny from all
>Allow from www.mysite.com
></Directory>
>
>But its working just for root (htdocs).
>
>I can close htdocs from Apache, but give some tips please how to close
>access to apps directories and allow it just from one host.
>Maybe any ideas how to do that with just Tomcat configuration?
>
>Thank you very much for any help.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message