svennd

Untitled

Mar 15th, 2017
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. location ~ \.php$ {
  2. try_files $uri =404;
  3. fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
  4. fastcgi_index index.php;
  5. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  6. # https://tweaked.io/guide/nginx/
  7. fastcgi_param SCRIPT_NAME $fastcgi_script_name;
  8. fastcgi_buffer_size 128k;
  9. fastcgi_buffers 256 16k;
  10. fastcgi_busy_buffers_size 256k;
  11. fastcgi_temp_file_write_size 256k;
  12.  
  13. include fastcgi_params;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment