aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2009-04-21 17:31:07 +0100
committerPratik Naik <pratiknaik@gmail.com>2009-04-21 17:31:26 +0100
commitd7d93cdb628e12e84e70a68578af1b1338a7df98 (patch)
tree4880347e3c7f835a57e9a45bd36bd955b4fdeb7c
parent398b07e655b6f643f31fb47b3cf7bc2dba009dc7 (diff)
downloadrails-d7d93cdb628e12e84e70a68578af1b1338a7df98.tar.gz
rails-d7d93cdb628e12e84e70a68578af1b1338a7df98.tar.bz2
rails-d7d93cdb628e12e84e70a68578af1b1338a7df98.zip
Fix nginx config in ci setup notes [Chad Woolley] [#2290 state:resolved]
-rw-r--r--ci/ci_setup_notes.txt17
1 files changed, 13 insertions, 4 deletions
diff --git a/ci/ci_setup_notes.txt b/ci/ci_setup_notes.txt
index b3c5936797..63f1851b19 100644
--- a/ci/ci_setup_notes.txt
+++ b/ci/ci_setup_notes.txt
@@ -54,12 +54,21 @@ ci ALL=NOPASSWD: /usr/local/bin/geminstaller, /usr/local/bin/ruby, /usr/loc
* Install/setup nginx:
$ sudo aptitude install nginx
$ sudo vi /etc/nginx/sites-available/default
+# Add the following entry at the top of the file above the 'server {' line:
+upstream mongrel {
+ server 127.0.0.1:3333;
+}
+
# Change server_name entry to match server name
-# comment two lines and add one to proxy to ccrb:
-# root /var/www/nginx-default;
-# index index.html index.htm;
- proxy_pass http://127.0.0.1:3333;
+# replace the contents of the root 'location / {}' block with the following entries:
+ proxy_pass http://mongrel;
+ proxy_redirect off;
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Client-Verify SUCCESS;
+ proxy_read_timeout 65;
# also comment default locations for /doc and /images
$ sudo /etc/init.d/nginx start