Skip to content

Commit

Permalink
Nginx: Add include.d files to redirect domains (#879)
Browse files Browse the repository at this point in the history
  • Loading branch information
tangrufus authored and fullyint committed Sep 7, 2017
1 parent 2dcdc54 commit f2b8107
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/wordpress-setup/templates/wordpress-site.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ server {

{{ self.acme_challenge() -}}

{{ self.includes_d() -}}

location / {
return 301 https://$host$request_uri;
}
Expand All @@ -217,6 +219,8 @@ server {

{{ self.acme_challenge() -}}

{{ self.includes_d() -}}

return 301 $scheme://{{ host.canonical }}$request_uri;
}
{% endfor %}
Expand Down

0 comments on commit f2b8107

Please sign in to comment.