Configuring Reporting Service to use Host Headers for the Report Manager Website

Ever tried to change the URL of the Report Manager in IIS using host headers?

I did, but got the following error message when I tried to open the Report Manager:

“The request failed with HTTP status 400: Bad Request”

There is some extra configuration needed to make this work:

Edit the RSWebApplication.config file to update the report server URL, that Report Manager uses to connect to the report server:

  • Delete the default entry in ReportServerVirtualDirectory
  • Type the new URL using host headers in ReportServerURL

The configuration should look like this:

http://myhostheader/reportserver

Now, if you want to be able to open the Report Manager also on the machine hosting the Reporting Services website, you need to make some changes to the Registry, to add an exception to the loopback check security featurethat is designed to help prevent reflection attacks on your computer. If not, authentication will fail with the following error message:

“HTTP 401.1 – Unauthorized: Logon Failed”

To add the exception follow these steps:

  1. Click Start, click Run, type regedit, and then click OK.
  2. In Registry Editor, locate and then click the following registry key:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0

  3. Right-click MSV1_0, point to New, and then click Multi-String Value.
  4. Type BackConnectionHostNames, and then press ENTER.
  5. Right-click BackConnectionHostNames, and then click Modify.
  6. In the Value data box, type the host name or the host names for the sites that are on the local computer, and then click OK.
  7. Quit Registry Editor, and then restart the IISAdmin service.
Share
No comments yet.

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>