title: spring-boot + tomcat RewriteValve
body: <p>Is it possible to somehow customize embedded tomcat with <a href="https://tomcat.apache.org/tomcat-8.0-doc/rewrite.html" rel="nofollow noreferrer">RewriteValve</a>? As I can see in <a href="https://docs.spring.io/spring-boot/docs/1.5.10.RELEASE/api/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.html" rel="nofollow noreferrer">api</a> there are currently only methods for <a href="https://docs.spring.io/spring-boot/docs/1.5.10.RELEASE/api/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.html#addContextValves-org.apache.catalina.Valve...-" rel="nofollow noreferrer">addContextValves</a> and <a href="https://docs.spring.io/spring-boot/docs/1.5.10.RELEASE/api/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.html#addEngineValves-org.apache.catalina.Valve...-" rel="nofollow noreferrer">addEngineValves</a> but as pointed tomcat in documentation, RewriteValve should be placed in Host or in a webapp's context.xml. I don't understand if <code>addContextValves</code> could work for this.</p>
  
  <p>Thanks</p>