Skip to content

Instantly share code, notes, and snippets.

@codersofthedark
Created April 8, 2013 07:42
Show Gist options
  • Save codersofthedark/5334960 to your computer and use it in GitHub Desktop.
Save codersofthedark/5334960 to your computer and use it in GitHub Desktop.
Nginx config
# primary server - proxypass to Django
server {
listen 80;
server_name dev.testproject.com;
access_log off;
error_log off;
# proxy to Apache 2 and mod_python
location / {
proxy_pass http://127.0.0.1:8080/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_max_temp_file_size 0;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment