---
title: Setting up virtual hosts
description: Each virtual host can optionally have its own respective Apache agent configuration.
component: apache
page_id: apache:setup:pf_apache_linux_ik_setting_up_virtual_hosts
canonical_url: https://docs.pingidentity.com/integrations/apache/setup/pf_apache_linux_ik_setting_up_virtual_hosts.html
revdate: June 27, 2024
section_ids:
  about-this-task: About this task
  steps: Steps
---

# Setting up virtual hosts

Each virtual host can optionally have its own respective Apache agent configuration.

## About this task

If no custom configuration is provided, a virtual host uses the agent configuration from the base server.

## Steps

* If you want to use this feature, add the following to the Apache `httpd.conf` file in the virtual host context:

  ```none
  PingFederateConfigurationFile conf/mod_pf_vhost.conf
  ```

  In this example, `mod_pf_vhost.conf` is an agent configuration file that contains settings unique to the virtual host. PingFederate attributes from the base server configuration aren't merged with the virtual host when the `PingFederateConfigurationFile` attribute is specified for the virtual host.
