Guest User

Untitled

a guest
Jul 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. # PHP proxy
  2. location ~* .php$ {
  3. expires -1;
  4. try_files $uri =404;
  5. fastcgi_index index.php;
  6. fastcgi_pass unix:/var/run/php-fpm/www.sock;
  7. include /etc/nginx/fastcgi_params;
  8. include /etc/nginx/fastcgi_params_env;
  9. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  10. fastcgi_param SCRIPT_NAME $fastcgi_script_name;
  11. }
  12.  
  13. map $sent_http_content_type $expires {
  14. default -1;
  15. application/rss+xml off;
  16. application/pdf max;
  17. ~image/ 365d;
  18. }
  19.  
  20. expires $expires;
Add Comment
Please, Sign In to add comment