Modifications : etc/nginx/site.d/sympa/http.conf
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Tue, 18 Oct 2016 08:54:28 +0000 (10:54 +0200)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Tue, 18 Oct 2016 08:54:28 +0000 (10:54 +0200)
etc/nginx/site.d/sympa/http.conf
etc/nginx/site.d/sympa/site.conf

index b11d936..abd6f8a 100644 (file)
@@ -2,6 +2,8 @@ server {
        listen 80;
        server_name
         sympa.heureux-cyclage.org
+        sympa.chatperche.heureux-cyclage.org
+        sympa.chatperche.org
         sympa.cyclocoop.heureux-cyclage.org
         sympa.cyclocoop.org
         sympa.lesjantesdunord.heureux-cyclage.org
index 11f6ceb..e2a9114 100644 (file)
@@ -1,5 +1,7 @@
 server_name
  sympa.heureux-cyclage.org
+ sympa.chatperche.heureux-cyclage.org
+ sympa.chatperche.org
  sympa.cyclocoop.heureux-cyclage.org
  sympa.cyclocoop.org
  sympa.lesjantesdunord.heureux-cyclage.org
@@ -41,6 +43,9 @@ location / {
        fastcgi_no_cache $no_cache;
        fastcgi_param SCRIPT_NAME '';
        set $sympa_robot $host;
+       if ($host = "sympa.chatperche.heureux-cyclage.org") {
+               set $sympa_robot "sympa.chatperche.org";
+        }
        if ($host = "sympa.cyclocoop.heureux-cyclage.org") {
                set $sympa_robot "sympa.cyclocoop.org";
         }