Thursday, June 10, 2010

Enabling Debug Flags on Apache WebServer For WebLogic

  • Sample httpd.conf file:
  •   WebLogicCluster johndoe02:8005,johndoe:8006
      Debug   ON
      WLLogFile             c:/tmp/global_proxy.log 
      WLTempDir             "c:/myTemp"
      DebugConfigInfo       On
      KeepAliveEnabled ON
      KeepAliveSecs  15
      SetHandler weblogic-handler
      WebLogicCluster agarwalp01:7001
      SetHandler weblogic-handler
      PathTrim  /web
      Debug   OFF
      WLLogFile   c:/tmp/web_log.log
      SetHandler weblogic-handler
      PathTrim  /foo
      Debug   ERR
      WLLogFile   c:/tmp/foo_proxy.log
  • All the requests which match /jurl/* will have Debug Level set to ALL and log messages will be logged to c:/tmp/global_proxy.log file. All the requests which match /web/* will have Debug Level set to OFF and no log messages will be logged. All the requests which match /foo/* will have Debug Level set to ERR and log messages will be logged to c:/tmp/foo_proxy.log file