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:
- From configuration mode, access the statement that configures
the virtual host.
By default, SRC applications run on the virtual host eth0. You must configure eth0 as a virtual host. The hostname must be unique.
user@host# edit slot 0 application-server virtual-host eth0 - Specify the alternate DNS names or IP addresses for the
virtual host. [edit slot 0 application-server virtual-host eth0]user@host# set alias [alias ...]
The alias must be unique. Specify the following alias for the eth0 virtual host:
The IP address assigned to eth0.
The name for the SRC host configured at the [edit system host-name] and [edit system domain-name] hierarchy levels.
- 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 eth0]user@host# set allow-address [allow-address...]
- 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 eth0]user@host# set allow-host [allow-host...]
- 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 eth0]user@host# set deny-address [deny-address...]
- 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 eth0]user@host# set deny-host [deny-host...]