I have Nginx listening to traffic on port 80 and proxying certain request to Apache over port 8080. I am going to set up Nginx to listen to port 443 for https traffic, but my question is how should the proxying be done now? Does the proxy to Apache need to be https or has Nginx already decoded it so I can keep sending it to Apache over port 8080. BTW, Apache is running with the least amount of modules installed possible and has currently has no SSL related modules, would I need to install any?
The following solution, as proposed by Graham Dumpleton, resolved the issue of SSL redirect loops while running nginx+ssl as a proxy to apache+wsgi.
In your nginx.conf file you need to have:
While your WSGI wrapper looks something like this:
That doesn't sound like a programming question, really... but anyway: no, you do not need SSL enabled on Apache. Only the server listening for HTTPS requests (on port 443) needs SSL.
A old question, but for reference you could look at my blog post Using Nginx as SSL Proxy for Name Based VirtualHosts in Apache
It basically forwarding to apache on port 80, and using mod_rpaf (reverse proxy add forward) in apache so it will see the request as HTTPS, which is needed for frameworks who buildup their url by using the server variables.