Alias /dolibarr /usr/share/dolibarr

<DirectoryMatch /usr/share/dolibarr/>
  Options +FollowSymLinks +Indexes

  ErrorDocument 401 /public/error-401.html
  ErrorDocument 404 /public/error-404.php

  <IfModule mod_php4.c>
    php_flag magic_quotes_gpc Off
    php_flag track_vars On
    php_flag register_globals On
  </IfModule>

</DirectoryMatch>

<DirectoryMatch /usr/share/dolibarr/public/>
    AllowOverride All
    Order deny,allow
    Allow from all
</DirectoryMatch>

<DirectoryMatch /usr/share/dolibarr/theme/>
    AllowOverride All
    Order deny,allow
    Allow from all
</DirectoryMatch>
