Heavy handed removal of if block, this is not related to try_files addition
This commit is contained in:
parent
ea7e1d5cdc
commit
38e7cc2194
1 changed files with 5 additions and 0 deletions
|
@ -11,6 +11,11 @@ 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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue