Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 954002 - Last Review: July 1, 2008 - Revision: 1.0
How to add a custom HTTP response header to a Web site that is hosted by IIS
INTRODUCTION
This article discusses how to add a custom HTTP response header to a Web site that is hosted by Internet Information Services (IIS) 7.0, by IIS 6.0, or by earlier versions of IIS. This header may apply to a site or to an application.
You can also add custom HTTP response headers at the server level. However, we recommend that you use custom headers only on a specific site or application. We do not recommend that you use custom headers globally.
MORE INFORMATION
To add a custom HTTP response header at the Web site level in IIS 7.0 on a computer that is running Windows Server 2008, follow these steps:
- Click Start, click Administrative Tools, and then click Internet Information Services (IIS) Manager.
- In the connections pane, expand the node for the server, and then expand Sites.
- Click the Web site where you want to add the custom HTTP response header.
- In the Web site pane, double-click HTTP Response Headers in the IIS section.
- In the actions pane, click Add.
- In the Name box, type the custom HTTP header name.
- In the Value box, type the custom HTTP header value.
- Click OK.
To add a custom HTTP response header at the Web site level in IIS 6.0 and in earlier versions of IIS, follow these steps:
- Click Start, click Run, type inetmgr.exe, and then click OK.
- Expand the node for the server, and then expand Web Sites.
- Right-click the Web site, and then click Properties.
- Click the Custom HTTP headers tab, and then click Add.
- In the Custom header name box, type the custom HTTP header name.
- In the Custom header value box, type the custom HTTP header value.
- Click OK two times.
APPLIES TO
- Microsoft Internet Information Services 7.0
- Microsoft Internet Information Services 6.0
- Microsoft Internet Information Services 5.1
- Microsoft Internet Information Services 5.0
| kbexpertiseinter kbinfo kbhowto KB954002 |
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
Be the first to leave feedback, to help others about this knowledge base
article.
(Optional) Name
(Optional)
Public URL Or Email
Comments
No
HTML -- Text Only Please