Created
March 26, 2013 14:58
-
-
Save ctomc/5246013 to your computer and use it in GitHub Desktop.
handler consolidation
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:undertow:1.0"> | |
<worker name="default" task-core-threads="12" io-threads="3"/> | |
<buffer-pool name="default" buffer-size="1024" buffers-per-slice="1024"/> | |
<virtual-host default-host="localhost"> | |
<http-listener name="default" socket-binding="http" worker="default" buffer-pool="default"/> | |
<ajp-listener name="ajp-connector" socket-binding="ajp"/> | |
<handlers> | |
<handler-ref name="error-page"/> | |
</handlers> | |
<host name="localhost" alias="www.localhost"> | |
<handlers> | |
<handler-ref name="404-handler"/> | |
</handlers> | |
<location name="/app/myData"> | |
<handler-ref name="security-other"/> | |
<handler-ref name="headers"/> | |
<handler-ref name="opt-file-handler"/> | |
</location> | |
<default> | |
<servlet name="default"/> | |
</default> | |
</host> | |
<host name="www.mysite.com"> | |
<handlers> | |
<basic-auth security-domain="other"/> | |
<redirect match="/*" replace="/mySiteDeployment"/> | |
<servlet name="default"/> | |
</handlers> | |
</host> | |
<host name="disalowed-site.com"> | |
<handlers> | |
<response-code code="400"/> | |
</handlers> | |
</host> | |
</virtual-host> | |
<servlet-container name="default"> | |
<jsp-config>.....</jsp-config> | |
</servlet-container> | |
<handlers> | |
<simple-error-page name="error-page"/> | |
<basic-auth name="security-other" security-domain="other"/> | |
<response-header name="headers" header-name="MY_HEADER" header-value="someValue"/> | |
<file name="opt-file-handler" path="/opt/data" cache-buffer-size="1024" cache-buffers="1024"/> | |
<file-error-page name="404-handler" code="404" file="/my/error/page.html"/> | |
</handlers> | |
</subsystem> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment