this code dont work

hi there,
i am trying this code and it dont work

<Context crossContext="false" docBase="abc" path="/abc" reloadable="true">
        <Valve className="org.apache.catalina.valves.RemoteAddrValve" deny="*" allow="198.103.109.141"/>
        </Context>

I can still access this via remote

any idea why?
nav29Asked:
Who is Participating?
 
rionrocCommented:
Hello
How about that:

<Context crossContext="false" docBase="abc" path="/abc" reloadable="true">
<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="198.103.109.141" deny="*">
</Valve>
</Context>

Cheers!
0
 
ahoffmannCommented:
is 198.103.109.141 your public IP?
0
 
nav29Author Commented:
Hello,

ahoffmann, I would like this application to be accessible to this particular ip address. It will be the ip address of client organization. There are other applications on the server that can be accessible by all clients and this particular application should be accessible by only one client, whose ip address is defined.

rionroc, I tried the following qurery before and it did not work.
<Context crossContext="false" docBase="abc" path="/abc" reloadable="true">
<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="198.103.109.141">
</Valve>
</Context>

This one with company's domain name:
<Context crossContext="false" docBase="abc" path="/abc" reloadable="true">
<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="*(abc.ca)">
</Valve>
</Context>
0
 
nav29Author Commented:
below code didnt work too :( any other suggestion ?

Context crossContext="false" docBase="abc" path="/abc" reloadable="true">
<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="198.103.109.141" deny="*">
</Valve>
</Context>
 
0
 
ahoffmannCommented:
is the public IP NATted or is ther a proxy infront of your server?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.