summaryrefslogtreecommitdiffstats
path: root/roles/wiki/files/etc
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-06-01 01:32:54 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:54:08 +0200
commit21e03ec3a899d98f0fbebbdf928f10d1cdeee8e4 (patch)
tree380a672fac9a4a658c98c67024b5549901caec1f /roles/wiki/files/etc
parent64a98fd5c7a657cd98a02054a3ae36af654fc397 (diff)
Add a redirection www.fripost.org → fripost.org.
Diffstat (limited to 'roles/wiki/files/etc')
-rw-r--r--roles/wiki/files/etc/nginx/sites-available/website5
1 files changed, 3 insertions, 2 deletions
diff --git a/roles/wiki/files/etc/nginx/sites-available/website b/roles/wiki/files/etc/nginx/sites-available/website
index 9040a8c..0c25f4e 100644
--- a/roles/wiki/files/etc/nginx/sites-available/website
+++ b/roles/wiki/files/etc/nginx/sites-available/website
@@ -2,12 +2,13 @@ server {
listen 80;
listen [::]:80;
- server_name fripost.org;
+ server_name fripost.org;
+ server_name www.fripost.org;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log info;
- return 301 https://$host$request_uri;
+ return 301 https://fripost.org$request_uri;
}