httpd-dolibarr.conf 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. # Apache config file for Dolibarr
  2. <IfModule mod_alias.c>
  3. Alias /dolibarr /usr/share/dolibarr/htdocs
  4. </IfModule>
  5. # You can also use dolibarr as a VirtualHost
  6. # <VirtualHost *:*>
  7. # ServerName mydolibarrhostname.com
  8. # ServerAdmin root@example.com
  9. # DocumentRoot /usr/share/dolibarr/
  10. # ErrorLog logs/ldap.example.com-error.log
  11. # CustomLog logs/ldap.example.com-access.log common
  12. # </VirtualHost>
  13. # Directory for web pages
  14. <DirectoryMatch /usr/share/dolibarr>
  15. <IfVersion >= 2.3>
  16. Require all granted
  17. </IfVersion>
  18. <IfVersion < 2.3>
  19. Order deny,allow
  20. Allow from all
  21. </IfVersion>
  22. DirectoryIndex index.php
  23. Options +FollowSymLinks +Indexes
  24. ErrorDocument 401 /public/error-401.php
  25. ErrorDocument 404 /public/error-404.php
  26. # OPTIMIZE: To use gzip compressed files (for Dolibarr already compressed files).
  27. # Note that constant MAIN_OPTIMIZE_SPEED must have a value with bit 0 set.
  28. #AddType text/javascript .jgz
  29. #AddEncoding gzip .jgz
  30. # OPTIMIZE: To use gzip compression (on the fly).
  31. # Note that you must also enable the module mod_deflate.
  32. # You can also set this with constant MAIN_OPTIMIZE_SPEED and bit 2 set.
  33. #TODO
  34. # OPTIMIZE: To use cache on static pages (A259200 = 1 month).
  35. # Note that you must also enable the module mod_expires.
  36. #ExpiresActive On
  37. #ExpiresByType image/x-icon A2592000
  38. #ExpiresByType image/gif A2592000
  39. #ExpiresByType image/png A2592000
  40. #ExpiresByType image/jpeg A2592000
  41. #ExpiresByType text/css A2592000
  42. #ExpiresByType text/javascript A2592000
  43. #ExpiresByType application/x-javascript A2592000
  44. #ExpiresByType application/javascript A2592000
  45. </DirectoryMatch>
  46. # Directory for public pages
  47. <DirectoryMatch /usr/share/dolibarr/public>
  48. <IfVersion >= 2.3>
  49. Require all granted
  50. </IfVersion>
  51. <IfVersion < 2.3>
  52. Order deny,allow
  53. Allow from all
  54. </IfVersion>
  55. AllowOverride All
  56. </DirectoryMatch>
  57. # Config files
  58. <DirectoryMatch /etc/dolibarr>
  59. <IfVersion >= 2.3>
  60. Require all granted
  61. </IfVersion>
  62. <IfVersion < 2.3>
  63. Order deny,allow
  64. Allow from all
  65. </IfVersion>
  66. AllowOverride All
  67. </DirectoryMatch>
  68. # Directory for data files
  69. <DirectoryMatch /usr/share/dolibarr/documents>
  70. <IfVersion >= 2.3>
  71. Require all granted
  72. </IfVersion>
  73. <IfVersion < 2.3>
  74. Order deny,allow
  75. Allow from all
  76. </IfVersion>
  77. AllowOverride All
  78. </DirectoryMatch>
  79. <DirectoryMatch /var/lib/dolibarr/documents>
  80. <IfVersion >= 2.3>
  81. Require all granted
  82. </IfVersion>
  83. <IfVersion < 2.3>
  84. Order allow,deny
  85. Allow from all
  86. </IfVersion>
  87. AllowOverride All
  88. </DirectoryMatch>