---
title: Configuring a virtual host
description: The virtual host is the external-facing portion of a web application. In a gateway deployment, the virtual host contains the host name and port that your users use to reach the protected web application.
component: pingaccess
version: 9.1
page_id: pingaccess:pingaccess_use_cases:pa_web_gateway_configuring_a_virtual_host
canonical_url: https://docs.pingidentity.com/pingaccess/9.1/pingaccess_use_cases/pa_web_gateway_configuring_a_virtual_host.html
revdate: February 6, 2023
section_ids:
  about-this-task: About this task
  steps: Steps
---

# Configuring a virtual host

## About this task

The virtual host is the external-facing portion of a web application. In a gateway deployment, the virtual host contains the host name and port that your users use to reach the protected web application.

For more information about this procedure, including optional steps that aren't included here, see [Creating new virtual hosts](../pingaccess_user_interface_reference_guide/pa_creating_new_virtual_hosts.html).

## Steps

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

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

3. In the **Host** field, enter the name for the virtual host.

   This is the host name used by end users to reach the site, such as `myHost.com`.

   |   |                                                                                                                                                                            |
   | - | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   |   | You can use a wildcard (`*`) for part or all of the host name. For example, `*.example.com` matches all host names ending in .example.com, and `*` matches all host names. |

4. In the **Port** field, enter the port number for the virtual host, such as `443`.

5. Click **Save**.
