vhost_static.conf 896 B

1234567891011121314151617181920212223242526
  1. 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)$ {
  2. index index.html index.htm index.php index.shtml;
  3. access_log off;
  4. expires 14d;
  5. #try_files $uri @apache;
  6. #valid_referers none blocked server_names ~(yandex|google|yahoo|bing|facebook|fbcdn|anyother.domain.tld);
  7. #if ($invalid_referer) {
  8. # return 403;
  9. # }
  10. }
  11. error_page 500 502 503 504 /50x.html;
  12. location = /50x.html {
  13. root html;
  14. }
  15. location ~ /\.ht {
  16. deny all;
  17. }
  18. #if ($scheme = http) {
  19. # return 301 https://$server_name$request_uri;
  20. #}
  21. location ^~ /.well-known/acme-challenge/ {
  22. }