Microsoft Knowledge Base Email Alertz

(927919) - Describes a problem in which you cannot search a site when the host header uses both HTTP and HTTPS in Windows SharePoint Services 3.0.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 927919 - Last Review: July 24, 2007 - Revision: 3.1

You cannot search a Windows SharePoint Services 3.0 site when the host header site uses HTTP and HTTPS

SYMPTOMS

Consider the following scenario. You create a new Web application in Microsoft Windows SharePoint Services 3.0. Then, you create a new site collection by using the Stsadm.exe command-line tool. For example, you run the following command at the command prompt:
stsadm -o createsite -url http://HostHeaderSiteURL -ownerlogin domain/username -hhurl http://URLOfWebApplication
In the new Web site properties dialog box in Microsoft Internet Information Services (IIS), you import a certificate. Additionally, you enable the site to use HTTP and HTTPS.

In this scenario, when you try to perform a search on the https://URL Web site, no search results are returned.

CAUSE

This issue occurs if both HTTP and HTTPS are used for the same host header site. You cannot have the same site collection exposed over HTTP and HTTPS, and then perform a search to return results over both protocols. If you want the host-named site collection to be searchable over HTTP, put the host-named collection in the HTTP Web application. If you want the host-named site collection to be searchable over HTTPS, put the host-named site collection in the HTTPS Web application.

WORKAROUND

To work around this issue, create separate Web applications. Create one Web application that uses HTTP and create one Web application that uses HTTPS. Then, map the Web application that uses HTTPS to the Web application that uses HTTP by using Extend an existing Web application. After you create the separate Web applications, you must associate the site collection with the new Web applications. In the following steps, assume that you already created a Web application that uses HTTP.

To create a new Web application for the HTTPS site, follow these steps:
  1. Use an account that has administrative permissions to log on to the computer that is running Windows SharePoint Services 3.0.
  2. Click Start, point to Administrative Tools, and then click SharePoint 3.0 Central Administration.
  3. On the Central Administration page, click Application Management.
  4. On the Application Management page, click Create or Extend Web Application, and then click Extend an existing Web Application.
  5. On the Extend Web Application to Another IIS Web Site page, type 443 in the Port box.
  6. Type a host name for the new Web application.
  7. Under Use Secure Sockets Layer (SSL), click Yes, and then click OK.
After you create the new HTTPS Web application, you must associate the site collection with the new Web application. Then, add the host header information. To do this, follow these steps:
  1. Click Start, click Run, type cmd, and then click OK.
  2. At the command prompt, change to the following directory:
    \Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
  3. At the command prompt, type the following command, and then press Enter:
    stsadm.exe -o createsite -url https://HostHeaderSiteURL -ownerlogin Domain\Username -hhurl https://URLOfWebApplication
    Note In this command, the -url parameter is the URL for the host header-based site collection. The value of the -hhurl parameter is the URL of the web application.

APPLIES TO
  • Microsoft Windows SharePoint Services 3.0
Keywords: 
kbtshoot kbprb kbexpertiseinter KB927919
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate