Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Restrict a single webapp to localhost

Hi,

I have a single webapp that should only be accessible by request from localhost (ipv4/ipv6). I am looking for a way to configure it in WEB-INF/jetty-web.xml
I provide a file (META-INF/context.xml) for Tomcat, that looks like this:

<Context>
<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
</Context>

Yet I was not successful achieving the same with jetty 9.1. Any help is highly appreciated.

kind regards

Thomas Scheffler


Back to the top