Use following code for setting up Nginx for rails.
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;</code>
log_format main '$remote_addr - $remote_user [$time_local] $request '
'"$status" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
# Timeouts
client_body_timeout 5;
client_header_timeout 5;
keepalive_timeout 55;
send_timeout 5;
upstream mongrel_cluster {
server 127.0.0.1:3000;
server 127.0.0.1:3001;
server 127.0.0.1:3002;
}
server {
listen 80;
server_name localhost.localdomain;
#charset koi8-r;
#access_log logs/host.access.log main;
#for images routing
location ~* ^/(images|stylesheets|javascripts).+\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$
{
root /var/www/html/Projects/Project_Name/public;
}
# concurs with nginx's one
location / {
proxy_pass http://mongrel_cluster;
#Fix for host name and redirection to domain
}
}
<code>
Pingback: uberVU - social comments
I’ve just started off a blog, the knowledge you give on this site has aided me extremely. Thank you for all your time & work.
Intriguing post. I have been searching for some good resources for solar panels and discovered your blog. Planning to bookmark this one!
I’ve been checking your blog for a while now, seems like everyday I learn something new
Thanks
I would like to say “wow” what a inspiring post. This is really great. Keep doing what you’re doing!!
Thanks for posting. Good to see that not everyone is using RSS feeds to build their blogs
Awesome post. I so good to see someone taking the time to share this information
I REALLY liked your post and blog! It took me a minute bit to find your site…but I bookmarked it. Would you mind if I posted a link back to your post?
Great read. Thanks for the info!
Intriguing post. I have been searching for some good resources for solar panels and discovered your blog. Planning to bookmark this one!
I was just having a conversation over this I am glad I came across this it cleared some of the questions I had.
Interesting read, perhaps the best article iv’e browse today. We learn everyday cheers to you!
This post makes a lot of sense !
Awesome post. I so good to see someone taking the time to share this information
This post makes a lot of sense !