Skip to content

Commit

Permalink
redirect from www
Browse files Browse the repository at this point in the history
  • Loading branch information
l3pp4rd committed Dec 28, 2015
1 parent 85f3dc6 commit 7f54bd0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ansible/roles/app/templates/nginx.conf.j2
@@ -1,5 +1,10 @@
# vi: set ft=nginx ts=4 sw=4 sts=4 :

server {
server_name www.{{ hostname }};
return 301 $scheme://{{ hostname }}$request_uri;
}

server {
listen 80;

Expand Down

0 comments on commit 7f54bd0

Please sign in to comment.