From f57f3236d962a3f5d5699e99774b3a0f7abaa378 Mon Sep 17 00:00:00 2001 From: danielvincent Date: Sat, 13 Nov 2010 01:34:51 -0800 Subject: [PATCH] root as public directory in nginx.conf. this resolves the issue of nginx not serving static files from /public --- chef/cookbooks/common/templates/default/nginx.conf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chef/cookbooks/common/templates/default/nginx.conf.erb b/chef/cookbooks/common/templates/default/nginx.conf.erb index 2760ec14e..133f971f4 100644 --- a/chef/cookbooks/common/templates/default/nginx.conf.erb +++ b/chef/cookbooks/common/templates/default/nginx.conf.erb @@ -41,7 +41,7 @@ http { listen 80; server_name alpha.joindiaspora.com www.alpha.joindiaspora.com; - root /usr/local/app/diaspora; + root /usr/local/app/diaspora/public; location / { proxy_set_header X-Real-IP $remote_addr;