I'd like regular users to be able to add allowed IP addresses to Tomcats firewall, without having to manually edit the server.xml file (so I don't have to do it). Is there a way to do that (without regenerating the server.xml file)?

有帮助吗?

解决方案

There isn't an ideal way to do this.

The only way to edit this list dynamically is via JMX. You can either write a servlet (suitably protected) to do this or provide full JMX access (equivalent to full admin access) and use JConsole or similar. The downside is that changes cannot be persisted.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top