>>>>> Grzegorz Grzybek <[email protected]>:

> Hello
> If you use Pax Web Undertow instead of default(ish) Pax Web Jetty, you
> could add this to ${karaf.home}/etc/undertow.xml:

> ...
>         <server>
>             <host name="default-host" alias="localhost">
>                 <location name="/scans handler="static-content" />
> ...
>             </host>
>         </server>
> ...
>         <handlers>
>             <file name="static-content" path="/path/to/scans"
> directory-listing="false" follow-symlink="false" />
>         </handlers>

> If you use Pax Web Jetty or Pax Web Tomcat, you can do it too with
> container-specific configuration (jetty.xml or tomcat-server.xml)

Thanks! I have to read up on switching from jetty to undertow (and a
little bit on undertow documentation).

Do you know if there are Java APIs to do this configuration in code?

Thanks!

Reply via email to