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
We use cookies to help improve our services, make personal offers, and enhance your experience. If you do not accept optional cookies below, your experience may be affected. If you want to know more, please read the Cookie Policy
Please select and accept your Cookies Group
Cookie Name | Cookie Provider | Cookie Description | Cookie Lifetime | Cookie Type |
---|---|---|---|---|
Login and Registration Form