Skip to content

Commit

Permalink
Merge pull request #5 from unboxed/www_redirect_use_base_domain
Browse files Browse the repository at this point in the history
[www_redirect_use_base_domain] Redirect to www.{{nginx_base_domain}
  • Loading branch information
nickjj committed Mar 28, 2015
2 parents dce91b4 + 9701f89 commit 19a3e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/nginx_sites-available.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ map $scheme $sts {
server {
listen {{ nginx_listen }};
server_name {{ nginx_base_domain }};
return 301 $scheme://www.{{ nginx_server_name }}$request_uri;
return 301 $scheme://www.{{ nginx_base_domain }}$request_uri;
}
{% endif %}

Expand Down

0 comments on commit 19a3e0d

Please sign in to comment.