- location / {
- try_files $uri $uri/ =404;
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_pass $fpmpool;
- include fastcgi.conf;
- }
- location ~* \.(gif|jpg|jpeg|png|bmp|wmv|avi|mpg|mpeg|mp4|htm|html|js|css|deb|bz2|swf|pdf|ico|txt|woff|woff2)$ {
- expires max;
- access_log off;
- log_not_found off;
- }
|