# HACK FOR PROXY PASS-THROUGH # First check for SERVER_SOFTWARE because it's required to be # defined for all requests in the CGI spec # Then if client is one of the proxy servers then we try to use the # HTTP_X_FORWARDED_FOR address as the client's real IP address if ( exists $ENV{SERVER_SOFTWARE} and $ENV{REMOTE_ADDR} =~ /^10\.8\.2\.15\d$/ ) { $ENV{REMOTE_ADDR} = $ENV{HTTP_X_FORWARDED_FOR} =~ /([^,\s]+)$/; }
Created attachment 295870 [details] Patch to pass through real client IP address when going through a proxy