Skip to content

Instantly share code, notes, and snippets.

View alphamikevictor's full-sized avatar

alphamikevictor

View GitHub Profile
@bparry02
bparry02 / standalone.xml
Created November 12, 2014 00:57
JBoss EAP 6.3 URL rewrite example (redirect the root context to a deployed application)
...
<subsystem xmlns="urn:jboss:domain:web:2.1" default-virtual-server="default-host" native="false">
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
<virtual-server name="default-host" enable-welcome-root="true">
<alias name="localhost"/>
<alias name="example.com"/>
<rewrite name="jboss" pattern="^/$" substitution="/jboss-helloworld/" flags="L,R=302"/>
</virtual-server>
</subsystem>