title: How to add Valve to Apache Tomcat and make use of the rewrite.config
body: <p>So in relation to this post: <a href="https://stackoverflow.com/questions/10878385/how-to-add-valve-to-apache-tomcat/58964905#58964905">How to add Valve to Apache Tomcat</a></p>
  
  <p>I was able to set the Valve inside the <code>server.xml</code> file. (Inside the engine)
  Now where would I go about placing the <code>rewrite.config</code> file?</p>
  
  <p>I tried to place it inside the <code>WEB-INF</code> of the file, but that only works if I set the valve inside the <code>context.xml</code>, which I don't want to do.</p>