default.conf 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. server {
  2. listen 80;
  3. root /var/www/d7;
  4. index index.html index.php;
  5. server_name dev.d7.popsu.archi.fr;
  6. charset utf-8;
  7. location / {
  8. try_files $uri $uri/ /index.php?$query_string;
  9. }
  10. location = /favicon.ico { access_log off; log_not_found off; }
  11. location = /robots.txt { access_log off; log_not_found off; }
  12. access_log on;
  13. error_log /var/log/nginx/error-d7.log error;
  14. sendfile off;
  15. client_max_body_size 100m;
  16. location ~ \.php$ {
  17. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  18. fastcgi_pass php_d7:9000;
  19. fastcgi_index index.php;
  20. include fastcgi_params;
  21. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  22. fastcgi_intercept_errors off;
  23. fastcgi_buffer_size 16k;
  24. fastcgi_buffers 4 16k;
  25. }
  26. location ~ /\.ht {
  27. deny all;
  28. }
  29. }
  30. server {
  31. listen 80;
  32. root /var/www/d9/web;
  33. index index.html index.php;
  34. server_name dev.d9.popsu.archi.fr;
  35. charset utf-8;
  36. location / {
  37. try_files $uri $uri/ /index.php?$query_string;
  38. }
  39. location = /favicon.ico { access_log off; log_not_found off; }
  40. location = /robots.txt { access_log off; log_not_found off; }
  41. access_log on;
  42. error_log /var/log/nginx/error-d9.log error;
  43. sendfile off;
  44. client_max_body_size 100m;
  45. location ~ \.php$ {
  46. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  47. fastcgi_pass php_d9:9000;
  48. fastcgi_index index.php;
  49. include fastcgi_params;
  50. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  51. fastcgi_intercept_errors off;
  52. fastcgi_buffer_size 16k;
  53. fastcgi_buffers 4 16k;
  54. }
  55. location ~ /\.ht {
  56. deny all;
  57. }
  58. }