Link to home
Start Free TrialLog in
Avatar of Bobby Sandhu
Bobby SandhuFlag for Canada

asked on

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?
Avatar of ahoffmann
ahoffmann
Flag of Germany image

is 198.103.109.141 your public IP?
ASKER CERTIFIED SOLUTION
Avatar of rionroc
rionroc
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bobby Sandhu

ASKER

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>
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>
 
is the public IP NATted or is ther a proxy infront of your server?