Skip to content

Instantly share code, notes, and snippets.

@fixlr
Created April 14, 2009 19:41
Show Gist options
  • Save fixlr/95382 to your computer and use it in GitHub Desktop.
Save fixlr/95382 to your computer and use it in GitHub Desktop.
Simple modification to DSpace to allow IP-based authorization while Tomcat is behind a proxy
184c184
< String addr = request.getRemoteAddr();
---
> String addr = request.getHeader("x-real-ip");
> if (addr == null) {
> addr = request.getRemoteAddr();
> }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment