Corrections : etc/nginx/org/heureux-cyclage/www
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Fri, 20 Mar 2015 12:05:14 +0000 (13:05 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Fri, 20 Mar 2015 12:05:14 +0000 (13:05 +0100)
srv/ateliers/etc/nginx/org/heureux-cyclage/www/common.conf.m4
srv/ateliers/etc/nginx/org/heureux-cyclage/www/server.conf.m4

index 89f972e..2fe799c 100644 (file)
@@ -1,6 +1,5 @@
 server_name
-    www.heureux-cyclage.org
-    heureux-cyclage.org;
+    www.heureux-cyclage.org;
 root /home/www/data/lhc-www/www;
 index index.php;
 
index 45f349c..5ef111f 100644 (file)
@@ -3,8 +3,6 @@ define(`SITE',`DOMAIN/www')dnl
 server {
        listen 80;
        include /etc/nginx/SITE/common.conf;
-       
-       return 301 http://www.heureux-cyclage.org$request_uri;
  }
 server {
        listen 443;
@@ -13,3 +11,13 @@ server {
        ssl_certificate     /etc/nginx/DOMAIN/crt.pem;
        ssl_certificate_key /etc/nginx/DOMAIN/key.pem;
 }
+server {
+       server_name heureux-cyclage.org;
+       listen 80;
+       return 301 http://www.heureux-cyclage.org$request_uri;
+ }
+server {
+       server_name heureux-cyclage.org;
+       listen 443;
+       return 301 https://www.heureux-cyclage.org$request_uri;
+}