Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- location ~ \.php$
- {
- location ~ \..*/.*\.php$ { return 403; }
- try_files $uri =404;
- # fastcgi_pass 127.0.0.1:9999;
- fastcgi_pass backend;
- # fastcgi_pass unix:/tmp/php-fpm.php1.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include /home/serverweb/etc/nginx/fastcgi_params;
- # set $test_cache 1;
- # if ($skip_cache = 0) {
- # set $test_cache 0;
- ## add_header test_cache 0;
- # }
- # if ($skip_cache = 1) {
- # set $test_cache 0;
- ## add_header test_cache 0;
- # }
- ## se $skip_cache non è impostato a 0 o 1 allora escludiamo la cache a priori
- # if ($test_cache = 1 ) {
- # set $skip_cache 1;
- ## add_header test_cache 1;
- # }
- # fastcgi_cache_bypass $skip_cache;
- # fastcgi_no_cache $skip_cache;
- # fastcgi_cache cache_zone;
- # fastcgi_cache_valid 60m;
- # location ~ /purge(/.*) {
- # fastcgi_cache_purge cache_zone "$scheme$request_method$host$1";
- # }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement