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:
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:
- Click Start, click Run, type regedit, and then click OK.
- In Registry Editor, locate and then click the following registry key:
- Right-click MSV1_0, point to New, and then click Multi-String Value.
- Type BackConnectionHostNames, and then press ENTER.
- Right-click BackConnectionHostNames, and then click Modify.
- 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.
- Quit Registry Editor, and then restart the IISAdmin service.