aboutsummaryrefslogtreecommitdiffstats
path: root/doc/nginx.conf
blob: e2e4e3c1316abd5a283511aeea02c95dde3e79ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
server {
    listen 80;
    listen [::]:80;
    server_name  piccast.memeschemes.com;

    access_log  /var/log/nginx/access.log;

    location / {
        # Fallthrough to django if file not found
        fastcgi_param PATH_INFO $fastcgi_script_name;
        fastcgi_param REQUEST_METHOD $request_method;
        fastcgi_param QUERY_STRING $query_string;
        fastcgi_param SERVER_NAME $server_name;
        fastcgi_param SERVER_PORT $server_port;
        fastcgi_param SERVER_PROTOCOL $server_protocol;
        fastcgi_param CONTENT_TYPE $content_type;
        fastcgi_param CONTENT_LENGTH $content_length;
        fastcgi_pass_header Authorization;
        fastcgi_intercept_errors off;
        if (!-f $request_filename) {
            fastcgi_pass   unix:/srv/http/piccast.memeschemes.com/django.sock;
            break;
        }

        root   /srv/http/piccast.memeschemes.com/www;
        index index.html index.htm;
    }
}