You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kaushal Shriyan <ka...@gmail.com> on 2009/02/19 13:01:00 UTC

restrict myapps under webapps to localhost

Hi

I am using tomcat-5.0.27-r6,Sun JDK 1.5.0.12  on gentoo OS
I have a clarification regarding restricting webapps/myapps to localhost
I have created myapps.xml under /etc/tomcat5/Catalina/localhost/myapps.xml
myapps.xml contains

#########################################################################################

<!--

    Context configuration file for the Tomcat Administration Web App

    $Id: admin.xml,v 1.3 2004/02/20 17:09:19 remm Exp $

-->


<Context path="/myapps" docBase="${catalina.home}/webapps/myapps"
        debug="0" privileged="true">

  <!-- Uncomment this Valve to limit access to the Admin app to localhost
   for obvious security reasons. Allow may be a comma-separated list of
   hosts (or even regular expressions).
  <Valve className="org.apache.catalina.valves.RemoteAddrValve"
    allow="127.0.0.1"/>
  -->

 <Valve className="org.apache.catalina.valves.RemoteAddrValve"
     allow="127.0.0.1"/>

  <Logger className="org.apache.catalina.logger.FileLogger"
             prefix="localhost_admin_log." suffix=".txt"
          timestamp="true"/>

</Context>

#########################################################################################


is that correct what i am doing ?

Do i need to restart tomcat application server ?

Thanks and Regards

Kaushal

RE: restrict myapps under webapps to localhost

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Kaushal Shriyan [mailto:kaushalshriyan@gmail.com]
> Subject: restrict myapps under webapps to localhost
>
> I am using tomcat-5.0.27-r6

Please try to reproduce your problem on a supported Tomcat level; 5.0.x was deprecated quite some time ago.  (Also, there never was a real Tomcat with a "-r6" version; you appear to be using a 3rd-party repackaged version, so you need to contact the vendor for support of that.)

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