Ajout : lhc-www/http.conf
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Sat, 19 Oct 2013 14:46:50 +0000 (16:46 +0200)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Sat, 19 Oct 2013 14:47:30 +0000 (16:47 +0200)
Ajout : etc/nginx/site.d/lhc-www/http.conf

etc/nginx/site.d/lhc-www/http.conf [new file with mode: 0644]
etc/nginx/site.d/lhc-www/site.conf

diff --git a/etc/nginx/site.d/lhc-www/http.conf b/etc/nginx/site.d/lhc-www/http.conf
new file mode 100644 (file)
index 0000000..4c5740d
--- /dev/null
@@ -0,0 +1,7 @@
+server {
+       listen 80;
+       server_name
+        heureux-cyclage.org;
+       
+       return 301 http://www.heureux-cyclage.org$request_uri;
+ }
index 6c3729c..da1e35e 100644 (file)
@@ -1,7 +1,5 @@
 server_name
 server_name
-    www.heureux-cyclage.org
-    heureux-cyclage.org
-    devel.heureux-cyclage.org;
+    www.heureux-cyclage.org;
 root /home/www/data/lhc-www/www;
 index index.php;
 
 root /home/www/data/lhc-www/www;
 index index.php;