This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
Manage Maintenance mode by IP with Varnish #1072
Labels
Not DevDocs
Issue/PR belongs in different forum; not DevDocs related
Feedback on page: /guides/v2.1/install-gde/install/cli/install-cli-subcommands-maint.html
How can we activate Maintenance mode by IPs working with Varnish ?
First I update the nginx configuration in order to retrieve the real customer IP 👍
set_real_ip_from 127.0.0.1; #Put the Ip of your varnish/proxy here
real_ip_header X-Forwarded-For; #Put the Header that your varnish/proxy set
But how can I manage the page which is already cached by Varnish and then is not retrieved by Nginx.
It can be an issue if the site is open for a specific IP, then varnish cache these pages, then other IPs will be able to see these pages.
Many thanks.
The text was updated successfully, but these errors were encountered: