I tried to create a new virtual host reproducing the different ddolibarr directory...
My config file is this one :
# Apache config file for Dolibarr
Alias /dolibarr /usr/share/dolibarr/htdocs
# You can also use dolibarr as a VirtualHost
#Mainly default parameters from the debian install
ServerName dolibarr.firstserver.net
ServerAdmin root@example.com
DocumentRoot /usr/share/dolibarr/htdocs/
# Config files
AllowOverride All
Order deny,allow
Allow from all
AllowOverride All
Order deny,allow
Allow from all
ErrorLog $/dolibarr.firstserver.net-error.log
CustomLog $/dolibarr.firstserver.net-access.log common
ServerName dolibarr.mynewserver.com
ServerAdmin root@example.com
DocumentRoot /usr/share/dolibarr/htdocs/
# Config files
AllowOverride All
Order deny,allow
Allow from all
AllowOverride All
Order deny,allow
Allow from all
ErrorLog $/dolibarr.mynewserver.com-error.log
CustomLog $/dolibarr.mynewserver.com-access.log common
# Directory for web pages
Order deny,allow
Allow from all
DirectoryIndex index.php
Options +FollowSymLinks +Indexes
ErrorDocument 401 /public/error-401.php
ErrorDocument 404 /public/error-404.php
php_flag magic_quotes_gpc Off
php_flag register_globals Off
php_flag magic_quotes_gpc Off
php_flag register_globals Off
# 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
# Directory for public pages
AllowOverride All
Order deny,allow
Allow from all
# Directory for data files
AllowOverride All
Order deny,allow
Allow from all
It is clause to work, but the 2 domains are pointing to the first configured database, and no installation process start for the 2d domain !
I think there is somthing wrong in my apache conf...
↧