Hi Jens,

Altrock, Jens schrieb:
> That's what I already read, but there's never said in which config files
> to put that in, nor are there any examples... or didn't I see them too?

What you are looking for is the RemoteAddrValve valve:

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/valve.html#Remote%20Address%20Filter

Reading your first mail, the right place for the RemoteAddrValve valve
should be within the Context element in your case, although it can also
used for the Host or even the Engine. Each Context element is representing
a web application. For more information, please read the following page
which also explains where to store the Context element:

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

Please not that the above two links refer to Tomcat version 5.5. The
information on these pages may not suit previous Tomcat versions. If you
use a Tomcat version prior to 5.5, please consult the respective
documentation.


Best wishes

Lutz




>> -----Urspr�ngliche Nachricht-----
>> Von: Tim Funk [mailto:[EMAIL PROTECTED]
>> Gesendet: Dienstag, 10. Mai 2005 14:42
>> An: Tomcat Users List
>> Betreff: Re: Restrict access to webapps for IPs
>>
>>
>> http://jakarta.apache.org/tomcat/faq/security.html#restrict
>>
>> -Tim
>>
>> Altrock, Jens wrote:
>> > Hi there,
>> >
>> > Hope this question won't sound as dumb, for I am completely
>> new to Tomcat;
>> > and I haven't found
>> > what I was searching for in the documentation though...
>> >
>> > I got four different applications/websites in the Tomcat
>> webapps directory,
>> > let's just call them A,
>> > B, C and D.
>> > The applications A, B and C should be accessible from the networks
>> > 192.100.46.0/24
>> > as well as 172.16.0.0/16
>> > But application D should be accessible from anywhere.
>> >
>> > Is there any way to do this in tomcat? I tried with the
>> apache .htaccess
>> > files, but that won't work though.
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
> ###########################################
> Diese Nachricht wurde von F-Secure Anti-Virus gescannt.
>
> This message has been scanned by F-Secure Anti-Virus.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to