Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm setting up a new Tomcat 7.0.33 server, and I'm looking for a simple way to include a directory full of virtual host definition XML files for configuration.

I've found that it's possible to do XML includes from server.xml, but this requires a line in server.xml for each file, and is no less work than just having the entire config right in server.xml. I'm looking for something similar to Apache's Include directive.

The end result I'm looking for is to have a directory I can drop an XML file into that Tomcat will pick up on the next restart, without having to modify server.xml. Is there a way to do this?

Thanks!

share|improve this question

No mecanism exists to load an entire directory of files in tomcat config. As it is XML based, you need to describe all included resources.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.