Created
November 12, 2014 00:57
-
-
Save bparry02/d2d09cc24455e83d79a2 to your computer and use it in GitHub Desktop.
JBoss EAP 6.3 URL rewrite example (redirect the root context to a deployed application)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<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> | |
... |
JBoss CLI command:
/subsystem=web/virtual-server=default-host/rewrite=jboss:add(pattern="^/$", substitution="/jboss-helloworld/", flags="L,R=302")
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
JBoss Web Subsystem - Virtual Server element description
JBoss URL Rewrite description
The flags used in the example are: