Advertisement
RedFoxy

php.conf

Mar 24th, 2017
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.96 KB | None | 0 0
  1. location ~ \.php$
  2. {
  3.   location ~ \..*/.*\.php$ { return 403; }
  4.   try_files $uri =404;
  5.  
  6. # fastcgi_pass  127.0.0.1:9999;
  7.   fastcgi_pass  backend;
  8. #  fastcgi_pass  unix:/tmp/php-fpm.php1.sock;
  9.  
  10.   fastcgi_index index.php;
  11.   fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  12.   include       /home/serverweb/etc/nginx/fastcgi_params;
  13.  
  14. #  set $test_cache 1;
  15.  
  16. #  if ($skip_cache = 0) {
  17. #    set $test_cache 0;
  18. ##      add_header test_cache 0;
  19. #  }
  20.  
  21. #  if ($skip_cache = 1) {
  22. #    set $test_cache 0;
  23. ##      add_header test_cache 0;
  24. #  }
  25.  
  26. ## se $skip_cache non è impostato a 0 o 1 allora escludiamo la cache a priori
  27. #  if ($test_cache = 1 ) {
  28. #    set $skip_cache 1;
  29. ##   add_header test_cache 1;
  30. #  }
  31.  
  32. #  fastcgi_cache_bypass $skip_cache;
  33. #  fastcgi_no_cache $skip_cache;
  34. #  fastcgi_cache cache_zone;
  35. #  fastcgi_cache_valid 60m;
  36.  
  37. #  location ~ /purge(/.*) {
  38. #    fastcgi_cache_purge cache_zone "$scheme$request_method$host$1";
  39. #  }
  40.  
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement