server { location /images/ { root /data; } location / { proxy_pass http://www.example.com; } }