In your server.xml you will add an address element and specify it as:
127.0.0.1
 
    <!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port
specified
         during installation  -->
    <Connector 
               address="127.0.0.1"
               port="8080" maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"
               enableLookups="false" redirectPort="8443"
acceptCount="100"
               debug="0" connectionTimeout="20000" 
               disableUploadTimeout="true" />
 
 
Leo

________________________________

From: Mark Claassen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 08, 2006 10:51 AM
To: 'Tomcat Users List'
Subject: [SPAM:] - RE: Restricting access to localhost for an HTTP
connector - Email has different SMTP TO: and MIME TO: fields in the
email addresses


Thanks.  I thought I heard that it was possible though the address, but
was not sure.  I read this in the docs, but I guess I didn't / don't
understand the short explanation of "address".
 

________________________________

From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 08, 2006 1:24 PM
To: Tomcat Users List
Subject: Re: Restricting access to localhost for an HTTP connector


yes, you can bind the connector the 127.0.0.1, meaning it will only
listen on that address
use the "address" attribute in the connector 
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html


Mark Claassen wrote: 

        Is there to configure an HTTP Connector to only allow
connections from
        localhost?  We have a server that has an HTTPS port that handles
all public
        access.  However, we would like to leave a non SSL port open for
a
        monitoring program we have running on the same machine.  We
would like to
        not allow anyone else to be able to access the non-SSL port.  
        
        I know that the apache webserver has mechanism to do this, but I
was
        wondering if a standalone tomcat could also do what we need.
        
        Thanks,
        Mark
         
        
        
        
---------------------------------------------------------------------
        To start a new topic, e-mail: users@tomcat.apache.org
        To unsubscribe, e-mail: [EMAIL PROTECTED]
        For additional commands, e-mail: [EMAIL PROTECTED]
        
        
          



-- 


Filip Hanik
 

Reply via email to