Hi,
I want to access the Wildfly 8.1.0.Final log files via a web request and therefore defined a static web resource in the standalone.xml.
<subsystem xmlns="urn:jboss:domain:undertow:1.1">
...
<server name="default-server">
...
<host name="default-host" alias="localhost">
<location name="/" handler="welcome-content"/>
<location name="/log" handler="log"/>
<filter-ref name="server-header"/>
<filter-ref name="x-powered-by-header"/>
</host>
</server>
..
<handlers>
<file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
<file name="log" path="${jboss.server.log.dir}" directory-listing="true"/>
</handlers>
<filters>
<response-header name="server-header" header-name="Server" header-value="WildFly/8"/>
<response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/>
</filters>
</subsystem>
Now I can access the log directory in my browser but I cannot open the log file. The server starts a download, if I click on one of the files.
What do I need to change to open the log files within my browser?
Thanks!
Thorben