I have a ASP.NET Server running on port 8080 on a machine, and for performance reasons an nginx caching reverse proxy running on port 80. Requests are done to port 80 and then, if not answered by the nginx cache, are passed to localhost:8080 via nginx proxy_pass directive.
This setup works fine so far, except for the ASP.NET customErrors. I'd like them to be "RemoteOnly", but due to the reverse proxy ALL requests will be originating from localhost and thus be local. I do pass the X-Real-IP and X-Forwarded-For via nginx, but ASP.NET seems to completely ignore this. Any idea?