Setting up nginx as proxy to apache; All good, but nginx doesn't serve media
- by becomingGuru
I have set it up such that nginx proxies request and sends django requests to apache and serves media itself.
Following documents my setup:
Nginx Configuration: /etc/nginx/nginx.conf
user www-data;
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
…