User Tools

Site Tools


varnish_default.vcl

This is an old revision of the document!



Warning: Undefined variable $state in /usr/share/nginx/html/lib/plugins/tabinclude/helper.php on line 130

Warning: Undefined variable $html in /usr/share/nginx/html/lib/plugins/tabinclude/helper.php on line 240

Varnish default.vcl Configuration

  • Real IP

Show real IP

Note: You will need a combination of varnish configuration and log configuration for the web server:
/etc/varnish/default.vcl

sub vcl_recv {
    if (req.restarts == 0) {
    if (!req.http.x-forwarded-for) {
    set req.http.X-Forwarded-For = client.ip;
}

varnish_default.vcl.1456476884.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki