From bdfb8ca441807d43d2dbb9e2077db292b16612d3 Mon Sep 17 00:00:00 2001 From: Peter Rhoades Date: Wed, 10 Jul 2013 17:40:05 +0100 Subject: [PATCH] Removing redirect for www. subdomain, seems unnecessary --- modules/projects/templates/shared/nginx.conf.erb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/projects/templates/shared/nginx.conf.erb b/modules/projects/templates/shared/nginx.conf.erb index 03c024b..3692abe 100644 --- a/modules/projects/templates/shared/nginx.conf.erb +++ b/modules/projects/templates/shared/nginx.conf.erb @@ -11,15 +11,10 @@ server { client_max_body_size 50M; error_page 500 502 503 504 /50x.html; - if ($host ~* "www") { - rewrite ^(.*)$ http://<%= @server_name %>$1 permanent; - break; - } - location = /50x.html { root html; } - + try_files $uri/index.html $uri @<%= @server_name %>; location @<%= @server_name %> { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;