Advertisement
riespandi

apache_tweak.conf

May 8th, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. ServerSignature On
  2. ServerTokens Prod
  3. TraceEnable Off
  4.  
  5. <IfModule ssl_module>
  6. SSLProtocol all -SSLv3 -SSLv2
  7. SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
  8. SSLHonorCipherOrder on
  9. SSLSessionTickets Off
  10. SSLCompression Off
  11. SSLUseStapling on
  12. SSLStaplingCache "shmcb:logs/stapling-cache(150000)"
  13. </IfModule>
  14.  
  15. <IfModule http2_module>
  16. ProtocolsHonorOrder On
  17. Protocols h2 h2c http/1.1
  18. </IfModule>
  19.  
  20. <IfModule autoindex_module>
  21. Options +Indexes -ExecCGI +FollowSymLinks
  22. DirectoryIndex index.php index.html
  23. AddDefaultCharset UTF-8
  24. <FilesMatch "\.(sh|bat|cmd|zip|rar|gz)$">
  25. Require all denied
  26. </FilesMatch>
  27. <DirectoryMatch "\.(svn|git)$">
  28. Require all denied
  29. </DirectoryMatch>
  30. </IfModule>
  31.  
  32. <IfModule cache_module>
  33. <IfModule cache_disk_module>
  34. CacheRoot /tmp/
  35. CacheEnable disk /
  36. CacheDirLevels 2
  37. CacheDirLength 8
  38. </IfModule>
  39. </IfModule>
  40.  
  41. <IfModule mod_expires.c>
  42. ExpiresActive On
  43. ExpiresByType image/jpg "access 1 year"
  44. ExpiresByType image/jpeg "access 1 year"
  45. ExpiresByType image/gif "access 1 year"
  46. ExpiresByType image/png "access 1 year"
  47. ExpiresByType text/css "access 1 month"
  48. ExpiresByType text/html "access 1 month"
  49. ExpiresByType application/pdf "access 1 month"
  50. ExpiresByType text/x-javascript "access 1 month"
  51. ExpiresByType application/x-shockwave-flash "access 1 month"
  52. ExpiresByType image/x-icon "access 1 year"
  53. ExpiresDefault "access 1 month"
  54. </IfModule>
  55.  
  56. <FilesMatch "\\.(js|css|html|htm|php|xml)$">
  57. SetOutputFilter DEFLATE
  58. </FilesMatch>
  59.  
  60. <IfModule mod_gzip.c>
  61. mod_gzip_on Yes
  62. mod_gzip_dechunk Yes
  63. mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
  64. mod_gzip_item_include handler ^cgi-script$
  65. mod_gzip_item_include mime ^text/.*
  66. mod_gzip_item_include mime ^application/x-javascript.*
  67. mod_gzip_item_exclude mime ^image/.*
  68. mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
  69. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement