This question already has an answer here:
Our architecture is:
- SSL (nginx) listen on port 443
- Varnish listen on port 80
- Magento (apache) listen on port 8080
Routing is in the follow order:
- SSL server
Note: All the servers are virtual servers.
I changed in Magento Settings the Secure Base Url to https://www.ourdomain.com
Thanks in advance!