Skip to content

nginx http_geoip_module with native support for instances behind proxies, works via X-Forwarded-For HTTP header.

Notifications You must be signed in to change notification settings

freerobby/ngx_http_geoip_module-xfwd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

ngx_http_geoip_module-xfwd

Update as of nginx 1.2

As of nginx 1.2, this fix is no longer necessary as the functionality has been integrated into the core module.

Original description

This is a modified version of the nginx http_geoip_module with added support for proxies without requiring use of the ngx_http_realip_module. If you use nginx behind a proxy, the bundled version of http_geoip_module will look up the IP address of the proxy rather than the client.

This module looks first at the X-Forwarded-For header, which is traditionally set to the client IP by the proxy. If the header is found, GeoIP uses that IP address rather than the client IP address.

About

nginx http_geoip_module with native support for instances behind proxies, works via X-Forwarded-For HTTP header.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages