i am trying to put nginx as a application server for magento with varnish being on top and pound as ssl termination , problem is the whole setup result to nasty redirect loop. using apache and adding "SetEnvIf X-Forwarded-Proto https HTTPS=on" in .htacess save the day . still need to run it on nginx, can some one please provide the solution for the same .
Why do you need to overcomplicate things so much? Get rid of pound. Use Nginx for SSL termination:
SSL request flow: Nginx -> Varnish -> Nginx (80) -> PHP-FPM
Normal request: Varnish -> Nginx (80) -> PHP-FPM