I have a Windows server running for development and I noticed that on my local machine which uses the local network to communicate to the server I get non-detailed error messages from IIS. For example, when my ColdFusion server throws an error, I get the standard IIS 500 error.

I figured out how to enable showing detailed errors, but that shows detailed errors for all clients. Is it possible to only enable details errors for a single subnet (192.168.34.0/24) and show the non-detailed errors for any other client?

link|improve this question

60% accept rate
feedback

1 Answer

up vote 1 down vote accepted

Yes, since you're on IIS7 you can use URL Rewrite. Here's a blog post I put together on achieving what you're asking about.

link|improve this answer
That just seems like such an inconvenient way to do things. I would think Windows would make it a bit easier than that, but I guess if that's what I gotta do. – Dave Long Aug 2 '11 at 14:35
Yes I agree. I've thought for years that it would be nice to have an ApprovedIPs type property for detailed errors. Since it doesn't, that URL Rewrite workaround will do the trick. – Scott Forsyth - MVP Aug 2 '11 at 14:42
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.