Mac OS does not implement sendfile, so this could be your problem. try: sendfile off;
and see if it helps. If it does not, keep removing lines till you get something that works, and start to build it back up (and let us know how it goes) Cheers, Pascal. -- http://blog.nanorails.com On 6/13/07, Andy Koch <[EMAIL PROTECTED]> wrote: > > > Greetings, > > I'm trying get an Nginx, mong-clust, mongrel, rails stack working on > an iMac mini that recently came into my possession. > > I've never used Nginx, thus I'm sure I'm doing something wrong. > > I installed nginx via port install... and it works and responds on : > 80. > > Now I'm trying to link the mongrel to nginx and the nginx tells me > my .conf syntax is ok but then says "test failed", with no further > info. > > My goal is to run a single rails app, I thought this the easiest > path. So the "localhost:80" should bring up my test rails app through > nginx. > > Perhaps posting my current nginx.conf hack will help you help me.... > > > ######################################## > user andy; > worker_processes 1; > error_log logs/error.log debug; > #error_log logs/error.log notice; > #error_log logs/error.log info; > #pid logs/nginx.pid; > events { > worker_connections 1024; > } > http { > #include conf/mime.types; > default_type application/octet-stream; > sendfile on; > #tcp_nopush on; > keepalive_timeout 65; > tcp_nodelay on; > gzip on; > gzip_min_length 1100; > gzip_buffers 4 8k; > gzip_types text/plain; > upstream mongrel { > server 127.0.0.1:8000; > server 127.0.0.1:8001; > server 127.0.0.1:8001; > } > server { > listen 80; > #server_name example.com; > root /Users/andy/Sites/test_rails/public; > index index.html index.htm; > location / { > 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; > if (-f $request_filename/index.html) { > rewrite (.*) $1/index.html break; > } > if (-f $request_filename.html) { > rewrite (.*) $1.html break; > } > if (!-f $request_filename) { > proxy_pass http://mongrel; > break; > } > } > error_page 500 502 503 504 /50x.html; > location = /50x.html { > root html; > } > } > } > ######################################## > > Thank You, > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~----------~----~----~----~------~----~------~--~---