+

Search Tips   |   Advanced Search

Portal, V6.1


 

Controlling 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 the WCM ConfigService.properties file.

  1. Open the WCM ConfigService.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.connector.httpconnector.hosts.www.example.com=true

  4. Optional

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

    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 WCM ConfigService.properties file to manage access to host names are the same on each node to ensure consistent results across the cluster.

 

Parent topic

Additional configuration options