EnhancedLog for MS IIS
Add-in Other libraries Download

Description  

Replaces the standard IIS error message (HTTP/1.0 404 Not Found, HTTP/1.0 401 Access denied, etc.) by custom HTML or HTTP message. The custom message can be defined for whole web site, or for any file or directory of the web. The message can contains redirection to the another site too.

Using  

1. Download and install EnhancedLog setup.
2. Restart WWW service
3. Create file with custom error message (404.htm, 401.htm, 500.htm etc.)
- in the log file directory for whole web
- in the virtual directory for the directory
4. (In IIS4 - Go to the ISAPI Filters and add enhlog.dll file.)

Other functions  

1. Adding HTTP_REFERER, HTTP_USER_AGENT, HTTP_COOKIE, etc. into standard IIS log file.
2. Setting unique cookie identifier for client ( and logging it ).
3. Logging RAW http client and server data.

Error message file samples  

 

1. HTML message

<HTML>This site was moved 
<a href=http://www.newsite.com>here</a>. 
Please update your bookmarks or favorites.</HTML>
<META HTTP-EQUIV="Refresh" CONTENT="20;URL=http://www.newsite.com">

or

<html>
<head><title>Error page - HTTP/1.1 404 Object Not Found</title></head>
<body bgcolor=white topmargin=0 leftmargin=0>
<table border=0 cellpadding=0 cellspacing=0 width="100%">
 <tr bgcolor=maroon>
  <td width="10%"></td>
  <th width="80%"><font size=+2 color=yellow>HTTP/1.1 404 Object Not Found</font></th><td width="10%"></td></tr>
 <tr>
  <td bgcolor=silver><a href=/>Home</a></td>
  <td><font size=-1><script><!--
   document.write('Bad URL : <b>'+document.location.href+'</b>');
   // --></script></font></td>
  <td></td>
 </tr>
 <tr>
  <td bgcolor=silver><a href=javascript:history.back(1)>Back</a></td>
  <td><font size=1>Mail to <a href="mailto:admin@NewDomain.com">administrator</a>.</font></td>
  <td></td>
 </tr>
</table>
</body>
</html>

2. Full HTTP code

HTTP/1.0 302 Moved
Location: /
Server: EnhancedLog for MS-IIS
Content-Length: 75
Content-Type: text/html

<html><body>This document was moved to: <a href="/">here</a></body></html>

3. Redirect: New URL

redirect:http://www.NewSite.com

4. Default - sends default error message (useful fo ASP response.status="xxx")

default
Important notes  

1. User account for W3SVC service ( probably SYSTEM ) must have READ access to the message files.
2. You can't redirect the 401 message.
3. Destination file (for redirection) must exist. Client browsers are dumb - you can have really good site traffic, if you set redirection of "404 not found" to a file which isn`t found on your server.
4. EnhancedLog handles error messages going out from IIS, handles all errors generated by scripts too. EnhancedLog does not modify HTTP headers going out from IIS or from your scripts.

Links  

Download free version

License  

Freeware/Shareware.

You are free to use and distribute EnhancedLog. EnhancedLog signs every custom error message by refrerence to the PSTRUH Software home page. You are not allowed to change the sign in free version of EnhacedLog. You must register to remove the sign.

This program can be registered through RegNet - The Registration Network. RegNet can be reached on the World Wide Web at the following URL: http://www.swregnet.com or by calling 1 800 WWW2REG (1 800 999-2734) or (805) 288-1827.

1996 1998 PSTRUH Software, help@pstruh.cz