Virtual Host Settings
A virtual host is a unique combination of an address and port. The virtualHostList is a list of these combinations (virtualHosts)
If the URL or IP is omitted the system inserts '*' Which means any IP or URL.
Format:
[ "vHostName" , "PortNumber", "URL_Or_IP_of_HTTP_sender(May be omitted)"]
If a web server listens on 30034. The Web server url and port must be in the virtualhost list and hence the Plugin.
It is not uncommon to replace the Web server url with '*'. Any Web server listening on a given port will then be accepted by the Plugin. If an Edge Server listens on 443 and feeds a web server listening on 30034 both the edge server url and port, and the Web server url and port must be in the virtualhost list.
The Application server Default HTTP virtual hosts must also be declared in the virtual host list.
Example:-
virtualHostList = [[ vHostName, WC_defaulthost_port ], [ vHostName ,WC_defaulthost_secure_port ], [ vHostName , WebServerNonSecurePortNo ], [ vHostName, edgeServerPortNumber, edgeServerURL_Or_IP]]
Where:-
- vHostName is normally mapped to the name of the server/cluster to give a unique virtual host name
- WebServerNonSecurePortNo is the non-secure port that all the Web servers are listening on for the given application.
An example python file fragment is shown below.
#------------------------------------------------- # http ports #------------------------------------------------- # Web Server ports httpServerNosecureTransportPortNo = 30011 #------------------------------------------------- # Edge Server #------------------------------------------------- cssSprayerName = "mvcloud01.midvision.co.uk" httpsCSSSprayerSecureTransportPort = 443 #--------------------------------------------------- # Virtual Host Related Variables #--------------------------------------------------- vHostName = serverName #--------------------------------------------------- # virtualHostList #--------------------------------------------------- virtualHostList = [[ vHostName, WC_defaulthost_port ],[ vHostName ,WC_defaulthost_secure_port ],[ vHostName, httpServerNosecureTransportPortNo ], [ vHostName, httpsCSSSprayerNoSecureTransportPort, cssSprayerName ]]
Virtual host MIME Types
If you set the following parameter in your python file:
addVirtualHostMimeTypes = "true"
Then you can add a list of MIME types to your virtual host.
vHostMimeTypes = [["Type1", "Extensions1"], ["Type2", "Extensions2"], ...]
The following example serves to illustrate:
vHostMimeTypes = [["application/x-pcl", "pcl"], ["application/x-rtf", "rtf"]]