Product DocsMenu

Coveo Platform 6.5 >
Administrator Help > Deployment > Configuring Front-End Server Query Destination

Configuring Front-End Server Query Destination

Each Coveo Front-End server uses information in the web.config file of the IIS Web application to determine to which Coveo Back-End server it sends the queries entered by users.

When two or more Coveo Back-End servers are available, you can configure a network load-balancing (NLB) cluster for the Back-End servers and specify the NLB cluster address in the web.config file of each Front-End server. The load-balancer handles the distribution of the queries to the available Back-End servers (see Configuring Coveo Servers in a Network Load-Balancing Cluster).

To configure Front-End server query destination

  1. Using a local administrator account, connect to the Front-End server for which you want to change the query destination.

    Note: It is recommended to make a backup of the web.config file before editing it.

  2. Locate the web.config file of the IIS Web application hosting the Coveo search interfaces.

    Note: When you chose to let the CES installer create the website, the default web.config file location is: [CES_Installation_Path]\Web.

  3. Using a text editor:

    1. Open the web.config file.

    2. Locate the <coveoEnterpriseSearch> tag, and then set the value of the hostname attribute to the host name of the Coveo Back-End server to which you want this Front-End server to send queries by default.

      Examples: Typical cases are:
      • hostname="localhost" when the Front-End and Back-End components are on the same server.
      • hostname="<CESMaster_hostname>" when the Front-End server sends queries to the Master server.
      • hostname="<CESBackEndNLBCluster_DNS_name>" when the Front-End server sends queries to the DNS name of the NLB Back-End server cluster.
      <coveoEnterpriseSearch>
        <server hostname="CESBackEndNLBCluster" impersonate="false" mirrorName="default" port="52800"/>
      </coveoEnterpriseSearch>
    3. Save the file.

      The changes take immediate effect for new queries.

  4. Repeat this procedure for each Coveo Front -End server.