How to rewrite a RewriteValve for Undertow / JBoss 7.2 EAP?

Discussão em 'StackOverflow' iniciado por Stack, Janeiro 28, 2021.

  1. Stack

    Stack Membro Participativo

    I'm migrating from JBoss 6.4.3 to JBoss 7.2 and saw a Valves are no longer supported warning during deployment. This came from a jboss-web.xml file with:

    <valve>
    <class-name>org.jboss.web.rewrite.RewriteValve</class-name>
    </valve>


    ...and a corresponding rewrite.properties file:

    RewriteCond %{HTTP:X-Forwarded-Proto} http
    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R,L]


    Could anyone advise how to rewrite this (no pun intended) for Undertow?

    Continue reading...

Compartilhe esta Página