To ensure full compatibility of GeoIP redirect module with Varnish Cache, you need to change the settings on the web server side.
To change the settings, you have 2 options:
For nginx, add the following code anywhere in the nginx.conf file:
set_real_ip_from <varnish-ip>;
For apache, add the following string anywhere in the .htaccess file:
RemoteIPTrustedProxy <varnish-ip>;
Here, <varnish-ip> is the IP address of the varnish server.
Enhance your Magento 2 store's search capabilities with Amasty's Elasticsearch Extension. This powerful tool improves search accuracy and speed, helping your customers find products more easily. Experience seamless integration and increased conversion rates by upgrading your store's search functionality today!
See more details on GeoIP Redirect for Magento 2 page
Login and Registration Form