Re: ipfiltering in Tomcat 6 fails, works fine on Tomcat 7

2014-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 9/25/14 5:36 PM, André Warnier wrote: Baran Topal wrote: Hi; Thanks for your interest. Yes, I realized context idea once i read the documentation.I must admit the hierarchy is weird but it's a custom installer of a site that

Re: ipfiltering in Tomcat 6 fails, works fine on Tomcat 7

2014-09-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Baran, On 9/24/14 12:19 PM, Baran Topal wrote: I understand that Tomcat 6 has valve and Chris, means of context, I have the feeling that this context.xml may be relevant but i have seen in some links, conf/server.xml is the place to manipulate.

Re: ipfiltering in Tomcat 6 fails, works fine on Tomcat 7

2014-09-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Baran, On 9/24/14 5:04 PM, Baran Topal wrote: Hi, following works under server.xml Context path=/index.jsp reloadable=true Valve className=org.apache.catalina.valves.RemoteAddrValve deny=127\.0\.0\.1/ /Context Yes, it will work, but

Re: ipfiltering in Tomcat 6 fails, works fine on Tomcat 7

2014-09-25 Thread Baran Topal
Hi; Thanks for your interest. Yes, I realized context idea once i read the documentation.I must admit the hierarchy is weird but it's a custom installer of a site that installs on Windows machine. There is no Tomcat manager console in place (at least I didn't see/enable). The hierarchy is as

Re: ipfiltering in Tomcat 6 fails, works fine on Tomcat 7

2014-09-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Baran, On 9/25/14 4:15 PM, Baran Topal wrote: The hierarchy is as this: programnameunderCdriveProgramFilestomcat/webapps/ROOT/WEB-INF and under WEB-INF, there is jsp folder in which it covers the jsp pages of admin that i want to filter out

Re: ipfiltering in Tomcat 6 fails, works fine on Tomcat 7

2014-09-25 Thread André Warnier
Baran Topal wrote: Hi; Thanks for your interest. Yes, I realized context idea once i read the documentation.I must admit the hierarchy is weird but it's a custom installer of a site that installs on Windows machine. There is no Tomcat manager console in place (at least I didn't see/enable).

ipfiltering in Tomcat 6 fails, works fine on Tomcat 7

2014-09-24 Thread Baran Topal
Hi; Recently joined, first mail I have the following filtering which works fine on Tomcat 7 but not on Tomcat 6... It gives just 404. filter filter-nameRemote Address Filter/filter-name filter-classorg.apache.catalina.filters.RemoteAddrFilter/filter-class init-param param-nameallow/param-name

Re: ipfiltering in Tomcat 6 fails, works fine on Tomcat 7

2014-09-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Baran, On 9/24/14 11:36 AM, Baran Topal wrote: Recently joined, first mail Welcome to the community. I have the following filtering which works fine on Tomcat 7 but not on Tomcat 6... It gives just 404. filter filter-nameRemote Address

Re: ipfiltering in Tomcat 6 fails, works fine on Tomcat 7

2014-09-24 Thread André Warnier
Baran Topal wrote: Hi; Recently joined, first mail I have the following filtering which works fine on Tomcat 7 but not on Tomcat 6... It gives just 404. filter filter-nameRemote Address Filter/filter-name filter-classorg.apache.catalina.filters.RemoteAddrFilter/filter-class init-param

Re: ipfiltering in Tomcat 6 fails, works fine on Tomcat 7

2014-09-24 Thread Baran Topal
Hi Andre and Chris; I understand that Tomcat 6 has valve and Chris, means of context, I have the feeling that this context.xml may be relevant but i have seen in some links, conf/server.xml is the place to manipulate. And the thing is that i didn't see any selective setting to filter the IP for

Re: ipfiltering in Tomcat 6 fails, works fine on Tomcat 7

2014-09-24 Thread Baran Topal
Hi, following works under server.xml Context path=/index.jsp reloadable=true Valve className=org.apache.catalina.valves.RemoteAddrValve deny=127\.0\.0\.1/ /Context But, i need to hide my admin directory containing admin.jsp pages (more than 1 jsp page) My admin directory is in