-
-
Save dmlloyd/5246055 to your computer and use it in GitHub Desktop.
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:io:1.0"> | |
<xnio-worker name="default" task-core-threads="12" io-threads="3"/> | |
<xnio-buffer-pool name="default" buffer-size="1024" buffers-per-slice="1024"/> | |
</subsystem> | |
<subsystem xmlns="urn:jboss:domain:undertow:1.0"> | |
<server name="foo"> | |
<http-listener name="default" socket-binding="http" worker="default" buffer-pool="default"/> | |
<ajp-listener name="ajp-connector" socket-binding="ajp"/> | |
<!-- each host is a sub-resource --> | |
<host name="localhost" aliases="www.localhost localhost.localdomain"> | |
<!-- each location is a sub-resource --> | |
<location name="/app/myData" handler="opt-file-handler"> | |
<filter name="security-other"/> | |
<filter name="headers"/> | |
</location> | |
</host> | |
<host name="www.mysite.com"> | |
<location name="/" handler="redirect-1"> | |
<filter name="security-other"/> | |
</location> | |
</host> | |
<host name="disallowed-site.com"> | |
<error-page code="404" path="/opt/data/custom/404.html"/> | |
</host> | |
<default-host> | |
</default-host> | |
<error-handlers> | |
<error-page code="404" path="/opt/data/404.html"/> | |
</error-handlers> | |
<servlet-container name="default"> | |
<jsp-config>.....</jsp-config> | |
</servlet-container> | |
<filters> | |
<basic-auth name="security-other" security-domain="other"/> | |
<response-header name="headers" header-name="MY_HEADER" header-value="someValue"/> | |
</filters> | |
<handlers> | |
<file name="opt-file-handler" path="/opt/data" cache-buffer-size="1024" cache-buffers="1024"/> | |
</handlers> | |
</server> | |
</subsystem> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment