I have changed the web.config's on all my customer web sites to reflect the recommendations by MS. My error.html pages is triggered. However I notice if I simply access the site as follows: www.mysite.com/~/ it will
throw a Server Error, 404 and reveals physical paths and server name. How to protect against this?
Bugs66
Member
28 Points
9 Posts
www.mysite.com/~/ gives 404 error despite customErrors
Sep 20, 2010 10:57 PM|LINK
Greetings,
I have changed the web.config's on all my customer web sites to reflect the recommendations by MS. My error.html pages is triggered. However I notice if I simply access the site as follows: www.mysite.com/~/ it will throw a Server Error, 404 and reveals physical paths and server name. How to protect against this?
christoc
Star
8562 Points
1566 Posts
Re: www.mysite.com/~/ gives 404 error despite customErrors
Sep 21, 2010 04:09 AM|LINK
I think that's because that is being handled by IIS directly, and not by asp.net, similar to
www.mysite.com/test.html
DotNetNuke Upgrades and Consulting
Rovastar
Member
182 Points
59 Posts
Re: www.mysite.com/~/ gives 404 error despite customErrors
Sep 21, 2010 11:21 AM|LINK
Yeah that is handled by IIS look in the custom errors in the GUI. There appears to be no issue with static IIS error handling just .net stuff.
You can change these pages in default path (for IIS7.x at least):
%SystemDrive%\inetpub\custerr\<page name>