'which is the "vcl_backend_response" method

('/etc/varnish/default.vcl' Line 97 Pos 5) sub vcl_backend_response { ----####################-- ...which is the "vcl_backend_response" method Legal returns are: "abandon" "deliver" "fail" "pass" "retry" Running VCC-compiler failed, exited with 2 VCL compilation failed

my code is : sub vcl_backend_response { if ( beresp.status == 500 || beresp.status == 502 || beresp.status == 503 || beresp.status == 504 || beresp.status == 400 || beresp.status == 404 || beresp.status == 403 ){ set beresp.uncacheable = true; } include "/etc/varnish/additional_vcls/resp.vcl"; if (bereq.http.X-Application ~ "(?i)wordpress") { include "/etc/varnish/backend_response/wordpress.vcl"; } else if (bereq.http.X-Application ~ "(?i)drupal") { include "/etc/varnish/backend_response/drupal.vcl"; } else if (bereq.http.X-Application ~ "(?i)woocommerce") { include "/etc/varnish/backend_response/woocommerce.vcl"; } else if (bereq.http.X-Application ~ "(?i)magento") { if (bereq.http.X-Version) { if (bereq.http.X-Version ~ "^2") { include "/etc/varnish/backend_response/magento2.vcl"; } else { include "/etc/varnish/backend_response/magento.vcl"; } } else { include "/etc/varnish/backend_response/magento.vcl"; } } else if (bereq.http.X-Application ~ "(?i)mediawiki") { include "/etc/varnish/backend_response/mediawiki.vcl"; } else if (bereq.http.X-Application ~ "(?i)joomla") { include "/etc/varnish/backend_response/joomla.vcl"; } else if (bereq.http.X-Application ~ "(?i)phpstack") { include "/etc/varnish/backend_response/phpstack.vcl"; } else { include "/etc/varnish/backend_response/default.vcl"; } }

sub vcl_backend_response { if ( beresp.status == 500 || beresp.status == 502 || beresp.status == 503 || beresp.status == 504 || beresp.status == 400 || beresp.status == 404 || beresp.status == 403 ){ set beresp.uncacheable = true; } include "/etc/varnish/additional_vcls/resp.vcl"; if (bereq.http.X-Application ~ "(?i)wordpress") { include "/etc/varnish/backend_response/wordpress.vcl"; } else if (bereq.http.X-Application ~ "(?i)drupal") { include "/etc/varnish/backend_response/drupal.vcl"; } else if (bereq.http.X-Application ~ "(?i)woocommerce") { include "/etc/varnish/backend_response/woocommerce.vcl"; } else if (bereq.http.X-Application ~ "(?i)magento") { if (bereq.http.X-Version) { if (bereq.http.X-Version ~ "^2") { include "/etc/varnish/backend_response/magento2.vcl"; } else { include "/etc/varnish/backend_response/magento.vcl"; } } else { include "/etc/varnish/backend_response/magento.vcl"; } } else if (bereq.http.X-Application ~ "(?i)mediawiki") { include "/etc/varnish/backend_response/mediawiki.vcl"; } else if (bereq.http.X-Application ~ "(?i)joomla") { include "/etc/varnish/backend_response/joomla.vcl"; } else if (bereq.http.X-Application ~ "(?i)phpstack") { include "/etc/varnish/backend_response/phpstack.vcl"; } else { include "/etc/varnish/backend_response/default.vcl"; } }



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source