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:
- 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.
- [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.
- [edit slot 0 application-server virtual-host host-name]
- user@host# set allow-address [allow-address...]
- [edit slot 0 application-server virtual-host host-name]
- user@host# set allow-host [allow-host...]
- [edit slot 0 application-server virtual-host host-name]
- user@host# set deny-address [deny-address...]
- [edit slot 0 application-server virtual-host host-name]
- user@host# set deny-host [deny-host...]