Very new to IIS 7, so apologies if this is a simple one.
I've installed Drupal 7 using the Webstart installer on Windows Server 2008 R2. Drupal makes it's own custom 404 and 403 error pages. When I open up Internet Explorer on the server and test these, they work fine.
However, from a remote machine:
- Testing what should return a custom 404 page (that is the page doesn't exist), I get a blank page in Firefox, and IE shows a 403 "The website declined to show this webpage" when friendly error messages are turned on, and a blank page when they are turned off.
- Testing what should return a custom 403 page (by visiting the admin area with a non-authenticated user) returns a "Server Error. 403 – Forbidden: Access is denied.
" in the IIS style.
I'm guessing this is a permissions problem, but I can't find anything to change.
Any ideas?
Thanks,
Frederik
Best Answer
The problem is with IIS web.config file for your site.
This article helped me overcome the issue: http://www.evanclosson.com/devlog/iis7httperrorsconfigurationonlockdown.
Have a read for this post on drupal groups: http://groups.drupal.org/node/25421
Otherwise you can use my config file below.