X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Fsympa%2Fsite.conf;h=31d83dc989e852870ddec127a0d4668da620832c;hb=c97e10b2504a559b023d5b14c46f337f0ee95027;hp=370514ce225da18dc295933fd33bba9c3f13d92f;hpb=f1ea1df6ff4652bb89b232cb5fd5762c6fea4dcf;p=lhc%2Fateliers.git diff --git a/etc/nginx/site.d/sympa/site.conf b/etc/nginx/site.d/sympa/site.conf index 370514c..31d83dc 100644 --- a/etc/nginx/site.d/sympa/site.conf +++ b/etc/nginx/site.d/sympa/site.conf @@ -1,4 +1,7 @@ -server_name sympa.heureux-cyclage.org; +server_name + sympa.heureux-cyclage.org + sympa.cyclocoop.heureux-cyclage.org + sympa.cyclocoop.org; client_body_buffer_size 8k; client_max_body_size 10m; @@ -31,10 +34,14 @@ location / { fastcgi_cache_valid 200 10s; fastcgi_cache_valid 404 30m; fastcgi_ignore_headers Cache-Control Expires Set-Cookie; - fastcgi_max_temp_file_size 2M; fastcgi_no_cache $no_cache; - fastcgi_param PATH_INFO $uri; fastcgi_param SCRIPT_NAME ''; + set $sympa_robot $host; + if ($host = "sympa.cyclocoop.heureux-cyclage.org") { + set $sympa_robot "sympa.cyclocoop.org"; + } + fastcgi_param SERVER_NAME $sympa_robot; + fastcgi_param PATH_INFO $uri; fastcgi_pass_header Cookie; fastcgi_pass_header Set-Cookie;