Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. # Those aliases do not work properly with several hosts on your apache server
  2. # Uncomment them to use it or adapt them to your configuration
  3. Alias /roundcube/program/js/tiny_mce/ /usr/share/tinymce/www/
  4. Alias /roundcube /var/lib/roundcube
  5. Alias /webmail /var/lib/roundcube
  6. Alias / /var/lib/roundcube
  7.  
  8. # Access to tinymce files
  9. <Directory "/usr/share/tinymce/www/">
  10. Options Indexes MultiViews FollowSymLinks
  11. AllowOverride None
  12. Order allow,deny
  13. allow from all
  14. </Directory>
  15.  
  16. <Directory /var/lib/roundcube/>
  17. Options +FollowSymLinks
  18. DirectoryIndex index.php
  19.  
  20. <IfModule mod_php5.c>
  21. AddType application/x-httpd-php .php
  22.  
  23. php_flag magic_quotes_gpc Off
  24. php_flag track_vars On
  25. php_flag register_globals Off
  26. php_value include_path .:/usr/share/php
  27. </IfModule>
  28.  
  29. # This is needed to parse /var/lib/roundcube/.htaccess. See its
  30. # content before setting AllowOverride to None.
  31. AllowOverride All
  32. order allow,deny
  33. allow from all
  34. </Directory>
  35.  
  36. # Protecting basic directories:
  37. <Directory /var/lib/roundcube/config>
  38. Options -FollowSymLinks
  39. AllowOverride None
  40. </Directory>
  41.  
  42. <Directory /var/lib/roundcube/temp>
  43. Options -FollowSymLinks
  44. AllowOverride None
  45. Order allow,deny
  46. Deny from all
  47. </Directory>
  48.  
  49. <Directory /var/lib/roundcube/logs>
  50. Options -FollowSymLinks
  51. AllowOverride None
  52. Order allow,deny
  53. Deny from all
  54. </Directory>
  55.  
  56. <IfModule mod_rewrite.c>
  57. <IfModule mod_ssl.c>
  58. <Location /webmail>
  59. RewriteEngine on
  60. RewriteCond %{HTTPS} !^on$ [NC]
  61. RewriteRule . https://%{HTTP_HOST}:8080%{REQUEST_URI} [L]
  62.  
  63. </Location>
  64. </IfModule>
  65. </IfModule>
  66.  
  67. <IfModule mod_rewrite.c>
  68. <IfModule mod_ssl.c>
  69. <Location /roundcube>
  70. RewriteEngine on
  71. RewriteCond %{HTTPS} !^on$ [NC]
  72. RewriteRule . https://%{HTTP_HOST}:8080%{REQUEST_URI} [L]
  73. </Location>
  74. </IfModule>
  75. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement