Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1280efb429
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (40 sloc) 1.105 kb
upstream staging_server {
server 127.0.0.1:9000 fail_timeout=1;
}
server {
listen 80;
client_max_body_size 4G;
server_name dev.newsblur.com;
if (-f /home/sclay/staging/media/maintenance.html) {
rewrite ^(.*) http://www.newsblur.com;
break;
}
location /media/admin/ {
alias /usr/local/lib/python2.6/dist-packages/django/django/contrib/admin/media/;
}
location /media/ {
expires max;
root /home/sclay/staging;
}
location /favicon.ico {
alias /home/sclay/staging/media/img/favicon.png;
expires max;
access_log off;
}
location ^~ /crossdomain.xml {
expires max;
alias /home/sclay/staging/media/crossdomain.xml;
types {
text/x-cross-domain-policy xml;
}
}
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
if (!-f $request_filename) {
proxy_pass http://staging_server;
break;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.