GitHub clone based on Debian Squeeze Gitolite Git Git-Daemon MySQL Nginx and Mongrel Cluster » default.txt
| 1 |
upstream mongrel {
|
|---|---|
| 2 |
server 127.0.0.1:3000; |
| 3 |
server 127.0.0.1:3001; |
| 4 |
server 127.0.0.1:3002; |
| 5 |
} |
| 6 |
|
| 7 |
server {
|
| 8 |
listen 80; |
| 9 |
|
| 10 |
location / {
|
| 11 |
proxy_pass http://mongrel; |
| 12 |
proxy_set_header Host $http_host; |
| 13 |
} |
| 14 |
} |
| 15 |
|
| 16 |
server {
|
| 17 |
listen 443; |
| 18 |
|
| 19 |
ssl on; |
| 20 |
ssl_certificate /etc/nginx/ssl/server.crt; |
| 21 |
ssl_certificate_key /etc/nginx/ssl/server.key; |
| 22 |
|
| 23 |
location / {
|
| 24 |
proxy_pass http://mongrel; |
| 25 |
proxy_set_header Host $http_host; |
| 26 |
} |
| 27 |
} |