WebSphere

 

Portal Express, Version 6.0
Operating systems: i5/OS, Linux, Windows

 

Controlling access to hosts specified in connect tags

By default, connect tags can specify any host name. However, you can restrict access to a specified list of host names by modifying the WCMConfigService.properties file.

  1. Open the WCMConfigService.properties file in an editor. File location:

  2. Change the value of the connect.connector.httpconnector.denyunknownhosts property to true.

  3. For each host name for which you want to grant access, add a new property. Use the following format for the new property:

    connect.connector.httpconnector.hosts.host_name=value

    The value of host_name is the fully qualified host name of the server for which you want to permit access, and value is either true or false. For example:

    connect.businesslogic.hosts.www.example.com=true

  4. Optional: If you want to specify a default cache expiration value for the host name that you added, add a property with the following format:

    connect.connector.httpconnector.hosts.host_name.defaultcacheexpires=value

    The value of host_name is the fully qualified host name of the server for which you want to permit access, and value indicates the expiration time, according to the format used with connect tags and described in Expires parameter. For example:

    connect.connector.httpconnector.hosts.www.example.com.defaultcacheexpires=REL 9000s

  5. Optional: If you want to specify a default cache setting for the host name that you added, add a property with the following format.

    connect.connector.httpconnector.hosts.host_name.defaultcache=value

    The value of host_name is the fully qualified host name of the server for which you want to permit access, and value is either true or false. For example:

    connect.connector.httpconnector.hosts.www.example.com.defaultcache=true

Cluster note: If you are using this Web content server as part of a cluster, ensure that any properties you create in the WCMConfigService.properties file to manage access to host names are the same on each node to ensure consistent results across the cluster.

 

Parent topic:

Configuring Web Content Management