---
title: Configuring an application
description: The application represents the protected web application as a whole. By including the virtual host and the agent, it allows PingAccess to match incoming traffic to the application with the agent managing that application. By including a web session, you specify how user credential data is stored and for how long. After you create the application and its root resource, you can add one or more rules to control access to the protected web application.
component: pingaccess
version: 9.0
page_id: pingaccess:pingaccess_use_cases:pa_web_agent_configuring_an_app
canonical_url: https://docs.pingidentity.com/pingaccess/9.1/pingaccess_use_cases/pa_web_agent_configuring_an_app.html
revdate: February 6, 2023
superseded_by: https://docs.pingidentity.com/pingaccess/9.1/pingaccess_use_cases/pa_web_agent_configuring_an_app.html
section_ids:
  about-this-task: About this task
  steps: Steps
---

# Configuring an application

## About this task

The application represents the protected web application as a whole. By including the virtual host and the agent, it allows PingAccess to match incoming traffic to the application with the agent managing that application. By including a web session, you specify how user credential data is stored and for how long. After you create the application and its root resource, you can add one or more rules to control access to the protected web application.

Within the application, you can add one or more resources. Resources are specific components that require a different degree of security. You can apply different rules to a resource, letting you apply specific controls to portions of an application. This example procedure does not include resources. For information about adding resources to an application, see [Configuring resource ordering in PingAccess](../pingaccess_user_interface_reference_guide/pa_configuring_resource_ordering.html).

For more information about this procedure, including optional steps that are not included here, see [Adding an application](../pingaccess_user_interface_reference_guide/pa_adding_an_app.html).

## Steps

1. Click **Applications**, then go to **Applications > Applications**.

2. Click **[icon: plus, set=fa]Add Application**.

3. In the **Name** field, enter a unique name for the application, up to 64 characters, including special characters and spaces.

4. In the **Context Root** field, enter the context root for the application. This represents the context at which the application is accessed at the site.

   The context root must meet the following criteria:

   * It must start with `/`.

   * It can contain additional `/` path separators.

   * It must not end with `/`.

   * It must not contain wildcards or regular expression strings.

   * The combination of the **Virtual Host** and **Context Root** must be unique.

5. From the **Virtual Host** list, select the virtual host you created.

6. In the **Application Type** section, select **Web**.

7. From the **Web Session** list, select the web session you created.

8. In the **Destination** section, select **Agent**, then select the agent that is installed on the same web server as the web application.

9. Click **Save**.

10. Click **Applications**, then go to **Applications > Applications**.

11. Expand the new application in the list and click the pencil icon ![pin1564006721753](_images/pin1564006721753.jpg).

12. Click the **Web Policy** tab.

13. Drag your rule from **Available Rules** onto the policy bar.

14. Click **Save**.
