locations.conf 322 B

123456789101112131415
  1. location / {
  2. try_files $uri $uri/ =404;
  3. }
  4. location ~ \.php$ {
  5. try_files $uri =404;
  6. fastcgi_pass $fpmpool;
  7. include fastcgi.conf;
  8. }
  9. location ~* \.(gif|jpg|jpeg|png|bmp|wmv|avi|mpg|mpeg|mp4|htm|html|js|css|deb|bz2|swf|pdf|ico|txt|woff|woff2)$ {
  10. expires max;
  11. access_log off;
  12. log_not_found off;
  13. }