Ubuntu Pastebin

Paste from SmOkE_RU at Mon, 28 Sep 2015 19:58:21 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
upstream unicorn {
    server unix:/home/developer/WWW/rubyDrive/shared/run/unicorn.sock fail_timeout=0;
}

server {
    listen 80;
    root /home/developer/WWW/rubyDrive/current/public;
    try_files $uri/index.html $uri.html $uri @app;
    location ^~ /assets/ {
        expires max;
        add_header Cache-Control public;
    }
    location @app {
        proxy_pass http://unicorn;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_redirect off;
    }

    error_page 500 502 503 504 /500.html;
    location = /500.html {
        root /home/developer/WWW/rubyDrive/current/public;
    }
}
Download as text