Changes

Line 4: Line 4:        +
=Example of setup of a virtual host file for Apache=
 +
 +
With a root access, create the configuration file /etc/apache2/sites-available/dolibarr.conf
 +
 +
Insert the following lines :
   −
=Example of setup of a virtual host file for Apache=
+
<syntaxhighlight lang="console" line="1" start="1">
 +
<VirtualHost *:80>
 +
    LogLevel info
 +
    ServerName dolibarr.local
 +
    ServerAdmin admname@mail.com
 +
    DocumentRoot /var/www/dolibarr
 +
    ErrorLog ${APACHE_LOG_DIR}/error.dolibarr.log
 +
    CustomLog ${APACHE_LOG_DIR}/access.dolibarr.log combined
 +
</VirtualHost>
 +
</syntaxhighlight>
 +
 
 +
Activate the configuration :
 +
 
 +
a2ensite dolibarr.conf
 +
 
 +
Restart the apache server :
   −
TODO...
+
systemctl reload apache2
     
4

edits