X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Flhc-www%2Fsite.conf;h=158a7a8a8e94b76e635ec326c84a049734754ea1;hp=a866306ffa517380782434ecdce0e1977600501c;hb=b7595a000cae850e0702938336ce116376bc7d67;hpb=e61ce31922a217eafcaa2a2d05d906f9032133e9 diff --git a/etc/nginx/site.d/lhc-www/site.conf b/etc/nginx/site.d/lhc-www/site.conf index a866306..158a7a8 100644 --- a/etc/nginx/site.d/lhc-www/site.conf +++ b/etc/nginx/site.d/lhc-www/site.conf @@ -3,7 +3,6 @@ server_name www.heureux-cyclage.org heureux-cyclage.org; client_body_buffer_size 8k; client_max_body_size 10m; location / { - root /home/www/pub/lhc-www; index index.html index.htm index.php; } location ~* ^.+.(css|gif|html|ico|jpeg|js|jpg|png|txt|xml)$ { @@ -37,8 +36,11 @@ location ~ \.php$ { fastcgi_cache_valid 200 10s; fastcgi_cache_valid 404 10m; fastcgi_ignore_headers Cache-Control Expires Set-Cookie; + fastcgi_index index.php; fastcgi_max_temp_file_size 2M; fastcgi_no_cache $no_cache; + fastcgi_param REDIRECT_STATUS 200; + # NOTE: PHP only, required if PHP was built with --enable-force-cgi-redirect fastcgi_pass_header Cookie; fastcgi_pass_header Set-Cookie; fastcgi_split_path_info ^(.+\.php)(/.+)$;