Ajout : etc/nginx/site.d/lhc-wiklou/http.conf
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Thu, 17 Oct 2013 08:55:36 +0000 (10:55 +0200)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Thu, 17 Oct 2013 08:55:36 +0000 (10:55 +0200)
etc/nginx/site.d/lhc-wiklou/http.conf [new file with mode: 0644]
etc/nginx/site.d/lhc-wiklou/site.conf

diff --git a/etc/nginx/site.d/lhc-wiklou/http.conf b/etc/nginx/site.d/lhc-wiklou/http.conf
new file mode 100644 (file)
index 0000000..2804d7e
--- /dev/null
@@ -0,0 +1,7 @@
+server {
+       listen 80;
+       server_name
+        www.wiklou.org;
+       
+       return 301 http://wiklou.org$request_uri;
+ }
index 55e80de..861ddf8 100644 (file)
@@ -1,7 +1,6 @@
 server_name
     wiklou.heureux-cyclage.org
-    wiklou.org
-    www.wiklou.org;
+    wiklou.org;
 index index.php;
 
 client_body_buffer_size 8k;