Skip to content

Instantly share code, notes, and snippets.

@kmjones1979
kmjones1979 / nginx.conf
Last active October 1, 2023 15:50
Example NGINX configuration to route based on country code using GeoIP
# load dynamic modules
load_module /etc/nginx/modules/ngx_http_geoip_module.so;
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log info;
pid /var/run/nginx.pid;
events { worker_connections 1024; }
http {