server {
    listen       80;
    server_name  tms.;
    client_max_body_size 3m;
    gzip_static on;

    #charset koi8-r;

    #access_log  /var/www/my.bccn.net/log/host.access.log;

    location / {
        root   /var/www/tagmanager/;
        uwsgi_pass  127.0.0.1:8000;
        include     uwsgi_params;
        access_log  off;
    }

    location ^~/c/{
        alias /var/www/tagmanager/c/;
        break;
        expires off;
        etag off;
    }
    location ^~/static/{
        alias /var/www/tagmanager/static/;
        break;
        expires 100d;
        if_modified_since off;
        add_header Last-Modified '';
        etag off;
    }
    location ^~/media/{
        alias /var/www/tagmanager/media/;
        break;
        expires 100d;
    }

    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }
}