Paste
Pasted as Bash by registered user omemunama ( 9 years ago )
upstream walaugelap {
server unix:/tmp/unicorn.unicorn_1.sock fail_timeout=0;
}
upstream stupaing {
server unix:/tmp/unicorn.unicorn_2.sock fail_timeout=0;
}
server {
listen 80;
server_name walaugelap.com www.walaugelap.my.id;
root /home/walaugelap/walaugelap/public;
try_files $uri/index.html $uri @walaugelap;
location @walaugelap {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://walaugelap;
}
error_page 500 502 503 504 /500.html;
client_max_body_size 4G;
keepalive_timeout 10;
}
server {
listen 80;
server_name stupaing.com www.stupaing.com;
root /home/stupaing/stupaing/public;
try_files $uri/index.html $uri @stupaing;
location @stupaing {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://stupaing;
}
error_page 500 502 503 504 /500.html;
client_max_body_size 4G;
keepalive_timeout 10;
}
Revise this Paste