0

I have implemented varnish for my web pages. Now, I have one doubt can i call to Apache server before serving cached content to user in this case, request flow will be varnish -> nginx ->apache

OR

can i serve varnish from apache level. in this case, request flow will be

nginx -> apache ->varnish

Nithish
  • 369
  • 1
  • 8
  • 20

1 Answers1

0

You can set it up any way you want. All depends on your particular requirements.

Typically you would want:

Nginx (for SSL) -> Varnish (caching) -> Apache (for .htaccess)

Danila Vershinin
  • 8,725
  • 2
  • 29
  • 35
  • Actually my question is, can i call to apache server before serving cache content to user from varnish??? – Nithish May 30 '17 at 08:23
  • You can put Apache in front of Varnish, but Varnish has to fetch content from somewhere (another Apache or Nginx instance). – Danila Vershinin May 30 '17 at 09:26