Skip to Content
Internet Information Services (IIS) 7.0 Resource Kit
book

Internet Information Services (IIS) 7.0 Resource Kit

by Olga M. Londer Mike Volordarsky Brett Hill, Bernard Cheah, Steve Schofield, Carlos Aguiar Mares, Kurt Meyer, and Microsoft IIS Team
March 2008
Intermediate to advanced
816 pages
24h 25m
English
Microsoft Press
Content preview from Internet Information Services (IIS) 7.0 Resource Kit

Custom Error Options

In the preceding examples, IIS 7.0 sends the contents of the file as the custom error response. IIS 7.0 has two other ways to respond to an error: by executing a URL and by redirecting the request.

Execute a URL

If you want to do a bit more in your custom error, such as sending an e-mail or logging the error to a database, you can execute a URL. Doing so allows you to execute dynamic content such as an ASP.NET page. The following example replaces the 404 custom error. Then IIS 7.0 will execute /404.aspx whenever a 404 error occurs.

<httpErrors> <!-- default custom error for 401 errors --> <!-- <error statusCode="404" prefixLanguageFilePath="c:\inetpub\custerr" path="404.htm" />--> <!-- ExecuteURL replaces default file response ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Internet Information Services (IIS) 7.0 Administrator’s Pocket Consultant

Internet Information Services (IIS) 7.0 Administrator’s Pocket Consultant

William R. Stanek
How to Cheat at IIS 7 Server Administration

How to Cheat at IIS 7 Server Administration

Chris Adams, Brian Frederick, Pattrick Santry

Publisher Resources

ISBN: 9780735624412Purchase book