Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. index index.php;
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9. location = /favicon.ico {
  10. log_not_found off;
  11. access_log off;
  12. }
  13.  
  14. location = /robots.txt {
  15. allow all;
  16. log_not_found off;
  17. access_log off;
  18. }
  19.  
  20. location / {
  21. # This is cool because no php is touched for static content
  22. # try_files $uri $uri/ /index.php?q=$uri&$args;
  23. expires max;
  24. log_not_found off;
  25. }
  26.  
  27. location ~ \.php$ {
  28. #NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
  29.  
  30. #DONT REFRESH MORE THAN 40 TIMES KIDS
  31. limit_req zone=pw burst=40 nodelay;
  32.  
  33.  
  34.  
  35. include fastcgi_params;
  36. fastcgi_intercept_errors on;
  37. fastcgi_index index.php;
  38. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  39. try_files $uri =404;
  40. fastcgi_pass unix:/var/run/php5-fpm.sock;
  41. error_page 404 /404page.html;
  42. }
  43.  
  44. location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
  45. expires max;
  46. log_not_found off;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement