Skip to content
Permalink
Browse files

nginx balancing

  • Loading branch information
mirakui committed Oct 31, 2015
1 parent 4f55902 commit cc4c88df228c69d6c8551978fc3f19f3dd1d5e97
Showing with 5 additions and 4 deletions.
  1. +5 −4 5f/config/nginx.conf
@@ -7,9 +7,10 @@ events {
}

http {
upstream unicorn {
server unix:/tmp/unicorn.sock fail_timeout=0;
keepalive 12;
upstream isu12 {
server srv1.example.com;
server srv2.example.com;
server srv3.example.com;
}

log_format ltsv "status:$status"
@@ -53,7 +54,7 @@ http {
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_pass http://unicorn;
proxy_pass http://isu12:8080;
}
}
}

0 comments on commit cc4c88d

Please sign in to comment.
You can’t perform that action at this time.