Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Improved nginx.conf for Ruby On Rails
Redd Vinylene
10/6/2008 9:06:00 AM
I've been trying to improve the standard nginx.conf for Ruby On Rails
(
http://wiki.codemongers.com/NginxRubyonRa...
) with the help of
Maxim Dounin, and so far this is what we got:
-
user www www;
worker_processes 5;
events { worker_connections 1024; }
http {
include /usr/local/etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
upstream mongrel {
server 127.0.0.1:5000;
server 127.0.0.1:5001;
server 127.0.0.1:5002;
}
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect false;
server {
listen 80;
server_name mysite.com www.mysite.com;
root /usr/local/www/mysite/public;
location / {
error_page 404 = @fallback;
}
location @fallback {
proxy_pass http://mongrel;
proxy_intercept_errors on;
recursive_error_pages on;
error_page 500 502 503 504 /500.html;
}
location = /500.html {}
}
}
-
Anybody care to chip in?
--
http://www.home.no/re...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Improved nginx.conf for Ruby On Rails
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password