Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 421
  • Last Modified:

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?
0
nav29
Asked:
nav29
  • 2
  • 2
1 Solution
 
ahoffmannCommented:
is 198.103.109.141 your public IP?
0
 
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
 
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

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now