Reverse proxy changes that should work with and without an actual proxy.