upstream app_server server unix tmp unicorn sock fail_timeout server l

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
upstream app_server {
server unix:/tmp/unicorn.sock fail_timeout=0;
}
server {
listen 80 default;
client_max_body_size 1G;
server_name .staging2.pkw.de;
keepalive_timeout 5;
root /data/web/pkwde/current/public;
#try_files $uri/index.html $uri.html $uri @myapp;
location / {
proxy_pass http://app_server;
proxy_set_header X-Forwaded-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 /data/web/pkwde/current/public;
#}
}