http2.conf 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. Protocols h2 h2c http/1.1
  2. # # HTTP/2 push configuration
  3. #
  4. # H2Push on
  5. #
  6. # # Default Priority Rule
  7. #
  8. # H2PushPriority * After 16
  9. #
  10. # # More complex ruleset:
  11. #
  12. # H2PushPriority * after
  13. # H2PushPriority text/css before
  14. # H2PushPriority image/jpeg after 32
  15. # H2PushPriority image/png after 32
  16. # H2PushPriority application/javascript interleaved
  17. #
  18. # # Configure some stylesheet and script to be pushed by the webserver
  19. #
  20. # <FilesMatch "\.html$">
  21. # Header add Link "</style.css>; rel=preload; as=style"
  22. # Header add Link "</script.js>; rel=preload; as=script"
  23. # </FilesMatch>
  24. # Since mod_http2 doesn't support the mod_logio module (which provide the %O format),
  25. # you may want to change your LogFormat directive as follow:
  26. #
  27. # LogFormat "%v:%p %h %l %u %t \"%r\" %>s %B \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
  28. # LogFormat "%h %l %u %t \"%r\" %>s %B \"%{Referer}i\" \"%{User-Agent}i\"" combined
  29. # LogFormat "%h %l %u %t \"%r\" %>s %B" common