[Contents] [Prev] [Next] [Index] [Report an Error]

# Configuring Virtual Hosts for the Web Applications (SRC CLI)

Use the following configuration statements to configure virtual hosts at the [edit] hierarchy level:

`

slot number application-server web virtual-host host-name {
  alias [alias...];
  allow-address [allow-address...];
  allow-host [allow-host...];
  deny-address [deny-address...];
  deny-host [deny-host...];
}

`

To configure virtual hosts for the Web applications:

1. From configuration mode, access the statement that configures the virtual host.
   `
   user@host# edit slot 0 application-server virtual-host host-name
   `

   The hostname must be unique. You cannot specify eth0, the IP address of the eth0 interface, or the hostname of the C Series Controller as the hostname of the virtual host.

2. Specify the alternate DNS names or IP addresses for the virtual host.
   `
   [edit slot 0 application-server virtual-host host-name]
   user@host# set alias [alias ...]
   `

   The alias must be unique. You cannot specify eth0, the IP address of the eth0 interface, or the hostname of the C Series Controller as the alias of the virtual host.

3. Configure access to the virtual host. Specify the IP addresses for remote clients that are allowed access to the virtual host.
   `
   [edit slot 0 application-server virtual-host host-name]
   user@host# set allow-address [allow-address...]
   `
4. Configure access to the virtual host. Specify the hostnames for remote clients that are allowed access to the virtual host.
   `
   [edit slot 0 application-server virtual-host host-name]
   user@host# set allow-host [allow-host...]
   `
5. Deny access to the virtual host. Specify the IP addresses for remote clients that are denied access to the virtual host.
   `
   [edit slot 0 application-server virtual-host host-name]
   user@host# set deny-address [deny-address...]
   `
6. Deny access to the virtual host. Specify the hostnames for remote clients that are denied access to the virtual host.
   `
   [edit slot 0 application-server virtual-host host-name]
   user@host# set deny-host [deny-host...]
   `

#### Related Topics

- Configuring the Web Application Server (SRC CLI)
- Overview of the Web Application Server on C Series Controllers

[Contents] [Prev] [Next] [Index] [Report an Error]