123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- # Apache config file for Dolibarr
- <IfModule mod_alias.c>
- Alias /dolibarr /usr/share/dolibarr/htdocs
- </IfModule>
- # You can also use dolibarr as a VirtualHost
- # <VirtualHost *:*>
- # ServerName mydolibarrhostname.com
- # ServerAdmin root@example.com
- # DocumentRoot /usr/share/dolibarr/
- # ErrorLog logs/ldap.example.com-error.log
- # CustomLog logs/ldap.example.com-access.log common
- # </VirtualHost>
- # Directory for web pages
- <DirectoryMatch /usr/share/dolibarr>
- <IfVersion >= 2.3>
- Require all granted
- </IfVersion>
- <IfVersion < 2.3>
- Order deny,allow
- Allow from all
- </IfVersion>
- DirectoryIndex index.php
- Options +FollowSymLinks +Indexes
- ErrorDocument 401 /public/error-401.php
- ErrorDocument 404 /public/error-404.php
- <IfModule mod_php4.c>
- php_flag magic_quotes_gpc Off
- php_flag register_globals Off
- </IfModule>
- <IfModule mod_php5.c>
- php_flag magic_quotes_gpc Off
- php_flag register_globals Off
- </IfModule>
- # OPTIMIZE: To use gzip compressed files (for Dolibarr already compressed files).
- # Note that constant MAIN_OPTIMIZE_SPEED must have a value with bit 0 set.
- #AddType text/javascript .jgz
- #AddEncoding gzip .jgz
-
- # OPTIMIZE: To use gzip compression (on the fly).
- # Note that you must also enable the module mod_deflate.
- # You can also set this with constant MAIN_OPTIMIZE_SPEED and bit 2 set.
- #TODO
-
- # OPTIMIZE: To use cache on static pages (A259200 = 1 month).
- # Note that you must also enable the module mod_expires.
- #ExpiresActive On
- #ExpiresByType image/x-icon A2592000
- #ExpiresByType image/gif A2592000
- #ExpiresByType image/png A2592000
- #ExpiresByType image/jpeg A2592000
- #ExpiresByType text/css A2592000
- #ExpiresByType text/javascript A2592000
- #ExpiresByType application/x-javascript A2592000
- #ExpiresByType application/javascript A2592000
-
- </DirectoryMatch>
- # Directory for public pages
- <DirectoryMatch /usr/share/dolibarr/public>
- <IfVersion >= 2.3>
- Require all granted
- </IfVersion>
- <IfVersion < 2.3>
- Order deny,allow
- Allow from all
- </IfVersion>
- AllowOverride All
- </DirectoryMatch>
- # Config files
- <DirectoryMatch /etc/dolibarr>
- <IfVersion >= 2.3>
- Require all granted
- </IfVersion>
- <IfVersion < 2.3>
- Order deny,allow
- Allow from all
- </IfVersion>
- AllowOverride All
- </DirectoryMatch>
- # Directory for data files
- <DirectoryMatch /usr/share/dolibarr/documents>
- <IfVersion >= 2.3>
- Require all granted
- </IfVersion>
- <IfVersion < 2.3>
- Order deny,allow
- Allow from all
- </IfVersion>
- AllowOverride All
- </DirectoryMatch>
- <DirectoryMatch /var/lib/dolibarr/documents>
- <IfVersion >= 2.3>
- Require all granted
- </IfVersion>
- <IfVersion < 2.3>
- Order allow,deny
- Allow from all
- </IfVersion>
- AllowOverride All
- </DirectoryMatch>
|