Navigation Menu

Skip to content

Commit

Permalink
If the sitename does NOT have a www in it, then don't build the redir…
Browse files Browse the repository at this point in the history
…ecting server.
  • Loading branch information
perlDreamer committed Feb 23, 2012
1 parent a552e9d commit 252a50d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wre/var/setupfiles/nginx.template
@@ -1,8 +1,10 @@
##Force all domain requests, mysite.com, to go to www.mysite.com
[% IF sitename.match('^www\.') %]
server {
server_name [% domain %];
rewrite ^ $scheme://[% sitename %]$request_uri redirect;
}
[% END %]

server {
server_name [% sitename %];
Expand Down

0 comments on commit 252a50d

Please sign in to comment.