Letractively / rubycas-server

Automatically exported from code.google.com/p/rubycas-server
GNU Lesser General Public License v2.1
0 stars 0 forks source link

X_FORWARDED_FOR header #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Could you add the X_FORWARDED_FOR environment variable so that those of us
who are behind an Aoache server can pick up the forwarded ip address?

Right now, I am checking for the the env['X_FORWARDED_FOR'] variable on the
env['REMOTE_HOST'] || env['REMOTE_ADDR'] lines.

Thanks alot.

Original issue reported on code.google.com by mrcspar...@gmail.com on 4 Apr 2008 at 5:00

GoogleCodeExporter commented 8 years ago
Will do. I've been meaning to do this for our needs too -- we've got the same 
problem.

Original comment by matt.zuk...@gmail.com on 4 Apr 2008 at 8:18

GoogleCodeExporter commented 8 years ago

Original comment by matt.zuk...@gmail.com on 4 Apr 2008 at 8:18

GoogleCodeExporter commented 8 years ago
Fixed in svn as of revision 291.

Note that the header I'm checking is HTTP_X_FORWARDED_FOR, not X_FORWARDED_FOR 
(the
HTTP_ one is what Apache and Pound appear to be using).

Original comment by matt.zuk...@gmail.com on 13 May 2008 at 4:58