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

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/nginx/html/lib/plugins/tabinclude/helper.php:240) in /usr/share/nginx/html/inc/Action/Export.php on line 106

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/nginx/html/lib/plugins/tabinclude/helper.php:240) in /usr/share/nginx/html/inc/Action/Export.php on line 106
varnish_default.vcl

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;
}