IIS 404 Question

Posted on 2011-05-11
Last Modified: 2012-05-11
I have a question about IIS Server Settings. I got on McAffee Siteadvisor following message:

"!It appears that the Web site (or is returning an HTTP 2xx or 3xx status response code in the header of 404 pages."

I do not know what settings they refer to, because everything is working well on ther server. Any idea where this setting is?

Question by:Ocrana
    LVL 17

    Expert Comment

    It just mean that your 404 pages do not give a 404 response back

    which has a custom 404 page that that return everything all ok 200 status.

    There is nothing wrong with this however normally you would want to have 404 status code returned even for the simple reason as you can easily log all your 404 pages.
    Best practice would be to give a 404 http status with the error page. Have a word with your devs.

    Author Comment

    But I do. I just added the custom 404 page to the IIS erropages. I did not changed anything else. I think there have to be another setting. I checked the web.config and the IIS settings. Everything is ok. BUt McAffee said not. Amazing.
    LVL 17

    Accepted Solution

    Ignore mcaffe you page are return 200s  as I checked.

    However the IIS error pages can be very different to other technology pages (,php , etc) Use failed request tracing to make sure the pages return the correct http status codes as you desire. IIS pages (the 404 custom errors) are different to what the technologies (,etc) will return as it goes to them first.

    Like I said don't worry too much about it. Check in your IIS logs to see what status codes you are returning.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    The problems with reply email signatures

    Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

    Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
    You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
    This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
    This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now