How to configure a reverse proxy from nginx to apache2 via https:
in your nginx vhost config:
location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_pass https://localhost:9002;
Then you need to change the apache2 ssl port to 9002 that nginx can connect to apache2 over the other port: