I have been working to get custom 404 error handlers with auto email and it 
appears I am incapable (or plain irritated) of getting it done. We migrated all 
htm to cfm  and want to verify all is well.

I set the CF Admin (CF MX 6.1, W2K3 Server) to handle 404 errors for CF pages 
and it is fine. The problem I am having is when I set IIS 6 to go to the same 
page (404.cfm) I get mixed results?

Such as I received over 500 + emails in minutes (No way I have that many 
404’s ( (I setup auto email to notify of course)) and I think the page has 
issues. My concerns are these two:

1. I am unable to capture the requested page, I tried #CGI.SCRIPT_NAME#, 
#CGI.PATH_INFO# and I get the 404.cfm page as the requested page every time? 
(The CF admin page gets the right one when I tested it)

2. I was bombarded with emails to the point I had to comment out the cfmail 
tag, when I checked the referral page (#CGI.HTTP_ REFERER#) and there were no 
broken links? It would help to know what page was requested!

If anyone has any insight I would appreciate it, I am at my wits end and I have 
searched for weeks and cannot locate any threads anywhere that can shed some 
light on this,only other confused individuals.

This is the following sendmail code:

<cfmail to="[EMAIL PROTECTED]" from="[EMAIL PROTECTED]" subject="404 Error/File 
Missing" type="html">
A 404 Error Occured<br><br>
Time Stamp: #DateFormat(NOW(),'MM/DD/YYYY')# at #TimeFormat(NOW(),'hh:mm:ss 
tt')#<br><br>
Details:<br>
Request Method:&nbsp;#CGI.HTTP_REQUEST_METHOD#<br>
IP Address:&nbsp;#CGI.REMOTE_ADDR#<br>
Browser/Details:&nbsp;#CGI.HTTP_USER_AGENT#<br>
Refferal Page:&nbsp;<a href="#CGI.HTTP_REFERER#">#CGI.HTTP_REFERER#</a><br>
<br>
Please review links of the following page:<br>
Request Info:&nbsp; #CGI.PATH_INFO#<br>
</cfmail>

All apologies for the length, just want to be clear as possible,

    Thanks!
            John

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188632
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to