venerdì, luglio 22, 2011

Serving jboss logs as static content

This configuration has been tested using red hat linux and jboss 5.1.x

  1. Edit the
    and change the servlet attribute listings from false to true.
  2. Edit the
    and add the attribute allowLinking="true" to the Context element.
  3. Create a log folder in the path
  4. In the log folder create a symbolic link to the log folder of jboss
    $ ln -s ../../../log listAll
  5. Restart the jboss instance
  6. The logs will be available at this url http://myHost:8080/log/listAll

Enable symlinks
Enable directory browsing

Nessun commento: