I am exploring the potential scenario for Varnish/Nginx/Apache implementations and have a few questions about this setup.
I am looking to use all three in conjunction, not to replace Apache by Nginx.
At the moment I am not sure whether if Varnish should be put in front of Nginx, which will serve static content and pass dynamic content to Apache or put it between Nginx and Apache?
Should I enable Nginx cache or even enable it and not use Varnish at all?
I have a number scripts which process stats based on Apache logs, what can I do to let my scripts process logs in whole, not just Apache's logs which will hold only dynamic request stats?
How do I make Varnish pass access stats to Apache/bginx since access to cached files will not be logged by Apache/Nginx?