PingDirectory

Configuring an HTTP connection handler for web applications

About this task

To host web applications on the server, use HTTP connection handlers.

Steps

  1. To create the web application servlet extension, use the create-web-application-extension option with dsconfig.

    Example:

    $ bin/dsconfig create-web-application-extension \
      --extension-name "Hello Web Application" \
      --set "base-context-path:/hello-app" \
      --set "document-root-directory:/opt/hello-web-app"
  2. To monitor the connection handler, use the ldapsearch tool.

    By default, the HTTP connection handler has an advanced monitor entry property, keep-stats, that is set to TRUE.

    Example:

    $ bin/ldapsearch --baseDN "cn=monitor" \
      "(objectClass=ds-http-connection-handler-statistics-monitor-entry)"