+

Search Tips   |   Advanced Search


Control access to hosts specified in a URL

By default, you can specify any host name in a URL used to retrieve content. However, you can restrict access to a specified list of host names by modifying WCMConfigService.properties.

  1. Edit...
      PROFILE_HOME/PortalServer/wcm/shared/app/config/wcmservices/WCMConfigService.properties

  2. Set...

      connect.connector.httpconnector.denyunknownhosts=true

  3. For each host name for which you want to grant access, add a 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.connector.httpconnector.hosts.www.example.com=true

  4. 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.

    For example:

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

  5. 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: For this Web content server as part of a cluster, ensure that any properties you create in WCMConfigService.properties to manage access to host names are the same on each node to ensure consistent results across the cluster.


Parent topic:

Additional configuration options