Removing redirect for www. subdomain, seems unnecessary
This commit is contained in:
parent
c0b00070ea
commit
bdfb8ca441
1 changed files with 1 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue