Mark Ayre
asked on
IIS 8.5 Setting Custom error pages
I am facing a problem with custom error page in IIS 8.5
What i want to do is showing detailed errors only when connecting from the webserver itself, and a personalized custom error page for any connection coming from other hosts.
I have created a simple html page named SiteUnavailable.htm, and together with his images folder i have placed it in the IIS folder %systemdrive%\inetpub\cust err\
Then i have changed the setting from IIS Manager , at the server top level, in IIS>Error Pages > Edit Feature Setting , selecting "Detailed error for local request and custom.. " , providing the custom html page full path and Type = File
No way, if i try opening a non existing path it shows a classic 404 error page (short from remote requests and detailed for locals) and not mine
Still not working also if i set "Custom Error" both from local and remote requests
Once i've done these changes from the gui, it does not need editing web.config files, correct?
Can please help me troubleshooting this issue?
thanks a lot
What i want to do is showing detailed errors only when connecting from the webserver itself, and a personalized custom error page for any connection coming from other hosts.
I have created a simple html page named SiteUnavailable.htm, and together with his images folder i have placed it in the IIS folder %systemdrive%\inetpub\cust
Then i have changed the setting from IIS Manager , at the server top level, in IIS>Error Pages > Edit Feature Setting , selecting "Detailed error for local request and custom.. " , providing the custom html page full path and Type = File
No way, if i try opening a non existing path it shows a classic 404 error page (short from remote requests and detailed for locals) and not mine
Still not working also if i set "Custom Error" both from local and remote requests
Once i've done these changes from the gui, it does not need editing web.config files, correct?
Can please help me troubleshooting this issue?
thanks a lot
ASKER
Thanks for your contribute Patrick, at a first look it seems no system.webserver is present in my web.config files.
Anyway i tried editing the web.config with little luck
But i could not spend enough time on this cause i'm busy with another critical issue, as soon as i'll can i'll try some more and i'll update the post
Anyway i tried editing the web.config with little luck
But i could not spend enough time on this cause i'm busy with another critical issue, as soon as i'll can i'll try some more and i'll update the post
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Normally you would not need to edit web.config files since the Gui does this for you.
But IIS 8.5 has multiple levels where customerrors are mentioned.
Please find both in:
system.webserver
system.web
Also sometimes it is mentioned in the web.config off the framework you are using, e.g. C:\Windows\Microsoft.NET\F
HTH