ANS Documentation

Improve This Doc
  • Cloud
  • Domains and DNS management
  • Backup and High Availability
  • eCommerce Stacks
    • Magento
      • Magento 1
      • Magento 2
    • Shopware
    • WooCommerce
    • AeroCommerce
  • Security
  • Email
  • Monitoring and usage management
  • Networking
  • Operating systems
  • Webcelerator
  • MyUKFast
  • Home >
  • eCommerce Stacks >
  • Magento >
  • Magento 2 >
  • Varnish

Varnish¶

Varnish is recommended for Full Page Caching with Magento2. Website performance is greatly increased when using Varnish.

Traffic flow on a single server with Varnish is typically:

  • Port 80 (Varnish) -> Port 8080 (NGINX) -> PHP-FPM

  • Port 443 (NGINX) - Port 80 (Varnish) -> Port 8080 (NGINX) -> PHP-FPM

  • Varnish
    • Install Varnish
      • Version 7.0
        • CentOS
        • Ubuntu
        • DAEMON_OPTS
    • Example VCL
    • Configuration Test
    • Start Varnish
      • Start On Boot
    • Reload Varnish
    • Restart Varnish
    • Version Check
    • Varnishlog
      • Monitor for Purge requests
      • Monitor HTTP response code (Example 503)
      • Filter varnishlog by IP address
    • Generate VCL in Magento2
    • Set Varnish for FPC in Magento2
    • Health Check
      • Health Check Status
    • Cache Static Files
    • Too many restarts
    • HIT/MISS Headers
    • cacheable="false"
    • Exclude Domain From Cache
    • Exclude URI From Cache
    • HTTP -> HTTPS Redirect
    • Custom 503 Error page
      • Custom error page for all sites
      • Custom error page for a single site
    • Load balancing
      • import directors
      • Create/add backends:
      • Directors
      • Set Backend
    • Purge Cache
    • SSL Termination
    • SSL Offloading
  • Default VCL Config

Next Article > Varnish

  • Useful Links
  • SMB
  • Enterprise
  • Channel
  • Public Sector
  • ANS Data Centres
  • About ANS
  • Careers
  • Blog
  • Get in touch
  •  
  • Sales 0800 458 4545
  • Support 0800 230 0032
  • Get in touch

© ANS Group Limited | Terms and Conditions | Corporate Guidance | Sitemap
ANS Group Limited, registered in England and Wales, company registration number 03176761, registered office 1 Archway, Birley Fields, Manchester M15 5QJ