Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. Alias /roundcube /opt/roundcube
  2. Alias /webmail /opt/roundcube
  3.  
  4. <Directory /opt/roundcube>
  5. Options +FollowSymLinks
  6. # AddDefaultCharset UTF-8
  7. AddType text/x-component .htc
  8.  
  9. <IfModule mod_php5.c>
  10. AddType application/x-httpd-php .php
  11. php_flag display_errors Off
  12. php_flag log_errors On
  13. # php_value error_log logs/errors
  14. php_value upload_max_filesize 10M
  15. php_value post_max_size 12M
  16. php_value memory_limit 64M
  17. php_flag zlib.output_compression Off
  18. php_flag magic_quotes_gpc Off
  19. php_flag magic_quotes_runtime Off
  20. php_flag zend.ze1_compatibility_mode Off
  21. php_flag suhosin.session.encrypt Off
  22. #php_value session.cookie_path /
  23. php_flag session.auto_start Off
  24. php_value session.gc_maxlifetime 21600
  25. php_value session.gc_divisor 500
  26. php_value session.gc_probability 1
  27. </IfModule>
  28.  
  29. <IfModule mod_rewrite.c>
  30. RewriteEngine On
  31. RewriteRule ^favicon\.ico$ skins/larry/images/favicon.ico
  32. # security rules:
  33. # - deny access to files not containing a dot or starting with a dot
  34. # in all locations except installer directory
  35. RewriteRule ^(?!installer)(\.?[^\.]+)$ - [F]
  36. # - deny access to some locations
  37. RewriteRule ^/?(\.git|\.tx|SQL|bin|config|logs|temp|tests|program\/(include|lib|localization|steps)) - [F]
  38. # - deny access to some documentation files
  39. RewriteRule /?(README\.md|composer\.json-dist|composer\.json|package\.xml)$ - [F]
  40. </IfModule>
  41.  
  42. <IfModule mod_deflate.c>
  43. SetOutputFilter DEFLATE
  44. </IfModule>
  45.  
  46. <IfModule mod_expires.c>
  47. ExpiresActive On
  48. ExpiresDefault "access plus 1 month"
  49. </IfModule>
  50.  
  51. FileETag MTime Size
  52.  
  53. <IfModule mod_autoindex.c>
  54. Options -Indexes
  55. </ifModule>
  56.  
  57. AllowOverride None
  58. Require all granted
  59. </Directory>
  60.  
  61. <Directory /opt/roundcube/plugins/enigma/home>
  62. Options -FollowSymLinks
  63. AllowOverride None
  64. Require all denied
  65. </Directory>
  66.  
  67. <Directory /opt/roundcube/config>
  68. Options -FollowSymLinks
  69. AllowOverride None
  70. Require all denied
  71. </Directory>
  72.  
  73. <Directory /opt/roundcube/temp>
  74. Options -FollowSymLinks
  75. AllowOverride None
  76. Require all denied
  77. </Directory>
  78.  
  79. <Directory /opt/roundcube/logs>
  80. Options -FollowSymLinks
  81. AllowOverride None
  82. Require all denied
  83. </Directory>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement