Skip to content
Permalink
Browse files

If the sitename does NOT have a www in it, then don't build the redir…

…ecting server.
  • Loading branch information...
perlDreamer committed Feb 23, 2012
1 parent a552e9d commit 252a50d5186b3b9c8b245ad1e2ad21f53e78077d
Showing with 2 additions and 0 deletions.
  1. +2 −0 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 %];

0 comments on commit 252a50d

Please sign in to comment.
You can’t perform that action at this time.