Varnishing Wordpress
Mixing Varnish and HTTPS is usually a pain in the ass. Even more when Wordpress is involved. The common setup is to expose Nginx on the 443 port, let him handle the HTTPS connections, proxying to Varnish, and fetching back from Nginx - in HTTP - listening on a high port to serve regular contents. In the last step the request arriving to Wordpress is in plain HTTP, so the CMS generates HTTP URLs for included CSS and JS files, and the browser rejects to include such files when visiting…