Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

Windows Server 2003 : Managing WWW Sites (part 4) - HTTP Headers Tab & Custom Errors Tab

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
12/9/2011 3:53:45 PM

HTTP Headers Tab

You can use the HTTP Headers tab of the Properties window for a Web site to enable content expiration on the site, to specify custom HTTP headers that are returned by the server to requesting HTTP clients, to enable and specify Internet Content Rating Association (ICRA) content ratings on the server, and to specify additional MIME mappings for a particular Web site.

Content Expiration

When you enable content expiration on the site and a client browser requests a file from the site, the HTTP headers returned by the server include information regarding the expiration date of the site’s contents. The client can then decide whether it needs to download a newer version of the file or use an existing copy in the client browser cache.

Note

If your site contains information that changes frequently (such as sports scores), you can force clients to always retrieve fresh copies of files from the server (and never use cached versions of these files) by selecting the Expire Immediately option.


Custom HTTP Headers

This rather esoteric feature allows you to specify custom HTTP headers that are returned by the server to requesting HTTP clients. You might use this option in certain situations involving firewalls or proxy servers to enable or disable specific features during HTTP sessions. You can see the dialog box in Figure 9.

Figure 9. Editing custom HTTP headers


Content Rating

This option is used to enable and specify Internet Content Rating Association (ICRA) content ratings on the server. These settings rate the site’s violence, sex, nudity, and language content and are typically enabled on sites hosting content unsuitable for viewing by minors.

More Info

For more information about the ICRA, see http://www.icra.org.


MIME Types

The MIME type option allows you to specify Web site–specific MIME mappings. Click MIME Types and add, edit, or delete the mappings for the current site.

Custom Errors Tab

The Custom Errors tab allows you to specify how your server will generate HTTP error messages when users attempt to access the selected Web site. (See Figure 10.)

Figure 10. Specifying custom HTTP error messages


The HTTP specification defines that the first header line returned by a Web server in response to a request by a client will contain a number and associated message indicating the status of the request. These three-digit numbers are called HTTP status codes, and they fall within various ranges:

  • 200 through 299 A successful HTTP transaction has occurred. (The most common status code is 200 OK.)

  • 300 through 399 Redirection to another URL has occurred.

  • 400 through 499 An error has occurred. Examples include the following:

    • 400 Bad Request The server can’t understand the syntax of the request.

    • 401 Unauthorized The user’s credentials don’t allow him or her to log on to the server.

    • 403 Forbidden Access is denied for some reason other than user credentials, such as the client having a restricted IP address or needing to use SSL to access the server.

    • 404 File Not Found The file you’re trying to access doesn’t exist (or is misplaced or misnamed) on the server.

  • 500 through 599 A server error has occurred or the requested feature isn’t implemented.

Instead of returning bare HTTP status codes and their brief messages for the error codes (400 through 499), however, IIS is configured by default to use predefined HTML pages that contain somewhat more information than the status codes and messages. These “error files” are located in the \%WinDir%\help\iishelp\common folder on the server, and you can modify them if you want.

Alternatively, by selecting one of these error files on the Custom Errors tab and clicking Edit Properties, you can specify that the default HTTP status codes and messages will be returned by the server when that error occurs, or that any specified file located in either a local folder or a network share will be returned when that error occurs. Companies commonly use this feature to create error pages that contain elements such as the company logo, the e-mail address of customer support, or even a search tool for finding the page the client is trying to access.

Note

IIS uses more detailed error messages than are included in the original HTTP specification. For example, the HTTP error code 401—which in HTTP simply means unauthorized—is represented in IIS by a group of codes spanning from 401.1 through 401.7, representing various reasons a server might deny a user’s credentials.

Other -----------------
- Windows Server 2003 : Managing WWW Sites (part 2) - Home Directory Tab & Documents Tab
- Windows Server 2003 : Managing WWW Sites (part 1) - Web Site Tab & Performance Tab
- Windows Server 2003 : Advanced Internet Information Services - Site-Level Administration & Directory-Level Administration
- Windows Server 2003 : Advanced Internet Information Services - Server-Level Administration
- Internet Security and Acceleration Server 2004 : Import, Export, Backup, and Restore
- Windows Server 2008 Server Core : Managing PnP Setups Using the PnPUtil Utility & Printing Data Files with the Print Utility
- Windows Server 2008 Server Core : Managing Power Settings with the PowerCfg Utility
- Windows Server 2003 : Setting Up the Group Policy Software Installation Extension (part 2) - Configuring the Group Policy Software Installation Extension
- Windows Server 2003 : Setting Up the Group Policy Software Installation Extension (part 1) - Creating a Software Distribution Point
- Windows Server 2003 : Using the Group Policy Software Installation Extension & Finding the Right Mix of Services
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server