Book Image

OpenShift Cookbook

By : Shekhar Gulati
Book Image

OpenShift Cookbook

By: Shekhar Gulati

Overview of this book

Table of Contents (19 chapters)
OpenShift Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Running OpenShift on a Virtual Machine
Index

Enabling JBoss access logs


Access logs are very useful when you want to see a list of all the requests processed by a server. For Apache-based cartridges, access logs are enabled by default, but you will have to enable it manually in JBoss-based cartridges. In this recipe, you will learn how to enable the access logs for JBoss cartridges.

Getting ready

This recipe will pick up where we left off in the Working with JBoss application logs recipe.

How to do it…

Perform the following steps to enable the access logs:

  1. Open the standalone.xml file inside the .openshift/config directory in your favorite editor.

  2. Update the urn:jboss:domain:web:1.5 subsystem with the one shown in the following code:

    <subsystem xmlns="urn:jboss:domain:web:1.5"
      default-virtual-server="default-host" native="false">
      <connector name="http" protocol="HTTP/1.1" scheme="http"
        socket-binding="http" />
      <virtual-server name="default-host" enable-welcome-root="false">
        <alias name="localhost" />...