Re: Custom 404 Page and IIS 5.0 Logging

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Jeff Cochran (jeff.nospam_at_zina.com)
Date: 06/17/04


Date: Thu, 17 Jun 2004 02:23:02 GMT

On Wed, 16 Jun 2004 17:10:30 -0400, "Ray at <%=sLocation%> [MVP]"
<myfirstname at lane34 dot com> wrote:

>First question - are you returning a 404 response status?
>
>Response.Status = 404
>
>I don't know that that makes the 404s log as 404s in the IIS log, but you
>could/should try that first.

I think the issue is that the default 404 page also logs the requested
page, and his custom page does not.

Jeff

>"Matt" <anonymous@discussions.microsoft.com> wrote in message
>news:1d60e01c453d4$99f6ff90$a101280a@phx.gbl...
>> I notice that when you have the defualt setup of 404 error
>> pages the IIS 5.0 log tracks the page the user was trying
>> to get to and the page they where at when they tryed to
>> get to the now missing page. I recently wrote my own 404
>> error page to make it match my site but when I set IIS to
>> use my custom page it no longer traks the page that the
>> user was trying to get. I was told I needed to add some
>> code to my page to fix this, but I don't know what code to
>> add. Can someone tell me? (I am useing ASP on the custom
>> 404 error page)
>



Relevant Pages

  • Re: C:WINNThelpiisHelpcommon401-1.htm
    ... > Any ideas how to STOP this warning from popping up all the time? ... check out your logs and determine what file is ... machine's Internet Services Manager MMC snap-in and navigate to the Custom ... you could copy IISHELP from some other machine but that isn't really ...
    (microsoft.public.inetserver.iis.security)
  • RE: VS2003 error when debugging
    ... I got both the filemon and the fuslog working. ... REG_SZ LogPath: ... By default fusion dumps the logs to your IE cache. ... Custom means the LogPath. ...
    (microsoft.public.vsnet.general)
  • JBOSS Question
    ... I am running a JBOSS server with a custom application on it. ... number of logs that are rolled over daily that are very large. ... I assume this is a log4j setting but I cannot seem to find. ...
    (comp.lang.java.programmer)
  • Custom AD/LDAP Attribute (in the User Schema)
    ... We have a legacy application that requires a custom Enrionment Variable ... login script or something) when a person logs into the workstation. ... We have applied for our X.500 OID (just to be sure our schema attribute ...
    (microsoft.public.windows.server.active_directory)