1234567891011121314151617181920212223242526 |
- location ~ \.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|wmv|wma|mp3|mpg|avi|mpeg|mp4|divx|ttf|woff2|woff|swf|scss|svg|mo|po|pot|eot|xap|json|md)$ {
-
- index index.html index.htm index.php index.shtml;
- access_log off;
- expires 14d;
- #try_files $uri @apache;
- #valid_referers none blocked server_names ~(yandex|google|yahoo|bing|facebook|fbcdn|anyother.domain.tld);
- #if ($invalid_referer) {
- # return 403;
- # }
- }
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root html;
- }
- location ~ /\.ht {
- deny all;
- }
- #if ($scheme = http) {
- # return 301 https://$server_name$request_uri;
- #}
- location ^~ /.well-known/acme-challenge/ {
- }
|