Skip to content

Commit

Permalink
Merge pull request geerlingguy#107 from lioman/master
Browse files Browse the repository at this point in the history
fix vhost.j2
  • Loading branch information
geerlingguy authored Jun 7, 2017
2 parents 41f9d4f + 7e0a33c commit 62e952d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/vhost.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% block server_redirect %}
{% if item.server_name_redirect is defined %}
server {
listen {{ item.listen | default('80') }};
server_name {{ item.server_name_redirect }};
return 301 $scheme://{{ item.server_name.split(' ')[0] }}$request_uri;
Expand Down

0 comments on commit 62e952d

Please sign in to comment.