IIS Using Custom Error

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I'm having problems getting custom error messaging working. I have
configured this properly in simple, single site IIS configurations.
This particular deployment involves WSS and virtual directories.
Right clicking on the site within IIS admin, properties, I have
selected the CUSTOM ERROR tab and changed all 404 errors to use my
custom html file. Also, under the ASP.NET tab, I have turned the
Custom error mode "ON" and supplied the default redirect URL. I
stopped and started IIS.


If I type in a bogus url (non-aspx), I get the standard 404 error.
The same is true when I request a bogus .aspx page. I created a
folder at the doc root of my virtual web server called
"custom_error". I put my custom error .aspx file in this directory.

If I request a bogus url like: www.mycompany.com/bogus.html or
www.mycompany.com/bogus.aspx I receive the standard 404 error.

If I request a bogus ur like: www.mycompany.com/custom_error/bogus.html
OR www.mycompany.com/custom_error/bogus.aspx then I *DO* get my
error.

I'm confused!
.



Relevant Pages

  • Re: 401.3 when logging in as user on the same system
    ... Can you post the iis log for those error request? ... if you have custom error pages, make sure you configure the correct model ... permissions aren't the same as if the IUSR_servername is being used. ...
    (microsoft.public.inetserver.iis.security)
  • Re: 401.3 when logging in as user on the same system
    ... This is because the Custom Error you configure in IIS is not applied ... also frustrate system administrators who want to have consistent ... and the Application Developer with IIS stuck in the middle, ...
    (microsoft.public.inetserver.iis.security)
  • Re: iis 6 ssl redirect initial login encrypted?
    ... Just locate the actual error page in IIS Manager, right-click -> Properties and go to the File Security page. ... Select "Allow Anonymous Authentication" and disable the other authentication mechanisms. ... I'm not sure how to do it for just my custom error page. ... requirement (require SSL) should force your custom error page to be loaded ...
    (microsoft.public.inetserver.iis.security)
  • Re: Redirecting http:// to https:/
    ... Did you setup the custom error as a file ... :> URL that requires SSL, so IIS executes 403.4 custom error. ... :> I'm not certain how FireFox can make this situation work legitimately. ...
    (microsoft.public.inetserver.iis.security)
  • Not getting correct 401-2 Access denied page
    ... Server Error in '/NTAuth' Application ... page using the credentials you supplied. ... Internet Information Services (IIS) ... for topics titled About Security, Authentication, and About Custom Error ...
    (microsoft.public.inetserver.iis.security)